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
)
25 dlist-tri-flat-tri.c \
27 dlist-recursive-call.c \
28 dlist-begin-call-end.c \
29 dlist-edgeflag-dangling.c \
43 line-userclip-clip.c \
44 line-userclip-nop-clip.c \
53 linestrip-flat-stipple.c \
54 linestrip-stipple-wide.c \
67 poly-flat-unfilled-clip.c \
70 quad-clip-all-vertices.c \
71 quad-clip-nearplane.c \
75 quad-offset-factor.c \
76 quad-offset-unfilled.c \
83 quad-unfilled-clip.c \
84 quad-unfilled-stipple.c \
97 tri-array-interleaved.c \
124 tri-point-line-clipped.c \
136 tri-unfilled-edgeflag.c \
137 tri-unfilled-clip.c \
138 tri-unfilled-point.c \
139 tri-unfilled-smooth.c \
141 tri-unfilled-tri-lit.c \
142 tri-unfilled-userclip-stip.c \
143 tri-unfilled-userclip.c \
153 trifan-flat-unfilled-clip.c \
161 vbo-noninterleaved.c \
179 PROGS
= $(SOURCES
:%.c
=%)
181 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
183 UTIL_FILES
= readtex.h readtex.c
192 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
195 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
198 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
203 default
: $(UTIL_FILES
) $(PROGS
)
210 texrect
: texrect.o readtex.o
211 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
213 texrect.o
: texrect.c readtex.h
214 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
216 invert
: invert.o readtex.o
217 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
219 invert.o
: invert.c readtex.h
220 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
223 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
226 readtex.h
: $(TOP
)/progs
/util
/readtex.h
227 ln
-s
$(TOP
)/progs
/util
/readtex.h .
229 readtex.c
: $(TOP
)/progs
/util
/readtex.c
230 ln
-s
$(TOP
)/progs
/util
/readtex.c .
233 fs-tri
: fs-tri.c extfuncs.h
236 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
242 etags
`find . -name \*.[ch]` `find ../include`