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 \
122 tri-point-line-clipped.c \
134 tri-unfilled-edgeflag.c \
135 tri-unfilled-clip.c \
136 tri-unfilled-point.c \
137 tri-unfilled-smooth.c \
139 tri-unfilled-tri-lit.c \
140 tri-unfilled-userclip-stip.c \
141 tri-unfilled-userclip.c \
151 trifan-flat-unfilled-clip.c \
159 vbo-noninterleaved.c \
176 PROGS
= $(SOURCES
:%.c
=%)
178 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
180 UTIL_FILES
= readtex.h readtex.c
189 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
192 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
195 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
200 default
: $(UTIL_FILES
) $(PROGS
)
208 # auto code generation
209 getprocaddress
: getprocaddress.c getproclist.h
211 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
212 python getprocaddress.py
> getproclist.h
215 texrect
: texrect.o readtex.o
216 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
218 texrect.o
: texrect.c readtex.h
219 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
221 invert
: invert.o readtex.o
222 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
224 invert.o
: invert.c readtex.h
225 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
228 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
231 readtex.h
: $(TOP
)/progs
/util
/readtex.h
232 ln
-s
$(TOP
)/progs
/util
/readtex.h .
234 readtex.c
: $(TOP
)/progs
/util
/readtex.c
235 ln
-s
$(TOP
)/progs
/util
/readtex.c .
238 fs-tri
: fs-tri.c extfuncs.h
241 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
247 etags
`find . -name \*.[ch]` `find ../include`