From e3a66514d57ff4acf2f02df7d86bd2cf8be0e730 Mon Sep 17 00:00:00 2001 From: Reimar Date: Tue, 8 Dec 2015 11:31:35 +0100 Subject: initial commit --- makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..b5fdb2a --- /dev/null +++ b/makefile @@ -0,0 +1,27 @@ +RM = rm -f +SRCS = main.cpp GUI.cpp util.cpp engine.cpp enginecore.cpp +OBJS = $(subst .cpp,.o,$(SRCS)) +HEADS = $(subst .cpp,.h,$(SRCS)) +CFLAGS = -Wall -ggdb -O2 -c -Wno-sign-compare +LFLAGS = -Wall -ggdb -O2 -lSDL -lSDL_gfx -lSDL_image -lSDL_ttf -lSDL_mixer -Wno-sign-compare + +Game: $(OBJS) + g++ $(OBJS) $(LFLAGS) -o Game + +main.o: main.cpp $(HEADS) + g++ main.cpp $(CFLAGS) -o main.o + +GUI.o: GUI.cpp GUI.h util.h + g++ GUI.cpp $(CFLAGS) -o GUI.o + +util.o: util.cpp util.h + g++ util.cpp $(CFLAGS) -o util.o + +engine.o: engine.cpp GUI.h util.h engine.h enginecore.h + g++ engine.cpp $(CFLAGS) -o engine.o + +enginecore.o: enginecore.cpp util.h enginecore.h + g++ enginecore.cpp $(CFLAGS) -o enginecore.o + +clean: + $(RM) $(OBJS) -- cgit v1.2.3