diff options
author | Matt Kohls <mattkohls13@gmail.com> | 2019-01-15 00:31:39 -0500 |
---|---|---|
committer | Matt Kohls <mattkohls13@gmail.com> | 2019-01-15 00:31:39 -0500 |
commit | 0add8dc7db4fac4811d076cda7574c6a9a294054 (patch) | |
tree | d0e8d486a865a3e000a24aee395e77414118336e | |
parent | 2edba54e4aca974c22a8f59292ef0cf24d7b7f5a (diff) | |
download | fungi-0add8dc7db4fac4811d076cda7574c6a9a294054.tar.gz fungi-0add8dc7db4fac4811d076cda7574c6a9a294054.tar.bz2 fungi-0add8dc7db4fac4811d076cda7574c6a9a294054.zip |
Bringing in makefile and readme
-rw-r--r-- | README.md | 27 | ||||
-rw-r--r-- | makefile | 23 |
2 files changed, 50 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..b0d6461 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# Fungi + +An art generator/simple life simulator. + +Fungi is a tool for me to learn about using some different graphics libraries, +as well as giving me cool new things to look at. Currently written in C++ using +SDL2, which should make it easy to build on different systems. I plan +on creating a ncurses based interface as well as porting to different operating +systems and using their native GUI API. +Inspired by [Culture by Charlotte Koch](https://github.com/dressupgeekout/screensavers/tree/master/culture). + +# Building + +Currently the only dependency is SDL2, which is assumed to be in the normal +location for Debian/Ubuntu. + +``` +git clone https://github.com/mlightning3/fungi.git +cd fungi +make +``` + +# License & Copyright + +GPL v3 + +Matt Kohls 2018 diff --git a/makefile b/makefile new file mode 100644 index 0000000..a983411 --- /dev/null +++ b/makefile @@ -0,0 +1,23 @@ +XX = g++ + +SDL_LIB = -L/usr/local/lib -lSDL2 -Wl,-rpath=/usr/local/lib +SDL_INCLUDE = -I/usr/include + +CXXFLAGS = -Wall -c -std=c++11 $(SDL_INCLUDE) +LDFLAGS = $(SDL_LIB) +EXE = fungi + +all: $(EXE) + + +$(EXE): fungi.o + + $(CXX) $< $(LDFLAGS) -o $@ + +main.o: fungi.cpp + + $(CXX) $(CXXFLAGS) $< -o $@ + +clean: + + rm *.o && rm $(EXE) |