warn = -pedantic -Wall -g
def = -DMINIGLUT_USE_LIBC
-incpath = -Ilibs/glew
-libpath = -Llibs/glew
+incpath = -Ilibs/cgmath -Ilibs/glew -Ilibs/treestore/src -Ilibs/imago2/src
+libpath = -Llibs/glew -Llibs/treestore -Llibs/imago2
CFLAGS = $(warn) $(def) $(incpath) -MMD
-LDFLAGS = $(libpath) -lX11 -lXext -lGL -lGLU -lglut -lglew_static -lm
+LDFLAGS = $(libpath) -lX11 -lXext -lGL -lGLU -lglut -lglew_static -ltreestore \
+ -limago -lpng -lz -ljpeg -lm
$(bin): $(obj) libs
$(CC) -o $@ $(obj) $(LDFLAGS)