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 line-userclip-clip.c \
21 line-userclip-nop-clip.c \
35 quad-clip-all-vertices.c \
36 quad-clip-nearplane.c \
39 quad-offset-factor.c \
41 quad-offset-unfilled.c \
53 dlist-edgeflag-dangling.c \
65 tri-unfilled-smooth.c \
66 tri-unfilled-userclip.c \
83 PROGS
= $(SOURCES
:%.c
=%)
85 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
87 UTIL_FILES
= readtex.h readtex.c
96 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
99 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
102 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
107 default
: $(UTIL_FILES
) $(PROGS
)
115 # auto code generation
116 getprocaddress
: getprocaddress.c getproclist.h
118 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
119 python getprocaddress.py
> getproclist.h
122 texrect
: texrect.o readtex.o
123 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
125 texrect.o
: texrect.c readtex.h
126 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
128 invert
: invert.o readtex.o
129 $(CC
) invert.o readtex.o
$(LIBS
) -o
$@
131 invert.o
: invert.c readtex.h
132 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
135 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
138 readtex.h
: $(TOP
)/progs
/util
/readtex.h
139 ln
-s
$(TOP
)/progs
/util
/readtex.h .
141 readtex.c
: $(TOP
)/progs
/util
/readtex.c
142 ln
-s
$(TOP
)/progs
/util
/readtex.c .
145 fs-tri
: fs-tri.c extfuncs.h
148 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
154 etags
`find . -name \*.[ch]` `find ../include`