* Move GetTickCount() hacks to porting.h and replace by a real call to SDL_GetTicks().
[matthijs/ABM2.git] / ABM2 / Makefile
index f6dc710b63638d7126c46e38d5edfcf31a8b4f79..9f5c3b705bdf02a4026359bc036b42b1d9901f1f 100644 (file)
@@ -1,10 +1,11 @@
-CFLAGS:=-I. -fno-elide-constructors -fms-extensions -fpermissive
-OBJS:=main.o Engine/Log.o SchemeReader.o Engine/Settings.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 $@