2004-03-26 20:37:19 +00:00
|
|
|
# progs/tests/Makefile
|
|
|
|
|
|
|
|
|
|
|
|
# These programs aren't intended to be included with the normal distro.
|
|
|
|
# They're not too interesting but they're good for testing.
|
|
|
|
|
|
|
|
TOP = ../..
|
|
|
|
include $(TOP)/configs/current
|
|
|
|
|
|
|
|
|
2009-03-05 04:03:29 +00:00
|
|
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLEW_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
2004-03-26 20:37:19 +00:00
|
|
|
|
2006-01-30 17:11:47 +00:00
|
|
|
SOURCES = \
|
|
|
|
afsmultiarb.c \
|
|
|
|
antialias.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
arbfpspec.c \
|
|
|
|
arbfptest1.c \
|
|
|
|
arbfptexture.c \
|
|
|
|
arbfptrig.c \
|
2009-06-11 19:10:00 +01:00
|
|
|
arbgpuprog.c \
|
2006-01-30 17:11:47 +00:00
|
|
|
arbnpot.c \
|
2006-09-15 11:41:54 +01:00
|
|
|
arbnpot-mipmap.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
arbvptest1.c \
|
|
|
|
arbvptest3.c \
|
|
|
|
arbvptorus.c \
|
|
|
|
arbvpwarpmesh.c \
|
2007-05-16 22:46:13 +01:00
|
|
|
arraytexture.c \
|
2009-10-09 14:24:04 +01:00
|
|
|
auxbuffer.c \
|
2004-05-11 20:57:58 +01:00
|
|
|
blendminmax.c \
|
2004-05-11 18:48:33 +01:00
|
|
|
blendsquare.c \
|
2009-01-19 19:03:17 +00:00
|
|
|
blendxor.c \
|
2009-10-27 22:46:07 +00:00
|
|
|
blitfb.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
bufferobj.c \
|
2009-03-12 14:07:22 +00:00
|
|
|
bumpmap.c \
|
2006-03-04 04:46:10 +00:00
|
|
|
bug_3050.c \
|
2005-07-07 20:34:06 +01:00
|
|
|
bug_3101.c \
|
2005-08-18 20:52:44 +01:00
|
|
|
bug_3195.c \
|
2008-06-18 17:35:11 +01:00
|
|
|
bug_texstore_i8.c \
|
2008-02-29 00:42:18 +00:00
|
|
|
calibrate_rast.c \
|
2006-01-26 16:37:47 +00:00
|
|
|
copypixrate.c \
|
2005-02-09 22:16:38 +00:00
|
|
|
crossbar.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
cva.c \
|
2007-03-11 23:30:13 +00:00
|
|
|
drawbuffers.c \
|
2007-11-10 00:02:12 +00:00
|
|
|
exactrast.c \
|
2009-10-09 14:24:04 +01:00
|
|
|
ext422square.c \
|
2004-04-22 02:10:09 +01:00
|
|
|
floattex.c \
|
2005-05-04 21:11:35 +01:00
|
|
|
fbotest1.c \
|
2006-04-14 17:20:55 +01:00
|
|
|
fbotest2.c \
|
2008-04-01 23:07:09 +01:00
|
|
|
fillrate.c \
|
2005-10-26 10:48:03 +01:00
|
|
|
fog.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
fogcoord.c \
|
|
|
|
fptest1.c \
|
|
|
|
fptexture.c \
|
|
|
|
getprocaddress.c \
|
2009-06-09 21:03:25 +01:00
|
|
|
getteximage.c \
|
|
|
|
glutfx.c \
|
2005-11-14 23:31:05 +00:00
|
|
|
interleave.c \
|
2005-02-14 17:07:29 +00:00
|
|
|
invert.c \
|
2006-01-30 17:11:47 +00:00
|
|
|
jkrahntest.c \
|
2008-03-27 18:57:08 +00:00
|
|
|
lineclip.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
manytex.c \
|
2009-03-05 04:03:29 +00:00
|
|
|
mapbufrange.c \
|
2009-02-27 18:45:06 +00:00
|
|
|
mapvbo.c \
|
2008-02-16 16:38:34 +00:00
|
|
|
minmag.c \
|
2009-03-18 14:01:47 +00:00
|
|
|
mipgen.c \
|
2009-04-29 20:17:21 +01:00
|
|
|
mipmap_comp.c \
|
2009-06-14 00:04:00 +01:00
|
|
|
mipmap_comp_tests.c \
|
2006-05-10 23:37:56 +01:00
|
|
|
mipmap_limits.c \
|
2008-03-17 22:03:06 +00:00
|
|
|
mipmap_view.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
multipal.c \
|
2009-10-09 14:24:04 +01:00
|
|
|
multitexarray.c \
|
|
|
|
multiwindow.c \
|
2004-10-08 01:56:08 +01:00
|
|
|
no_s3tc.c \
|
2004-05-13 00:05:21 +01:00
|
|
|
packedpixels.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
pbo.c \
|
2009-06-12 22:58:34 +01:00
|
|
|
persp_hint.c \
|
2009-06-10 05:00:22 +01:00
|
|
|
prim.c \
|
2006-08-15 17:44:32 +01:00
|
|
|
prog_parameter.c \
|
2008-09-11 17:43:14 +01:00
|
|
|
quads.c \
|
2007-06-22 01:11:29 +01:00
|
|
|
random.c \
|
2006-04-14 17:20:55 +01:00
|
|
|
readrate.c \
|
2009-01-19 19:03:17 +00:00
|
|
|
rubberband.c \
|
2009-06-03 15:33:56 +01:00
|
|
|
scissor.c \
|
|
|
|
scissor-viewport.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
seccolor.c \
|
2007-12-21 13:23:39 +00:00
|
|
|
shader_api.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
sharedtex.c \
|
2007-12-11 14:37:47 +00:00
|
|
|
stencil_twoside.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
stencilwrap.c \
|
2004-11-04 22:32:41 +00:00
|
|
|
stencil_wrap.c \
|
2009-04-18 19:55:55 +01:00
|
|
|
streaming_rect \
|
2008-02-20 18:58:33 +00:00
|
|
|
subtex \
|
2006-01-26 17:35:31 +00:00
|
|
|
subtexrate.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
tex1d.c \
|
2009-10-09 14:24:04 +01:00
|
|
|
texcmp.c \
|
2006-05-10 23:47:06 +01:00
|
|
|
texcompress2.c \
|
2009-06-30 12:34:55 +01:00
|
|
|
texcompsub.c \
|
2009-04-18 19:58:00 +01:00
|
|
|
texdown \
|
2005-10-28 19:41:03 +01:00
|
|
|
texfilt.c \
|
2009-10-09 14:24:04 +01:00
|
|
|
texgenmix.c \
|
2009-12-05 16:20:03 +00:00
|
|
|
texleak.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
texline.c \
|
2009-04-18 20:12:50 +01:00
|
|
|
texobj.c \
|
2005-01-19 14:52:13 +00:00
|
|
|
texobjshare.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
texrect.c \
|
|
|
|
texwrap.c \
|
2008-03-27 18:57:08 +00:00
|
|
|
unfilledclip.c \
|
2006-06-12 17:26:29 +01:00
|
|
|
vao-01.c \
|
|
|
|
vao-02.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
vparray.c \
|
2009-10-09 14:24:04 +01:00
|
|
|
vpeval.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
vptest1.c \
|
|
|
|
vptest2.c \
|
|
|
|
vptest3.c \
|
|
|
|
vptorus.c \
|
|
|
|
vpwarpmesh.c \
|
|
|
|
yuvrect.c \
|
2004-04-08 23:45:02 +01:00
|
|
|
yuvsquare.c \
|
2008-04-11 16:21:37 +01:00
|
|
|
zcomp.c \
|
2008-04-11 01:28:43 +01:00
|
|
|
zdrawpix.c \
|
2004-04-08 23:45:02 +01:00
|
|
|
zreaddraw.c
|
2004-03-26 20:37:19 +00:00
|
|
|
|
|
|
|
PROGS = $(SOURCES:%.c=%)
|
|
|
|
|
|
|
|
INCLUDES = -I. -I$(TOP)/include
|
|
|
|
|
2004-04-21 00:25:47 +01:00
|
|
|
UTIL_FILES = readtex.h readtex.c
|
|
|
|
|
2004-03-26 20:37:19 +00:00
|
|
|
|
2007-09-24 18:26:56 +01:00
|
|
|
##### TARGETS #####
|
|
|
|
|
|
|
|
default: $(UTIL_FILES) $(PROGS)
|
|
|
|
|
|
|
|
clean:
|
2008-05-07 19:35:23 +01:00
|
|
|
-rm -f $(PROGS)
|
|
|
|
-rm -f *.o
|
|
|
|
-rm -f getproclist.h
|
2007-09-24 18:26:56 +01:00
|
|
|
|
2004-03-26 20:37:19 +00:00
|
|
|
##### RULES #####
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .c
|
|
|
|
|
|
|
|
.c:
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
2004-03-26 20:37:19 +00:00
|
|
|
|
|
|
|
.c.o:
|
2008-09-11 18:00:54 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
2004-03-26 20:37:19 +00:00
|
|
|
|
|
|
|
.S.o:
|
2008-09-11 18:00:54 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
2004-03-26 20:37:19 +00:00
|
|
|
|
|
|
|
# auto code generation
|
|
|
|
getprocaddress: getprocaddress.c getproclist.h
|
|
|
|
|
2004-10-29 20:12:08 +01:00
|
|
|
getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
|
2004-03-26 20:37:19 +00:00
|
|
|
python getprocaddress.py > getproclist.h
|
|
|
|
|
2007-05-16 22:46:13 +01:00
|
|
|
arraytexture: arraytexture.o readtex.o
|
2008-09-11 18:00:54 +01:00
|
|
|
$(APP_CC) $(CFLAGS) arraytexture.o readtex.o $(LIBS) -o $@
|
2007-05-16 22:46:13 +01:00
|
|
|
|
|
|
|
arraytexture.o: arraytexture.c readtex.h
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) arraytexture.c -o $@
|
2007-05-16 22:46:13 +01:00
|
|
|
|
2005-09-10 02:02:25 +01:00
|
|
|
afsmultiarb: afsmultiarb.o readtex.o
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) afsmultiarb.o readtex.o $(LIBS) -o $@
|
2005-09-10 02:02:25 +01:00
|
|
|
|
|
|
|
afsmultiarb.o: afsmultiarb.c readtex.h
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) afsmultiarb.c -o $@
|
2004-03-26 20:37:19 +00:00
|
|
|
|
2009-03-12 14:07:22 +00:00
|
|
|
bumpmap: bumpmap.o readtex.o
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) bumpmap.o readtex.o $(LIBS) -o $@
|
|
|
|
|
|
|
|
bumpmap.o: bumpmap.c readtex.h
|
|
|
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) bumpmap.c -o $@
|
|
|
|
|
2007-03-12 16:30:36 +00:00
|
|
|
drawbuffers: drawbuffers.o
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) drawbuffers.o $(LIBS) -o $@
|
2007-03-12 16:30:36 +00:00
|
|
|
|
|
|
|
drawbuffers.o: drawbuffers.c extfuncs.h
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) drawbuffers.c -o $@
|
2007-03-12 16:30:36 +00:00
|
|
|
|
2004-03-26 20:37:19 +00:00
|
|
|
texrect: texrect.o readtex.o
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
|
2004-03-26 20:37:19 +00:00
|
|
|
|
|
|
|
texrect.o: texrect.c readtex.h
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) texrect.c -o $@
|
2004-03-26 20:37:19 +00:00
|
|
|
|
2005-08-18 20:52:44 +01:00
|
|
|
bug_3195: bug_3195.o readtex.o
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) bug_3195.o readtex.o $(LIBS) -o $@
|
2005-08-18 20:52:44 +01:00
|
|
|
|
|
|
|
bug_3195.o: bug_3195.c readtex.h
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) bug_3195.c -o $@
|
2005-08-18 20:52:44 +01:00
|
|
|
|
2005-02-14 17:07:29 +00:00
|
|
|
invert: invert.o readtex.o
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
|
2005-02-14 17:07:29 +00:00
|
|
|
|
|
|
|
invert.o: invert.c readtex.h
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) invert.c -o $@
|
2005-02-14 17:07:29 +00:00
|
|
|
|
2008-03-17 22:03:06 +00:00
|
|
|
mipmap_view: mipmap_view.o readtex.o
|
2008-09-11 18:00:54 +01:00
|
|
|
$(APP_CC) $(CFLAGS) mipmap_view.o readtex.o $(LIBS) -o $@
|
2008-03-17 22:03:06 +00:00
|
|
|
|
|
|
|
mipmap_view.o: mipmap_view.c readtex.h
|
2008-09-11 18:00:54 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
2008-03-17 22:03:06 +00:00
|
|
|
|
2009-03-18 12:29:03 +00:00
|
|
|
mipmap_limits: mipmap_limits.o readtex.o
|
|
|
|
$(APP_CC) $(CFLAGS) mipmap_limits.o readtex.o $(LIBS) -o $@
|
|
|
|
|
|
|
|
mipmap_limits.o: mipmap_limits.c readtex.h
|
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
2008-03-17 22:03:06 +00:00
|
|
|
|
2008-04-01 23:07:09 +01:00
|
|
|
fillrate: fillrate.o readtex.o
|
2008-09-11 18:00:54 +01:00
|
|
|
$(APP_CC) $(CFLAGS) fillrate.o readtex.o $(LIBS) -o $@
|
2008-04-01 23:07:09 +01:00
|
|
|
|
|
|
|
fillrate.o: fillrate.c readtex.h
|
2008-09-11 18:00:54 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
2008-04-01 23:07:09 +01:00
|
|
|
|
|
|
|
|
2008-03-17 22:03:06 +00:00
|
|
|
|
2008-12-09 21:29:14 +00:00
|
|
|
|
|
|
|
floattex: floattex.o readtex.o shaderutil.o
|
2009-04-10 15:56:03 +01:00
|
|
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) floattex.o readtex.o shaderutil.o $(LIBS) -o $@
|
2008-12-09 21:29:14 +00:00
|
|
|
|
|
|
|
floattex.o: floattex.c readtex.h shaderutil.h
|
2009-04-10 15:56:03 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) floattex.c -o $@
|
2008-12-09 21:29:14 +00:00
|
|
|
|
|
|
|
|
2004-03-26 20:37:19 +00:00
|
|
|
readtex.o: readtex.c
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) readtex.c -o $@
|
2004-03-26 20:37:19 +00:00
|
|
|
|
|
|
|
readtex.h: $(TOP)/progs/util/readtex.h
|
|
|
|
ln -s $(TOP)/progs/util/readtex.h .
|
|
|
|
|
|
|
|
readtex.c: $(TOP)/progs/util/readtex.c
|
|
|
|
ln -s $(TOP)/progs/util/readtex.c .
|
|
|
|
|
2008-12-09 21:29:14 +00:00
|
|
|
|
|
|
|
|
2007-03-12 16:30:36 +00:00
|
|
|
extfuncs.h: $(TOP)/progs/util/extfuncs.h
|
|
|
|
ln -s $(TOP)/progs/util/extfuncs.h .
|
2004-03-26 20:37:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2008-12-09 21:29:14 +00:00
|
|
|
shaderutil.c: $(TOP)/progs/util/shaderutil.c
|
|
|
|
cp $< .
|
|
|
|
|
|
|
|
shaderutil.h: $(TOP)/progs/util/shaderutil.h
|
|
|
|
cp $< .
|
|
|
|
|
|
|
|
shaderutil.o: shaderutil.c shaderutil.h
|
2009-04-10 15:56:03 +01:00
|
|
|
$(APP_CC) -c -I$(INCDIR) $(INCLUDES) $(CFLAGS) shaderutil.c
|
2008-12-09 21:29:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2004-03-26 20:37:19 +00:00
|
|
|
# Emacs tags
|
|
|
|
tags:
|
|
|
|
etags `find . -name \*.[ch]` `find ../include`
|