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 \
29 line-userclip-clip.c \
30 line-userclip-nop-clip.c \
38 linestrip-flat-stipple.c \
39 linestrip-stipple-wide.c \
50 quad-clip-all-vertices.c \
51 quad-clip-nearplane.c \
55 quad-offset-factor.c \
56 quad-offset-unfilled.c \
62 quad-unfilled-clip.c \
63 quad-unfilled-stipple.c \
94 tri-unfilled-smooth.c \
95 tri-unfilled-userclip-stip.c \
96 tri-unfilled-userclip.c \
113 PROGS
= $(SOURCES
:%.c
=%)
115 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
117 UTIL_FILES
= readtex.h readtex.c
126 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
129 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
132 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
137 default
: $(UTIL_FILES
) $(PROGS
)
145 # auto code generation
146 getprocaddress
: getprocaddress.c getproclist.h
148 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
149 python getprocaddress.py
> getproclist.h
152 texrect
: texrect.o readtex.o
153 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
155 texrect.o
: texrect.c readtex.h
156 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
158 invert
: invert.o readtex.o
159 $(CC
) invert.o readtex.o
$(LIBS
) -o
$@
161 invert.o
: invert.c readtex.h
162 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
165 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
168 readtex.h
: $(TOP
)/progs
/util
/readtex.h
169 ln
-s
$(TOP
)/progs
/util
/readtex.h .
171 readtex.c
: $(TOP
)/progs
/util
/readtex.c
172 ln
-s
$(TOP
)/progs
/util
/readtex.c .
175 fs-tri
: fs-tri.c extfuncs.h
178 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
184 etags
`find . -name \*.[ch]` `find ../include`