aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
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)