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-tri-flat-tri.c \
23 dlist-edgeflag-dangling.c \
37 line-userclip-clip.c \
38 line-userclip-nop-clip.c \
46 linestrip-flat-stipple.c \
47 linestrip-stipple-wide.c \
60 poly-flat-unfilled-clip.c \
63 quad-clip-all-vertices.c \
64 quad-clip-nearplane.c \
68 quad-offset-factor.c \
69 quad-offset-unfilled.c \
76 quad-unfilled-clip.c \
77 quad-unfilled-stipple.c \
86 tri-array-interleaved.c \
122 tri-unfilled-edgeflag.c \
123 tri-unfilled-clip.c \
124 tri-unfilled-smooth.c \
126 tri-unfilled-tri-lit.c \
127 tri-unfilled-userclip-stip.c \
128 tri-unfilled-userclip.c \
137 trifan-flat-unfilled-clip.c \
144 vbo-noninterleaved.c \
161 PROGS
= $(SOURCES
:%.c
=%)
163 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
165 UTIL_FILES
= readtex.h readtex.c
174 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
177 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
180 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
185 default
: $(UTIL_FILES
) $(PROGS
)
193 # auto code generation
194 getprocaddress
: getprocaddress.c getproclist.h
196 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
197 python getprocaddress.py
> getproclist.h
200 texrect
: texrect.o readtex.o
201 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
203 texrect.o
: texrect.c readtex.h
204 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
206 invert
: invert.o readtex.o
207 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
209 invert.o
: invert.c readtex.h
210 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
213 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
216 readtex.h
: $(TOP
)/progs
/util
/readtex.h
217 ln
-s
$(TOP
)/progs
/util
/readtex.h .
219 readtex.c
: $(TOP
)/progs
/util
/readtex.c
220 ln
-s
$(TOP
)/progs
/util
/readtex.c .
223 fs-tri
: fs-tri.c extfuncs.h
226 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
232 etags
`find . -name \*.[ch]` `find ../include`