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
)
128 PROGS
= $(SOURCES
:%.c
=%)
130 INCLUDES
= -I.
-I
$(TOP
)/include
132 UTIL_FILES
= readtex.h readtex.c
137 default
: $(UTIL_FILES
) $(PROGS
)
150 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
153 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
156 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
158 # auto code generation
159 getprocaddress
: getprocaddress.c getproclist.h
161 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gen
/gl_API.xml getprocaddress.c getprocaddress.py
162 python getprocaddress.py
> getproclist.h
164 arraytexture
: arraytexture.o readtex.o
165 $(APP_CC
) $(CFLAGS
) arraytexture.o readtex.o
$(LIBS
) -o
$@
167 arraytexture.o
: arraytexture.c readtex.h
168 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) arraytexture.c
-o
$@
170 afsmultiarb
: afsmultiarb.o readtex.o
171 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) afsmultiarb.o readtex.o
$(LIBS
) -o
$@
173 afsmultiarb.o
: afsmultiarb.c readtex.h
174 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) afsmultiarb.c
-o
$@
176 bumpmap
: bumpmap.o readtex.o
177 $(CC
) $(CFLAGS
) $(LDFLAGS
) bumpmap.o readtex.o
$(LIBS
) -o
$@
179 bumpmap.o
: bumpmap.c readtex.h
180 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) bumpmap.c
-o
$@
182 drawbuffers
: drawbuffers.o
183 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) drawbuffers.o
$(LIBS
) -o
$@
185 drawbuffers.o
: drawbuffers.c extfuncs.h
186 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) drawbuffers.c
-o
$@
188 texrect
: texrect.o readtex.o
189 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
191 texrect.o
: texrect.c readtex.h
192 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) texrect.c
-o
$@
194 bug_3195
: bug_3195.o readtex.o
195 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) bug_3195.o readtex.o
$(LIBS
) -o
$@
197 bug_3195.o
: bug_3195.c readtex.h
198 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) bug_3195.c
-o
$@
200 invert
: invert.o readtex.o
201 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
203 invert.o
: invert.c readtex.h
204 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) invert.c
-o
$@
206 mipmap_view
: mipmap_view.o readtex.o
207 $(APP_CC
) $(CFLAGS
) mipmap_view.o readtex.o
$(LIBS
) -o
$@
209 mipmap_view.o
: mipmap_view.c readtex.h
210 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
212 mipmap_limits
: mipmap_limits.o readtex.o
213 $(APP_CC
) $(CFLAGS
) mipmap_limits.o readtex.o
$(LIBS
) -o
$@
215 mipmap_limits.o
: mipmap_limits.c readtex.h
216 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
218 fillrate
: fillrate.o readtex.o
219 $(APP_CC
) $(CFLAGS
) fillrate.o readtex.o
$(LIBS
) -o
$@
221 fillrate.o
: fillrate.c readtex.h
222 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
227 floattex
: floattex.o readtex.o shaderutil.o
228 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) floattex.o readtex.o shaderutil.o
$(LIBS
) -o
$@
230 floattex.o
: floattex.c readtex.h shaderutil.h
231 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) floattex.c
-o
$@
235 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) readtex.c
-o
$@
237 readtex.h
: $(TOP
)/progs
/util
/readtex.h
238 ln
-s
$(TOP
)/progs
/util
/readtex.h .
240 readtex.c
: $(TOP
)/progs
/util
/readtex.c
241 ln
-s
$(TOP
)/progs
/util
/readtex.c .
245 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
246 ln
-s
$(TOP
)/progs
/util
/extfuncs.h .
250 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
253 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h
256 shaderutil.o
: shaderutil.c shaderutil.h
257 $(APP_CC
) -c
-I
$(INCDIR
) $(INCLUDES
) $(CFLAGS
) shaderutil.c
263 etags
`find . -name \*.[ch]` `find ../include`