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
)
23 dlist-tri-flat-tri.c \
25 dlist-recursive-call.c \
26 dlist-edgeflag-dangling.c \
40 line-userclip-clip.c \
41 line-userclip-nop-clip.c \
49 linestrip-flat-stipple.c \
50 linestrip-stipple-wide.c \
63 poly-flat-unfilled-clip.c \
66 quad-clip-all-vertices.c \
67 quad-clip-nearplane.c \
71 quad-offset-factor.c \
72 quad-offset-unfilled.c \
79 quad-unfilled-clip.c \
80 quad-unfilled-stipple.c \
89 tri-array-interleaved.c \
125 tri-unfilled-edgeflag.c \
126 tri-unfilled-clip.c \
127 tri-unfilled-smooth.c \
129 tri-unfilled-tri-lit.c \
130 tri-unfilled-userclip-stip.c \
131 tri-unfilled-userclip.c \
140 trifan-flat-unfilled-clip.c \
147 vbo-noninterleaved.c \
164 PROGS
= $(SOURCES
:%.c
=%)
166 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
168 UTIL_FILES
= readtex.h readtex.c
177 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
180 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
183 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
188 default
: $(UTIL_FILES
) $(PROGS
)
196 # auto code generation
197 getprocaddress
: getprocaddress.c getproclist.h
199 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
200 python getprocaddress.py
> getproclist.h
203 texrect
: texrect.o readtex.o
204 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
206 texrect.o
: texrect.c readtex.h
207 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
209 invert
: invert.o readtex.o
210 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
212 invert.o
: invert.c readtex.h
213 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
216 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
219 readtex.h
: $(TOP
)/progs
/util
/readtex.h
220 ln
-s
$(TOP
)/progs
/util
/readtex.h .
222 readtex.c
: $(TOP
)/progs
/util
/readtex.c
223 ln
-s
$(TOP
)/progs
/util
/readtex.c .
226 fs-tri
: fs-tri.c extfuncs.h
229 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
235 etags
`find . -name \*.[ch]` `find ../include`