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-edgeflag-dangling.c \
34 line-userclip-clip.c \
35 line-userclip-nop-clip.c \
43 linestrip-flat-stipple.c \
44 linestrip-stipple-wide.c \
57 poly-flat-unfilled-clip.c \
60 quad-clip-all-vertices.c \
61 quad-clip-nearplane.c \
65 quad-offset-factor.c \
66 quad-offset-unfilled.c \
72 quad-unfilled-clip.c \
73 quad-unfilled-stipple.c \
81 tri-array-interleaved.c \
111 tri-unfilled-edgeflag.c \
112 tri-unfilled-clip.c \
113 tri-unfilled-smooth.c \
115 tri-unfilled-tri-lit.c \
116 tri-unfilled-userclip-stip.c \
117 tri-unfilled-userclip.c \
125 trifan-flat-unfilled-clip.c \
147 PROGS
= $(SOURCES
:%.c
=%)
149 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
151 UTIL_FILES
= readtex.h readtex.c
160 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
163 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
166 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
171 default
: $(UTIL_FILES
) $(PROGS
)
179 # auto code generation
180 getprocaddress
: getprocaddress.c getproclist.h
182 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
183 python getprocaddress.py
> getproclist.h
186 texrect
: texrect.o readtex.o
187 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
189 texrect.o
: texrect.c readtex.h
190 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
192 invert
: invert.o readtex.o
193 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
195 invert.o
: invert.c readtex.h
196 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
199 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
202 readtex.h
: $(TOP
)/progs
/util
/readtex.h
203 ln
-s
$(TOP
)/progs
/util
/readtex.h .
205 readtex.c
: $(TOP
)/progs
/util
/readtex.c
206 ln
-s
$(TOP
)/progs
/util
/readtex.c .
209 fs-tri
: fs-tri.c extfuncs.h
212 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
218 etags
`find . -name \*.[ch]` `find ../include`