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 \
35 line-userclip-clip.c \
36 line-userclip-nop-clip.c \
44 linestrip-flat-stipple.c \
45 linestrip-stipple-wide.c \
58 poly-flat-unfilled-clip.c \
61 quad-clip-all-vertices.c \
62 quad-clip-nearplane.c \
66 quad-offset-factor.c \
67 quad-offset-unfilled.c \
74 quad-unfilled-clip.c \
75 quad-unfilled-stipple.c \
84 tri-array-interleaved.c \
119 tri-unfilled-edgeflag.c \
120 tri-unfilled-clip.c \
121 tri-unfilled-smooth.c \
123 tri-unfilled-tri-lit.c \
124 tri-unfilled-userclip-stip.c \
125 tri-unfilled-userclip.c \
134 trifan-flat-unfilled-clip.c \
156 PROGS
= $(SOURCES
:%.c
=%)
158 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
160 UTIL_FILES
= readtex.h readtex.c
169 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
172 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
175 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
180 default
: $(UTIL_FILES
) $(PROGS
)
188 # auto code generation
189 getprocaddress
: getprocaddress.c getproclist.h
191 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
192 python getprocaddress.py
> getproclist.h
195 texrect
: texrect.o readtex.o
196 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
198 texrect.o
: texrect.c readtex.h
199 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
201 invert
: invert.o readtex.o
202 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
204 invert.o
: invert.c readtex.h
205 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
208 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
211 readtex.h
: $(TOP
)/progs
/util
/readtex.h
212 ln
-s
$(TOP
)/progs
/util
/readtex.h .
214 readtex.c
: $(TOP
)/progs
/util
/readtex.c
215 ln
-s
$(TOP
)/progs
/util
/readtex.c .
218 fs-tri
: fs-tri.c extfuncs.h
221 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
227 etags
`find . -name \*.[ch]` `find ../include`