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
)
22 dlist-edgeflag-dangling.c \
36 line-userclip-clip.c \
37 line-userclip-nop-clip.c \
45 linestrip-flat-stipple.c \
46 linestrip-stipple-wide.c \
59 poly-flat-unfilled-clip.c \
62 quad-clip-all-vertices.c \
63 quad-clip-nearplane.c \
67 quad-offset-factor.c \
68 quad-offset-unfilled.c \
75 quad-unfilled-clip.c \
76 quad-unfilled-stipple.c \
85 tri-array-interleaved.c \
121 tri-unfilled-edgeflag.c \
122 tri-unfilled-clip.c \
123 tri-unfilled-smooth.c \
125 tri-unfilled-tri-lit.c \
126 tri-unfilled-userclip-stip.c \
127 tri-unfilled-userclip.c \
136 trifan-flat-unfilled-clip.c \
143 vbo-noninterleaved.c \
160 PROGS
= $(SOURCES
:%.c
=%)
162 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
164 UTIL_FILES
= readtex.h readtex.c
173 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
176 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
179 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
184 default
: $(UTIL_FILES
) $(PROGS
)
192 # auto code generation
193 getprocaddress
: getprocaddress.c getproclist.h
195 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
196 python getprocaddress.py
> getproclist.h
199 texrect
: texrect.o readtex.o
200 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
202 texrect.o
: texrect.c readtex.h
203 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
205 invert
: invert.o readtex.o
206 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
208 invert.o
: invert.c readtex.h
209 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
212 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
215 readtex.h
: $(TOP
)/progs
/util
/readtex.h
216 ln
-s
$(TOP
)/progs
/util
/readtex.h .
218 readtex.c
: $(TOP
)/progs
/util
/readtex.c
219 ln
-s
$(TOP
)/progs
/util
/readtex.c .
222 fs-tri
: fs-tri.c extfuncs.h
225 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
231 etags
`find . -name \*.[ch]` `find ../include`