Add $(CFLAGS) to the link commands. This makes 'make linux-x86
[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 = $(LIB_DIR)/$(GL_LIB_NAME) $(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 pbinfo \
24 pbdemo \
25 wincopy \
26 xdemo \
27 xfont \
28 xrotfontdemo \
29 yuvrect_client
30
31
32
33 ##### RULES #####
34
35 .SUFFIXES:
36 .SUFFIXES: .c
37
38 .c: $(LIB_DEP)
39 $(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
40
41
42 ##### TARGETS #####
43
44 default: $(PROGS)
45
46
47 clean:
48 -rm -f $(PROGS)
49 -rm -f *.o *~
50
51
52 # special cases
53 pbinfo: pbinfo.o pbutil.o
54 $(CC) $(CFLAGS) pbinfo.o pbutil.o $(APP_LIB_DEPS) -o $@
55
56 pbdemo: pbdemo.o pbutil.o
57 $(CC) $(CFLAGS) pbdemo.o pbutil.o $(APP_LIB_DEPS) -o $@
58
59 pbinfo.o: pbinfo.c pbutil.h
60 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbinfo.c
61
62 pbdemo.o: pbdemo.c pbutil.h
63 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbdemo.c
64
65 pbutil.o: pbutil.c pbutil.h
66 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbutil.c
67
68 glxgears_fbconfig: glxgears_fbconfig.o pbutil.o
69 $(CC) $(CFLAGS) glxgears_fbconfig.o pbutil.o $(APP_LIB_DEPS) -o $@
70
71 glxgears_fbconfig.o: glxgears_fbconfig.c pbutil.h
72 $(CC) $(CFLAGS) -c -I. -I$(INCDIR) $(CFLAGS) glxgears_fbconfig.c
73
74 xrotfontdemo: xrotfontdemo.o xuserotfont.o
75 $(CC) $(CFLAGS) xrotfontdemo.o xuserotfont.o $(APP_LIB_DEPS) -o $@
76
77 xuserotfont.o: xuserotfont.c xuserotfont.h
78 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) xuserotfont.c
79
80 xrotfontdemo.o: xrotfontdemo.c xuserotfont.h
81 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) xrotfontdemo.c
82