X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ABM2%2FMakefile;h=e8997e35f6f373aef1124c6c9d665fd08f3201eb;hb=6b155f2060372be8a528f217e61b3357a8b16898;hp=3bbe6e47be74d7f3016b2c6693a93306cb9d91bf;hpb=aef9d86b66c0fd3bc12af2ff125d350027e7ce5e;p=matthijs%2FABM2.git diff --git a/ABM2/Makefile b/ABM2/Makefile index 3bbe6e4..e8997e3 100644 --- a/ABM2/Makefile +++ b/ABM2/Makefile @@ -1,13 +1,25 @@ -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 Engine/InputTask.o +MAKE := make +CFLAGS := -I. -DWITH_SDL $(shell pkg-config --cflags ftgl) +LDFLAGS := -lSDL $(shell pkg-config --libs ftgl) -lGL -lGLU -lILUT +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 \ + Amaltheia/Graphics.o + +#include these in linking. Linking with -lftgl doesn't work for some stupid reason... +EXTRA_OBJS := /usr/lib/libftgl.a all: abm2 abm2: $(OBJS) - g++ -o abm2 $(OBJS) + g++ $(LDFLAGS) -o abm2 $(OBJS) $(EXTRA_OBJS) %.o: %.cpp g++ $(CFLAGS) -c $< -o $@ clean: - rm -f *.o Engine/*.o + rm -f *.o Engine/*.o Amaltheia/*.o + +less: + $(MAKE) 2>&1 | less