Merge branch 'origin' into glsl-compiler-1
[mesa.git] / progs / xdemos / Makefile
1 # progs/xdemos/Makefile
2
3 TOP = ../..
4 include $(TOP)/configs/current
5
6
7 INCDIR = $(TOP)/include
8
9 LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME)
10
11 PROGS = glthreads \
12 glxdemo \
13 glxgears \
14 glxgears_fbconfig \
15 glxcontexts \
16 glxheads \
17 glxinfo \
18 glxpixmap \
19 glxpbdemo \
20 glxswapcontrol \
21 manywin \
22 offset \
23 overlay \
24 pbinfo \
25 pbdemo \
26 wincopy \
27 xfont \
28 xrotfontdemo \
29 yuvrect_client
30
31 # omit this XMesa API demo: xdemo
32
33
34 ##### RULES #####
35
36 .SUFFIXES:
37 .SUFFIXES: .c
38
39 .c: $(LIB_DEP)
40 $(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
41
42
43 ##### TARGETS #####
44
45 default: $(PROGS)
46
47
48 clean:
49 -rm -f $(PROGS)
50 -rm -f *.o *~
51
52
53 # special cases
54 pbinfo: pbinfo.o pbutil.o
55 $(CC) -I$(INCDIR) $(CFLAGS) pbinfo.o pbutil.o $(APP_LIB_DEPS) -o $@
56
57 pbdemo: pbdemo.o pbutil.o
58 $(CC) -I$(INCDIR) $(CFLAGS) pbdemo.o pbutil.o $(APP_LIB_DEPS) -o $@
59
60 pbinfo.o: pbinfo.c pbutil.h
61 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbinfo.c
62
63 pbdemo.o: pbdemo.c pbutil.h
64 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbdemo.c
65
66 pbutil.o: pbutil.c pbutil.h
67 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbutil.c
68
69 glxgears_fbconfig: glxgears_fbconfig.o pbutil.o
70 $(CC) -I$(INCDIR) $(CFLAGS) glxgears_fbconfig.o pbutil.o $(APP_LIB_DEPS) -o $@
71
72 glxgears_fbconfig.o: glxgears_fbconfig.c pbutil.h
73 $(CC) -I$(INCDIR) $(CFLAGS) -c -I. $(CFLAGS) glxgears_fbconfig.c
74
75 xrotfontdemo: xrotfontdemo.o xuserotfont.o
76 $(CC) -I$(INCDIR) $(CFLAGS) xrotfontdemo.o xuserotfont.o $(APP_LIB_DEPS) -o $@
77
78 xuserotfont.o: xuserotfont.c xuserotfont.h
79 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) xuserotfont.c
80
81 xrotfontdemo.o: xrotfontdemo.c xuserotfont.h
82 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) xrotfontdemo.c
83