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
)
84 PROGS
= $(SOURCES
:%.c
=%)
86 INCLUDES
= -I.
-I
$(TOP
)/include
88 UTIL_FILES
= readtex.h readtex.c
97 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
100 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
103 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
108 default
: $(UTIL_FILES
) $(PROGS
)
116 # auto code generation
117 getprocaddress
: getprocaddress.c getproclist.h
119 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
120 python getprocaddress.py
> getproclist.h
122 arraytexture
: arraytexture.o readtex.o
123 $(CC
) $(CFLAGS
) arraytexture.o readtex.o
$(LIBS
) -o
$@
125 arraytexture.o
: arraytexture.c readtex.h
126 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
128 afsmultiarb
: afsmultiarb.o readtex.o
129 $(CC
) $(CFLAGS
) afsmultiarb.o readtex.o
$(LIBS
) -o
$@
131 afsmultiarb.o
: afsmultiarb.c readtex.h
132 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
134 drawbuffers
: drawbuffers.o
135 $(CC
) $(CFLAGS
) drawbuffers.o
$(LIBS
) -o
$@
137 drawbuffers.o
: drawbuffers.c extfuncs.h
138 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
140 texrect
: texrect.o readtex.o
141 $(CC
) $(CFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
143 texrect.o
: texrect.c readtex.h
144 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
146 bug_3195
: bug_3195.o readtex.o
147 $(CC
) $(CFLAGS
) bug_3195.o readtex.o
$(LIBS
) -o
$@
149 bug_3195.o
: bug_3195.c readtex.h
150 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
152 invert
: invert.o readtex.o
153 $(CC
) $(CFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
155 invert.o
: invert.c readtex.h
156 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
159 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
162 readtex.h
: $(TOP
)/progs
/util
/readtex.h
163 ln
-s
$(TOP
)/progs
/util
/readtex.h .
165 readtex.c
: $(TOP
)/progs
/util
/readtex.c
166 ln
-s
$(TOP
)/progs
/util
/readtex.c .
168 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
169 ln
-s
$(TOP
)/progs
/util
/extfuncs.h .
175 etags
`find . -name \*.[ch]` `find ../include`