From 0add8dc7db4fac4811d076cda7574c6a9a294054 Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Tue, 15 Jan 2019 00:31:39 -0500 Subject: Bringing in makefile and readme --- makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 makefile (limited to 'makefile') 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) -- cgit v1.2.3