4 # These programs aren't intended to be included with the normal distro.
5 # They're not too interesting but they're good for testing.
8 include $(TOP
)/configs
/current
11 LIBS
= -L
$(TOP
)/$(LIB_DIR
) -l
$(GLEW_LIB
) -l
$(GLUT_LIB
) -l
$(GLU_LIB
) -l
$(GL_LIB
) $(APP_LIB_DEPS
)
25 dlist-tri-flat-tri.c \
27 dlist-recursive-call.c \
28 dlist-begin-call-end.c \
29 dlist-edgeflag-dangling.c \
43 line-userclip-clip.c \
44 line-userclip-nop-clip.c \
53 linestrip-flat-stipple.c \
54 linestrip-stipple-wide.c \
67 poly-flat-unfilled-clip.c \
70 quad-clip-all-vertices.c \
71 quad-clip-nearplane.c \
75 quad-offset-factor.c \
76 quad-offset-unfilled.c \
83 quad-unfilled-clip.c \
84 quad-unfilled-stipple.c \
95 tri-array-interleaved.c \
133 tri-unfilled-edgeflag.c \
134 tri-unfilled-clip.c \
135 tri-unfilled-point.c \
136 tri-unfilled-smooth.c \
138 tri-unfilled-tri-lit.c \
139 tri-unfilled-userclip-stip.c \
140 tri-unfilled-userclip.c \
150 trifan-flat-unfilled-clip.c \
157 vbo-noninterleaved.c \
174 PROGS
= $(SOURCES
:%.c
=%)
176 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
178 UTIL_FILES
= readtex.h readtex.c
187 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
190 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
193 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
198 default
: $(UTIL_FILES
) $(PROGS
)
206 # auto code generation
207 getprocaddress
: getprocaddress.c getproclist.h
209 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
210 python getprocaddress.py
> getproclist.h
213 texrect
: texrect.o readtex.o
214 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
216 texrect.o
: texrect.c readtex.h
217 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
219 invert
: invert.o readtex.o
220 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
222 invert.o
: invert.c readtex.h
223 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
226 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
229 readtex.h
: $(TOP
)/progs
/util
/readtex.h
230 ln
-s
$(TOP
)/progs
/util
/readtex.h .
232 readtex.c
: $(TOP
)/progs
/util
/readtex.c
233 ln
-s
$(TOP
)/progs
/util
/readtex.c .
236 fs-tri
: fs-tri.c extfuncs.h
239 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
245 etags
`find . -name \*.[ch]` `find ../include`