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 line-userclip-clip.c \
20 line-userclip-nop-clip.c \
34 quad-clip-all-vertices.c \
35 quad-clip-nearplane.c \
38 quad-offset-factor.c \
40 quad-offset-unfilled.c \
51 dlist-edgeflag-dangling.c \
63 tri-unfilled-smooth.c \
64 tri-unfilled-userclip.c \
81 PROGS
= $(SOURCES
:%.c
=%)
83 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
85 UTIL_FILES
= readtex.h readtex.c
94 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
97 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
100 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
105 default
: $(UTIL_FILES
) $(PROGS
)
113 # auto code generation
114 getprocaddress
: getprocaddress.c getproclist.h
116 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
117 python getprocaddress.py
> getproclist.h
120 texrect
: texrect.o readtex.o
121 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
123 texrect.o
: texrect.c readtex.h
124 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
126 invert
: invert.o readtex.o
127 $(CC
) invert.o readtex.o
$(LIBS
) -o
$@
129 invert.o
: invert.c readtex.h
130 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
133 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
136 readtex.h
: $(TOP
)/progs
/util
/readtex.h
137 ln
-s
$(TOP
)/progs
/util
/readtex.h .
139 readtex.c
: $(TOP
)/progs
/util
/readtex.c
140 ln
-s
$(TOP
)/progs
/util
/readtex.c .
143 fs-tri
: fs-tri.c extfuncs.h
146 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
152 etags
`find . -name \*.[ch]` `find ../include`