-all: main.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: abm2
+
+abm2: $(OBJS)
+ g++ $(LDFLAGS) -o abm2 $(OBJS)
%.o: %.cpp
- g++ -c $< -o $@
+ g++ $(CFLAGS) -c $< -o $@
clean:
- rm -f *.o
+ rm -f *.o Engine/*.o