* Move GetTickCount() hacks to porting.h and replace by a real call to SDL_GetTicks().
[matthijs/ABM2.git] / ABM2 / Makefile
index 3bbe6e47be74d7f3016b2c6693a93306cb9d91bf..9f5c3b705bdf02a4026359bc036b42b1d9901f1f 100644 (file)
@@ -1,10 +1,11 @@
-CFLAGS:=-I.
+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: abm2
 
 abm2: $(OBJS)
-       g++ -o abm2 $(OBJS)
+       g++ $(LDFLAGS) -o abm2 $(OBJS)
 
 %.o: %.cpp
        g++ $(CFLAGS) -c $< -o $@