Don't build yuvrect_client by default
[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)
10
11 LIBS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(APP_LIB_DEPS)
12
13 PROGS = \
14 corender \
15 glthreads \
16 glxdemo \
17 glxgears \
18 glxgears_fbconfig \
19 glxcontexts \
20 glxheads \
21 glxinfo \
22 glxpixmap \
23 glxpbdemo \
24 glxsnoop \
25 glxswapcontrol \
26 manywin \
27 offset \
28 overlay \
29 pbinfo \
30 pbdemo \
31 texture_from_pixmap \
32 wincopy \
33 xfont \
34 xrotfontdemo
35
36 # Don't build these by default because of extra library dependencies
37 EXTRA_PROGS = \
38 shape \
39 yuvrect_client \
40 xdemo
41
42
43
44 ##### RULES #####
45
46 .SUFFIXES:
47 .SUFFIXES: .c
48
49 .c: $(LIB_DEP)
50 $(CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
51
52
53 ##### TARGETS #####
54
55 default: $(PROGS)
56
57
58 extra: $(EXTRA_PROGS)
59
60
61 clean:
62 -rm -f $(PROGS) $(EXTRA_PROGS)
63 -rm -f *.o *~
64
65
66 # special cases
67 pbinfo: pbinfo.o pbutil.o
68 $(CC) $(LDFLAGS) pbinfo.o pbutil.o $(LIBS) -o $@
69
70 pbdemo: pbdemo.o pbutil.o
71 $(CC) $(LDFLAGS) pbdemo.o pbutil.o $(LIBS) -o $@
72
73 pbinfo.o: pbinfo.c pbutil.h
74 $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbinfo.c
75
76 pbdemo.o: pbdemo.c pbutil.h
77 $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbdemo.c
78
79 pbutil.o: pbutil.c pbutil.h
80 $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbutil.c
81
82 glxgears_fbconfig: glxgears_fbconfig.o pbutil.o
83 $(CC) $(LDFLAGS) glxgears_fbconfig.o pbutil.o $(LIBS) -o $@
84
85 glxgears_fbconfig.o: glxgears_fbconfig.c pbutil.h
86 $(CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) -c -I. $(CFLAGS) glxgears_fbconfig.c
87
88 xrotfontdemo: xrotfontdemo.o xuserotfont.o
89 $(CC) $(LDFLAGS) xrotfontdemo.o xuserotfont.o $(LIBS) -o $@
90
91 xuserotfont.o: xuserotfont.c xuserotfont.h
92 $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) xuserotfont.c
93
94 xrotfontdemo.o: xrotfontdemo.c xuserotfont.h
95 $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) xrotfontdemo.c
96
97 corender: corender.o ipc.o
98 $(CC) $(CFLAGS) corender.o ipc.o $(LIBS) -o $@
99
100 corender.o: corender.c ipc.h
101 $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) corender.c
102
103 ipc.o: ipc.c ipc.h
104 $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) ipc.c
105
106 yuvrect_client: yuvrect_client.c
107 $(CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) $< $(LDFLAGS) $(LIBS) -l$(GLU_LIB) -o $@
108