* Add "less" target to view make output through less.
[matthijs/ABM2.git] / ABM2 / Makefile
1 MAKE    := make
2 CFLAGS  := -I. -DWITH_SDL $(shell pkg-config --cflags ftgl)
3 LDFLAGS := -lSDL $(shell pkg-config --libs ftgl) -lGL -lGLU -lILUT
4 OBJS    := main.o Engine/Log.o SchemeReader.o Engine/Settings.o \
5            Engine/mmanager.o Engine/Kernel.o Engine/ProfileLogHandler.o \
6            Engine/VideoUpdate.o Engine/GlobalTimer.o Engine/SoundTask.o \
7            Engine/profiler.o Playground.o Engine/InputTask.o \
8            Amaltheia/Graphics.o
9
10
11 all: abm2
12
13 abm2: $(OBJS)
14         g++ $(LDFLAGS) -o abm2 $(OBJS)
15
16 %.o: %.cpp
17         g++ $(CFLAGS) -c $< -o $@
18
19 clean:
20         rm -f *.o Engine/*.o Amaltheia/*.o
21
22 less:
23         $(MAKE) 2>&1 | less