projects
/
matthijs
/
ABM2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Move GetTickCount() hacks to porting.h and replace by a real call to SDL_GetTicks().
[matthijs/ABM2.git]
/
ABM2
/
Makefile
diff --git
a/ABM2/Makefile
b/ABM2/Makefile
index b3c5f6e3fcc7cd997411bdae5e0c0d1e8131334d..9f5c3b705bdf02a4026359bc036b42b1d9901f1f 100644
(file)
--- a/
ABM2/Makefile
+++ b/
ABM2/Makefile
@@
-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
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 $@
%.o: %.cpp
g++ $(CFLAGS) -c $< -o $@