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
)
26 dlist-tri-flat-tri.c \
28 dlist-recursive-call.c \
29 dlist-begin-call-end.c \
30 dlist-edgeflag-dangling.c \
44 line-userclip-clip.c \
45 line-userclip-nop-clip.c \
54 linestrip-flat-stipple.c \
55 linestrip-stipple-wide.c \
68 poly-flat-unfilled-clip.c \
71 quad-clip-all-vertices.c \
72 quad-clip-nearplane.c \
76 quad-offset-factor.c \
77 quad-offset-unfilled.c \
84 quad-unfilled-clip.c \
85 quad-unfilled-stipple.c \
98 tri-array-interleaved.c \
125 tri-point-line-clipped.c \
137 tri-unfilled-edgeflag.c \
138 tri-unfilled-clip.c \
139 tri-unfilled-point.c \
140 tri-unfilled-smooth.c \
142 tri-unfilled-tri-lit.c \
143 tri-unfilled-userclip-stip.c \
144 tri-unfilled-userclip.c \
154 trifan-flat-unfilled-clip.c \
162 vbo-noninterleaved.c \
180 PROGS
= $(SOURCES
:%.c
=%)
182 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
184 UTIL_FILES
= readtex.h readtex.c
193 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
196 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
199 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
204 default
: $(UTIL_FILES
) $(PROGS
)
211 texrect
: texrect.o readtex.o
212 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
214 texrect.o
: texrect.c readtex.h
215 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
217 invert
: invert.o readtex.o
218 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
220 invert.o
: invert.c readtex.h
221 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
224 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
227 readtex.h
: $(TOP
)/progs
/util
/readtex.h
228 ln
-s
$(TOP
)/progs
/util
/readtex.h .
230 readtex.c
: $(TOP
)/progs
/util
/readtex.c
231 ln
-s
$(TOP
)/progs
/util
/readtex.c .
234 fs-tri
: fs-tri.c extfuncs.h
237 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
243 etags
`find . -name \*.[ch]` `find ../include`