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-edgeflag-dangling.c \
41 line-userclip-clip.c \
42 line-userclip-nop-clip.c \
50 linestrip-flat-stipple.c \
51 linestrip-stipple-wide.c \
64 poly-flat-unfilled-clip.c \
67 quad-clip-all-vertices.c \
68 quad-clip-nearplane.c \
72 quad-offset-factor.c \
73 quad-offset-unfilled.c \
80 quad-unfilled-clip.c \
81 quad-unfilled-stipple.c \
90 tri-array-interleaved.c \
126 tri-unfilled-edgeflag.c \
127 tri-unfilled-clip.c \
128 tri-unfilled-smooth.c \
130 tri-unfilled-tri-lit.c \
131 tri-unfilled-userclip-stip.c \
132 tri-unfilled-userclip.c \
141 trifan-flat-unfilled-clip.c \
148 vbo-noninterleaved.c \
165 PROGS
= $(SOURCES
:%.c
=%)
167 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
169 UTIL_FILES
= readtex.h readtex.c
178 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
181 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
184 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
189 default
: $(UTIL_FILES
) $(PROGS
)
197 # auto code generation
198 getprocaddress
: getprocaddress.c getproclist.h
200 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
201 python getprocaddress.py
> getproclist.h
204 texrect
: texrect.o readtex.o
205 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
207 texrect.o
: texrect.c readtex.h
208 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
210 invert
: invert.o readtex.o
211 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
213 invert.o
: invert.c readtex.h
214 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
217 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
220 readtex.h
: $(TOP
)/progs
/util
/readtex.h
221 ln
-s
$(TOP
)/progs
/util
/readtex.h .
223 readtex.c
: $(TOP
)/progs
/util
/readtex.c
224 ln
-s
$(TOP
)/progs
/util
/readtex.c .
227 fs-tri
: fs-tri.c extfuncs.h
230 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
236 etags
`find . -name \*.[ch]` `find ../include`