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
)
20 dlist-edgeflag-dangling.c \
32 line-userclip-clip.c \
33 line-userclip-nop-clip.c \
41 linestrip-flat-stipple.c \
42 linestrip-stipple-wide.c \
55 poly-flat-unfilled-clip.c \
58 quad-clip-all-vertices.c \
59 quad-clip-nearplane.c \
63 quad-offset-factor.c \
64 quad-offset-unfilled.c \
70 quad-unfilled-clip.c \
71 quad-unfilled-stipple.c \
102 tri-unfilled-edgeflag.c \
103 tri-unfilled-clip.c \
104 tri-unfilled-smooth.c \
105 tri-unfilled-userclip-stip.c \
106 tri-unfilled-userclip.c \
114 trifan-flat-unfilled-clip.c \
133 PROGS
= $(SOURCES
:%.c
=%)
135 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
137 UTIL_FILES
= readtex.h readtex.c
146 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
149 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
152 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
157 default
: $(UTIL_FILES
) $(PROGS
)
165 # auto code generation
166 getprocaddress
: getprocaddress.c getproclist.h
168 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
169 python getprocaddress.py
> getproclist.h
172 texrect
: texrect.o readtex.o
173 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
175 texrect.o
: texrect.c readtex.h
176 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
178 invert
: invert.o readtex.o
179 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
181 invert.o
: invert.c readtex.h
182 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
185 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
188 readtex.h
: $(TOP
)/progs
/util
/readtex.h
189 ln
-s
$(TOP
)/progs
/util
/readtex.h .
191 readtex.c
: $(TOP
)/progs
/util
/readtex.c
192 ln
-s
$(TOP
)/progs
/util
/readtex.c .
195 fs-tri
: fs-tri.c extfuncs.h
198 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
204 etags
`find . -name \*.[ch]` `find ../include`