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 \
56 tri-unfilled-smooth.c \
57 tri-unfilled-userclip.c \
70 PROGS
= $(SOURCES
:%.c
=%)
72 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
74 UTIL_FILES
= readtex.h readtex.c
83 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
86 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
89 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
94 default
: $(UTIL_FILES
) $(PROGS
)
102 # auto code generation
103 getprocaddress
: getprocaddress.c getproclist.h
105 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
106 python getprocaddress.py
> getproclist.h
109 texrect
: texrect.o readtex.o
110 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
112 texrect.o
: texrect.c readtex.h
113 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
115 invert
: invert.o readtex.o
116 $(CC
) invert.o readtex.o
$(LIBS
) -o
$@
118 invert.o
: invert.c readtex.h
119 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
122 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
125 readtex.h
: $(TOP
)/progs
/util
/readtex.h
126 ln
-s
$(TOP
)/progs
/util
/readtex.h .
128 readtex.c
: $(TOP
)/progs
/util
/readtex.c
129 ln
-s
$(TOP
)/progs
/util
/readtex.c .
136 etags
`find . -name \*.[ch]` `find ../include`