X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ABM2%2FMakefile;h=e8997e35f6f373aef1124c6c9d665fd08f3201eb;hb=6b155f2060372be8a528f217e61b3357a8b16898;hp=89718c5f146d6deeb4618c67cb4edf0342d1e1dc;hpb=f14a4c1ff4c28feecc24ccb6403af8c7f3162557;p=matthijs%2FABM2.git diff --git a/ABM2/Makefile b/ABM2/Makefile index 89718c5..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 +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 -all: $(OBJS) +#include these in linking. Linking with -lftgl doesn't work for some stupid reason... +EXTRA_OBJS := /usr/lib/libftgl.a -link: all - g++ $(OBJS) +all: abm2 + +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