aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2019-01-15 00:31:39 -0500
committerMatt Kohls <mattkohls13@gmail.com>2019-01-15 00:31:39 -0500
commit0add8dc7db4fac4811d076cda7574c6a9a294054 (patch)
treed0e8d486a865a3e000a24aee395e77414118336e /makefile
parent2edba54e4aca974c22a8f59292ef0cf24d7b7f5a (diff)
downloadfungi-0add8dc7db4fac4811d076cda7574c6a9a294054.tar.gz
fungi-0add8dc7db4fac4811d076cda7574c6a9a294054.tar.bz2
fungi-0add8dc7db4fac4811d076cda7574c6a9a294054.zip
Bringing in makefile and readme
Diffstat (limited to 'makefile')
-rw-r--r--makefile23
1 files changed, 23 insertions, 0 deletions
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)