diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 23 |
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) |