textures, overlay images, libimago
[demo_prior] / Makefile
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 dep = $(src:.c=.d)
4 bin = demo
5
6 warn = -pedantic -Wall -g
7 def = -DMINIGLUT_USE_LIBC
8
9 incpath = -Ilibs/cgmath -Ilibs/glew -Ilibs/treestore/src -Ilibs/imago2/src
10 libpath = -Llibs/glew -Llibs/treestore -Llibs/imago2
11
12 CFLAGS = $(warn) $(def) $(incpath) -MMD
13 LDFLAGS = $(libpath) -lX11 -lXext -lGL -lGLU -lglut -lglew_static -ltreestore \
14                   -limago -lpng -lz -ljpeg -lm
15
16 $(bin): $(obj) libs
17         $(CC) -o $@ $(obj) $(LDFLAGS)
18
19 -include $(dep)
20
21 .PHONY: clean
22 clean:
23         rm -f $(obj) $(bin)
24
25 .PHONY: cleandep
26 cleandep:
27         rm -f $(dep)
28
29 .PHONY: clean-all
30 clean-all: clean cleandep clean-libs
31
32
33 .PHONY: libs
34 libs:
35         $(MAKE) -C libs
36
37
38 .PHONY: clean-libs
39 clean-libs:
40         $(MAKE) -C libs clean