1 src = $(wildcard src/*.cc)
6 libimago_path = libs/libimago
7 libimago = $(libimago_path)/libimago.a
9 CFLAGS = -pedantic -Wall -g -I$(libimago_path)/src
11 LDFLAGS = -lGL -lGLU -lGLEW -lX11 -lm -lpthread -L$(libimago_path) -limago -lpng -ljpeg -lz
13 $(bin): $(obj) $(libimago)
14 $(CXX) -o $@ $(obj) $(LDFLAGS)
19 @$(CPP) $< $(CXXFLAGS) -MM -MT $(@:.d=.o) >$@
23 cd $(libimago_path) && ./configure --disable-debug --enable-opt
24 $(MAKE) -C $(libimago_path)
32 $(MAKE) -C $(libimago_path) clean