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
)
18 line-userclip-clip.c \
19 line-userclip-nop-clip.c \
33 quad-clip-all-vertices.c \
34 quad-clip-nearplane.c \
37 quad-offset-factor.c \
39 quad-offset-unfilled.c \
50 dlist-edgeflag-dangling.c \
62 tri-unfilled-smooth.c \
63 tri-unfilled-userclip.c \
80 PROGS
= $(SOURCES
:%.c
=%)
82 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
84 UTIL_FILES
= readtex.h readtex.c
93 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
96 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
99 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
104 default
: $(UTIL_FILES
) $(PROGS
)
112 # auto code generation
113 getprocaddress
: getprocaddress.c getproclist.h
115 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
116 python getprocaddress.py
> getproclist.h
119 texrect
: texrect.o readtex.o
120 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
122 texrect.o
: texrect.c readtex.h
123 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
125 invert
: invert.o readtex.o
126 $(CC
) invert.o readtex.o
$(LIBS
) -o
$@
128 invert.o
: invert.c readtex.h
129 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
132 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
135 readtex.h
: $(TOP
)/progs
/util
/readtex.h
136 ln
-s
$(TOP
)/progs
/util
/readtex.h .
138 readtex.c
: $(TOP
)/progs
/util
/readtex.c
139 ln
-s
$(TOP
)/progs
/util
/readtex.c .
142 fs-tri
: fs-tri.c extfuncs.h
145 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
151 etags
`find . -name \*.[ch]` `find ../include`