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 \
78 PROGS
= $(SOURCES
:%.c
=%)
80 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
82 UTIL_FILES
= readtex.h readtex.c
91 $(CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
94 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
97 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
102 default
: $(UTIL_FILES
) $(PROGS
)
110 # auto code generation
111 getprocaddress
: getprocaddress.c getproclist.h
113 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
114 python getprocaddress.py
> getproclist.h
117 texrect
: texrect.o readtex.o
118 $(CC
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
120 texrect.o
: texrect.c readtex.h
121 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
123 invert
: invert.o readtex.o
124 $(CC
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
126 invert.o
: invert.c readtex.h
127 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
130 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
133 readtex.h
: $(TOP
)/progs
/util
/readtex.h
134 ln
-s
$(TOP
)/progs
/util
/readtex.h .
136 readtex.c
: $(TOP
)/progs
/util
/readtex.c
137 ln
-s
$(TOP
)/progs
/util
/readtex.c .
144 etags
`find . -name \*.[ch]` `find ../include`