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
= $(APP_LIB_DEPS
)
19 dlist-edgeflag-dangling.c \
30 line-userclip-clip.c \
31 line-userclip-nop-clip.c \
39 linestrip-flat-stipple.c \
40 linestrip-stipple-wide.c \
53 quad-clip-all-vertices.c \
54 quad-clip-nearplane.c \
58 quad-offset-factor.c \
59 quad-offset-unfilled.c \
65 quad-unfilled-clip.c \
66 quad-unfilled-stipple.c \
97 tri-unfilled-edgeflag.c \
99 tri-unfilled-smooth.c \
100 tri-unfilled-userclip-stip.c \
101 tri-unfilled-userclip.c \
118 PROGS
= $(SOURCES
:%.c
=%)
120 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
122 UTIL_FILES
= readtex.h readtex.c
131 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
134 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
137 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
142 default
: $(UTIL_FILES
) $(PROGS
)
150 # auto code generation
151 getprocaddress
: getprocaddress.c getproclist.h
153 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
154 python getprocaddress.py
> getproclist.h
157 texrect
: texrect.o readtex.o
158 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
160 texrect.o
: texrect.c readtex.h
161 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
163 invert
: invert.o readtex.o
164 $(CC
) invert.o readtex.o
$(LIBS
) -o
$@
166 invert.o
: invert.c readtex.h
167 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
170 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
173 readtex.h
: $(TOP
)/progs
/util
/readtex.h
174 ln
-s
$(TOP
)/progs
/util
/readtex.h .
176 readtex.c
: $(TOP
)/progs
/util
/readtex.c
177 ln
-s
$(TOP
)/progs
/util
/readtex.c .
180 fs-tri
: fs-tri.c extfuncs.h
183 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
189 etags
`find . -name \*.[ch]` `find ../include`