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
$(GLUT_LIB
) -l
$(GLU_LIB
) -l
$(GL_LIB
) $(APP_LIB_DEPS
)
21 dlist-edgeflag-dangling.c \
33 line-userclip-clip.c \
34 line-userclip-nop-clip.c \
42 linestrip-flat-stipple.c \
43 linestrip-stipple-wide.c \
56 poly-flat-unfilled-clip.c \
59 quad-clip-all-vertices.c \
60 quad-clip-nearplane.c \
64 quad-offset-factor.c \
65 quad-offset-unfilled.c \
71 quad-unfilled-clip.c \
72 quad-unfilled-stipple.c \
80 tri-array-interleaved.c \
110 tri-unfilled-edgeflag.c \
111 tri-unfilled-clip.c \
112 tri-unfilled-smooth.c \
114 tri-unfilled-tri-lit.c \
115 tri-unfilled-userclip-stip.c \
116 tri-unfilled-userclip.c \
124 trifan-flat-unfilled-clip.c \
146 PROGS
= $(SOURCES
:%.c
=%)
148 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
150 UTIL_FILES
= readtex.h readtex.c
159 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
162 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
165 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
170 default
: $(UTIL_FILES
) $(PROGS
)
178 # auto code generation
179 getprocaddress
: getprocaddress.c getproclist.h
181 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
182 python getprocaddress.py
> getproclist.h
185 texrect
: texrect.o readtex.o
186 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
188 texrect.o
: texrect.c readtex.h
189 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
191 invert
: invert.o readtex.o
192 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
194 invert.o
: invert.c readtex.h
195 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
198 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
201 readtex.h
: $(TOP
)/progs
/util
/readtex.h
202 ln
-s
$(TOP
)/progs
/util
/readtex.h .
204 readtex.c
: $(TOP
)/progs
/util
/readtex.c
205 ln
-s
$(TOP
)/progs
/util
/readtex.c .
208 fs-tri
: fs-tri.c extfuncs.h
211 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
217 etags
`find . -name \*.[ch]` `find ../include`