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
= -L
$(TOP
)/$(LIB_DIR
) -l
$(GLUT_LIB
) -l
$(GLEW_LIB
) -l
$(GLU_LIB
) -l
$(GL_LIB
) $(APP_LIB_DEPS
)
125 PROGS
= $(SOURCES
:%.c
=%)
127 INCLUDES
= -I.
-I
$(TOP
)/include
129 UTIL_FILES
= readtex.h readtex.c
134 default
: $(UTIL_FILES
) $(PROGS
)
147 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
150 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
153 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
155 # auto code generation
156 getprocaddress
: getprocaddress.c getproclist.h
158 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
159 python getprocaddress.py
> getproclist.h
161 arraytexture
: arraytexture.o readtex.o
162 $(APP_CC
) $(CFLAGS
) arraytexture.o readtex.o
$(LIBS
) -o
$@
164 arraytexture.o
: arraytexture.c readtex.h
165 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) arraytexture.c
-o
$@
167 afsmultiarb
: afsmultiarb.o readtex.o
168 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) afsmultiarb.o readtex.o
$(LIBS
) -o
$@
170 afsmultiarb.o
: afsmultiarb.c readtex.h
171 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) afsmultiarb.c
-o
$@
173 bumpmap
: bumpmap.o readtex.o
174 $(CC
) $(CFLAGS
) $(LDFLAGS
) bumpmap.o readtex.o
$(LIBS
) -o
$@
176 bumpmap.o
: bumpmap.c readtex.h
177 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) bumpmap.c
-o
$@
179 drawbuffers
: drawbuffers.o
180 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) drawbuffers.o
$(LIBS
) -o
$@
182 drawbuffers.o
: drawbuffers.c extfuncs.h
183 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) drawbuffers.c
-o
$@
185 texrect
: texrect.o readtex.o
186 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
188 texrect.o
: texrect.c readtex.h
189 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) texrect.c
-o
$@
191 bug_3195
: bug_3195.o readtex.o
192 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) bug_3195.o readtex.o
$(LIBS
) -o
$@
194 bug_3195.o
: bug_3195.c readtex.h
195 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) bug_3195.c
-o
$@
197 invert
: invert.o readtex.o
198 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
200 invert.o
: invert.c readtex.h
201 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) invert.c
-o
$@
203 mipmap_view
: mipmap_view.o readtex.o
204 $(APP_CC
) $(CFLAGS
) mipmap_view.o readtex.o
$(LIBS
) -o
$@
206 mipmap_view.o
: mipmap_view.c readtex.h
207 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
209 mipmap_limits
: mipmap_limits.o readtex.o
210 $(APP_CC
) $(CFLAGS
) mipmap_limits.o readtex.o
$(LIBS
) -o
$@
212 mipmap_limits.o
: mipmap_limits.c readtex.h
213 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
215 fillrate
: fillrate.o readtex.o
216 $(APP_CC
) $(CFLAGS
) fillrate.o readtex.o
$(LIBS
) -o
$@
218 fillrate.o
: fillrate.c readtex.h
219 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
224 floattex
: floattex.o readtex.o shaderutil.o
225 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) floattex.o readtex.o shaderutil.o
$(LIBS
) -o
$@
227 floattex.o
: floattex.c readtex.h shaderutil.h
228 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) floattex.c
-o
$@
232 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) readtex.c
-o
$@
234 readtex.h
: $(TOP
)/progs
/util
/readtex.h
235 ln
-s
$(TOP
)/progs
/util
/readtex.h .
237 readtex.c
: $(TOP
)/progs
/util
/readtex.c
238 ln
-s
$(TOP
)/progs
/util
/readtex.c .
242 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
243 ln
-s
$(TOP
)/progs
/util
/extfuncs.h .
247 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
250 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h
253 shaderutil.o
: shaderutil.c shaderutil.h
254 $(APP_CC
) -c
-I
$(INCDIR
) $(INCLUDES
) $(CFLAGS
) shaderutil.c
260 etags
`find . -name \*.[ch]` `find ../include`