* ifdef away half of Playground.cpp to make it compile (still one non-porting relate...
[matthijs/ABM2.git] / ABM2 / Makefile
index bf2539cbfdb49d3c65e96fcd187d799c3b98f98a..d420363c5765a59b3842b0bd7cec7e247c8f84e2 100644 (file)
@@ -1,7 +1,13 @@
-all: main.o
+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 Engine/SoundTask.o Engine/profiler.o Playground.o
+
+all: $(OBJS)
+
+link: all
+       g++ $(OBJS)
 
 %.o: %.cpp
-       g++ -c $< -o $@
+       g++ $(CFLAGS) -c $< -o $@
 
 clean:
-       rm -f *.o
+       rm -f *.o Engine/*.o