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 \
98 tri-unfilled-smooth.c \
99 tri-unfilled-userclip-stip.c \
100 tri-unfilled-userclip.c \
117 PROGS
= $(SOURCES
:%.c
=%)
119 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
121 UTIL_FILES
= readtex.h readtex.c
130 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
133 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
136 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
141 default
: $(UTIL_FILES
) $(PROGS
)
149 # auto code generation
150 getprocaddress
: getprocaddress.c getproclist.h
152 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
153 python getprocaddress.py
> getproclist.h
156 texrect
: texrect.o readtex.o
157 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
159 texrect.o
: texrect.c readtex.h
160 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
162 invert
: invert.o readtex.o
163 $(CC
) invert.o readtex.o
$(LIBS
) -o
$@
165 invert.o
: invert.c readtex.h
166 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
169 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
172 readtex.h
: $(TOP
)/progs
/util
/readtex.h
173 ln
-s
$(TOP
)/progs
/util
/readtex.h .
175 readtex.c
: $(TOP
)/progs
/util
/readtex.c
176 ln
-s
$(TOP
)/progs
/util
/readtex.c .
179 fs-tri
: fs-tri.c extfuncs.h
182 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
188 etags
`find . -name \*.[ch]` `find ../include`