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
)
20 dlist-edgeflag-dangling.c \
31 line-userclip-clip.c \
32 line-userclip-nop-clip.c \
40 linestrip-flat-stipple.c \
41 linestrip-stipple-wide.c \
54 poly-flat-unfilled-clip.c \
57 quad-clip-all-vertices.c \
58 quad-clip-nearplane.c \
62 quad-offset-factor.c \
63 quad-offset-unfilled.c \
69 quad-unfilled-clip.c \
70 quad-unfilled-stipple.c \
101 tri-unfilled-edgeflag.c \
102 tri-unfilled-clip.c \
103 tri-unfilled-smooth.c \
104 tri-unfilled-userclip-stip.c \
105 tri-unfilled-userclip.c \
113 trifan-flat-unfilled-clip.c \
129 PROGS
= $(SOURCES
:%.c
=%)
131 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
133 UTIL_FILES
= readtex.h readtex.c
142 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
145 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
148 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
153 default
: $(UTIL_FILES
) $(PROGS
)
161 # auto code generation
162 getprocaddress
: getprocaddress.c getproclist.h
164 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
165 python getprocaddress.py
> getproclist.h
168 texrect
: texrect.o readtex.o
169 $(APP_CC
) texrect.o readtex.o
$(LIBS
) -o
$@
171 texrect.o
: texrect.c readtex.h
172 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
174 invert
: invert.o readtex.o
175 $(APP_CC
) invert.o readtex.o
$(LIBS
) -o
$@
177 invert.o
: invert.c readtex.h
178 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
181 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
184 readtex.h
: $(TOP
)/progs
/util
/readtex.h
185 ln
-s
$(TOP
)/progs
/util
/readtex.h .
187 readtex.c
: $(TOP
)/progs
/util
/readtex.c
188 ln
-s
$(TOP
)/progs
/util
/readtex.c .
191 fs-tri
: fs-tri.c extfuncs.h
194 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
200 etags
`find . -name \*.[ch]` `find ../include`