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
)
17 line-userclip-clip.c \
18 line-userclip-nop-clip.c \
32 quad-clip-all-vertices.c \
33 quad-clip-nearplane.c \
36 quad-offset-factor.c \
38 quad-offset-unfilled.c \
49 dlist-edgeflag-dangling.c \
61 tri-unfilled-smooth.c \
62 tri-unfilled-userclip.c \
79 PROGS
= $(SOURCES
:%.c
=%)
81 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
83 UTIL_FILES
= readtex.h readtex.c
92 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
95 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
98 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
103 default
: $(UTIL_FILES
) $(PROGS
)
111 # auto code generation
112 getprocaddress
: getprocaddress.c getproclist.h
114 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
115 python getprocaddress.py
> getproclist.h
118 texrect
: texrect.o readtex.o
119 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
121 texrect.o
: texrect.c readtex.h
122 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
124 invert
: invert.o readtex.o
125 $(CC
) invert.o readtex.o
$(LIBS
) -o
$@
127 invert.o
: invert.c readtex.h
128 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
131 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
134 readtex.h
: $(TOP
)/progs
/util
/readtex.h
135 ln
-s
$(TOP
)/progs
/util
/readtex.h .
137 readtex.c
: $(TOP
)/progs
/util
/readtex.c
138 ln
-s
$(TOP
)/progs
/util
/readtex.c .
145 etags
`find . -name \*.[ch]` `find ../include`