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
)
24 dlist-tri-flat-tri.c \
26 dlist-recursive-call.c \
27 dlist-begin-call-end.c \
28 dlist-edgeflag-dangling.c \
42 line-userclip-clip.c \
43 line-userclip-nop-clip.c \
51 linestrip-flat-stipple.c \
52 linestrip-stipple-wide.c \
65 poly-flat-unfilled-clip.c \
68 quad-clip-all-vertices.c \
69 quad-clip-nearplane.c \
73 quad-offset-factor.c \
74 quad-offset-unfilled.c \
81 quad-unfilled-clip.c \
82 quad-unfilled-stipple.c \
91 tri-array-interleaved.c \
127 tri-unfilled-edgeflag.c \
128 tri-unfilled-clip.c \
129 tri-unfilled-smooth.c \
131 tri-unfilled-tri-lit.c \
132 tri-unfilled-userclip-stip.c \
133 tri-unfilled-userclip.c \
142 trifan-flat-unfilled-clip.c \
149 vbo-noninterleaved.c \
166 PROGS
= $(SOURCES
:%.c
=%)
168 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
170 UTIL_FILES
= readtex.h readtex.c
179 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
182 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
185 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
190 default
: $(UTIL_FILES
) $(PROGS
)
198 # auto code generation
199 getprocaddress
: getprocaddress.c getproclist.h
201 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
202 python getprocaddress.py
> getproclist.h
205 texrect
: texrect.o readtex.o
206 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
208 texrect.o
: texrect.c readtex.h
209 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
211 invert
: invert.o readtex.o
212 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
214 invert.o
: invert.c readtex.h
215 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
218 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
221 readtex.h
: $(TOP
)/progs
/util
/readtex.h
222 ln
-s
$(TOP
)/progs
/util
/readtex.h .
224 readtex.c
: $(TOP
)/progs
/util
/readtex.c
225 ln
-s
$(TOP
)/progs
/util
/readtex.c .
228 fs-tri
: fs-tri.c extfuncs.h
231 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
237 etags
`find . -name \*.[ch]` `find ../include`