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 \
54 tri-unfilled-smooth.c \
55 tri-unfilled-userclip.c \
68 PROGS
= $(SOURCES
:%.c
=%)
70 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
72 UTIL_FILES
= readtex.h readtex.c
81 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
84 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
87 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
92 default
: $(UTIL_FILES
) $(PROGS
)
100 # auto code generation
101 getprocaddress
: getprocaddress.c getproclist.h
103 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
104 python getprocaddress.py
> getproclist.h
107 texrect
: texrect.o readtex.o
108 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
110 texrect.o
: texrect.c readtex.h
111 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
113 invert
: invert.o readtex.o
114 $(CC
) invert.o readtex.o
$(LIBS
) -o
$@
116 invert.o
: invert.c readtex.h
117 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
120 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
123 readtex.h
: $(TOP
)/progs
/util
/readtex.h
124 ln
-s
$(TOP
)/progs
/util
/readtex.h .
126 readtex.c
: $(TOP
)/progs
/util
/readtex.c
127 ln
-s
$(TOP
)/progs
/util
/readtex.c .
134 etags
`find . -name \*.[ch]` `find ../include`