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 \
103 tri-unfilled-edgeflag.c \
104 tri-unfilled-clip.c \
105 tri-unfilled-smooth.c \
106 tri-unfilled-userclip-stip.c \
107 tri-unfilled-userclip.c \
115 trifan-flat-unfilled-clip.c \
137 PROGS
= $(SOURCES
:%.c
=%)
139 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
141 UTIL_FILES
= readtex.h readtex.c
150 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
153 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
156 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
161 default
: $(UTIL_FILES
) $(PROGS
)
169 # auto code generation
170 getprocaddress
: getprocaddress.c getproclist.h
172 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
173 python getprocaddress.py
> getproclist.h
176 texrect
: texrect.o readtex.o
177 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
179 texrect.o
: texrect.c readtex.h
180 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
182 invert
: invert.o readtex.o
183 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
185 invert.o
: invert.c readtex.h
186 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
189 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
192 readtex.h
: $(TOP
)/progs
/util
/readtex.h
193 ln
-s
$(TOP
)/progs
/util
/readtex.h .
195 readtex.c
: $(TOP
)/progs
/util
/readtex.c
196 ln
-s
$(TOP
)/progs
/util
/readtex.c .
199 fs-tri
: fs-tri.c extfuncs.h
202 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
208 etags
`find . -name \*.[ch]` `find ../include`