X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ABM2%2FMakefile;h=9f5c3b705bdf02a4026359bc036b42b1d9901f1f;hb=0557fdb7b7567901ca7e82def55fe5ceab0ccef0;hp=89718c5f146d6deeb4618c67cb4edf0342d1e1dc;hpb=f14a4c1ff4c28feecc24ccb6403af8c7f3162557;p=matthijs%2FABM2.git diff --git a/ABM2/Makefile b/ABM2/Makefile index 89718c5..9f5c3b7 100644 --- a/ABM2/Makefile +++ b/ABM2/Makefile @@ -1,10 +1,11 @@ -CFLAGS:=-I. -OBJS:=main.o Engine/Log.o SchemeReader.o Engine/Settings.o Engine/mmanager.o Engine/Kernel.o Engine/ProfileLogHandler.o Engine/VideoUpdate.o Engine/GlobalTimer.o +CFLAGS := -I. -DWITH_SDL +LDFLAGS := -lSDL +OBJS:=main.o Engine/Log.o SchemeReader.o Engine/Settings.o Engine/mmanager.o Engine/Kernel.o Engine/ProfileLogHandler.o Engine/VideoUpdate.o Engine/GlobalTimer.o Engine/SoundTask.o Engine/profiler.o Playground.o Engine/InputTask.o -all: $(OBJS) +all: abm2 -link: all - g++ $(OBJS) +abm2: $(OBJS) + g++ $(LDFLAGS) -o abm2 $(OBJS) %.o: %.cpp g++ $(CFLAGS) -c $< -o $@