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-04 21:03:29 -07: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 \
|
2006-01-30 17:11:47 +00:00
|
|
|
arbnpot.c \
|
2006-09-15 10:41:54 +00:00
|
|
|
arbnpot-mipmap.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
arbvptest1.c \
|
|
|
|
|
arbvptest3.c \
|
|
|
|
|
arbvptorus.c \
|
|
|
|
|
arbvpwarpmesh.c \
|
2007-05-16 14:46:13 -07:00
|
|
|
arraytexture.c \
|
2004-05-11 19:57:58 +00:00
|
|
|
blendminmax.c \
|
2004-05-11 17:48:33 +00:00
|
|
|
blendsquare.c \
|
2009-01-19 12:03:17 -07:00
|
|
|
blendxor.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
bufferobj.c \
|
2009-03-12 15:07:22 +01:00
|
|
|
bumpmap.c \
|
2006-03-04 04:46:10 +00:00
|
|
|
bug_3050.c \
|
2005-07-07 19:34:06 +00:00
|
|
|
bug_3101.c \
|
2005-08-18 19:52:44 +00:00
|
|
|
bug_3195.c \
|
2008-06-18 18:35:11 +02:00
|
|
|
bug_texstore_i8.c \
|
2008-02-28 17:42:18 -07: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 17:30:13 -06:00
|
|
|
drawbuffers.c \
|
2007-11-09 17:02:12 -07:00
|
|
|
exactrast.c \
|
2004-04-22 01:10:09 +00:00
|
|
|
floattex.c \
|
2005-05-04 20:11:35 +00:00
|
|
|
fbotest1.c \
|
2006-04-14 16:20:55 +00:00
|
|
|
fbotest2.c \
|
2008-04-01 16:07:09 -06:00
|
|
|
fillrate.c \
|
2005-10-26 09:48:03 +00:00
|
|
|
fog.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
fogcoord.c \
|
|
|
|
|
fptest1.c \
|
|
|
|
|
fptexture.c \
|
|
|
|
|
getprocaddress.c \
|
2009-04-18 12:57:13 -06:00
|
|
|
glutfx \
|
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 11:57:08 -07:00
|
|
|
lineclip.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
manytex.c \
|
2009-03-04 21:03:29 -07:00
|
|
|
mapbufrange.c \
|
2009-02-27 11:45:06 -07:00
|
|
|
mapvbo.c \
|
2008-02-16 09:38:34 -07:00
|
|
|
minmag.c \
|
2009-03-18 14:01:47 +00:00
|
|
|
mipgen.c \
|
2006-05-10 22:37:56 +00:00
|
|
|
mipmap_limits.c \
|
2008-03-17 16:03:06 -06:00
|
|
|
mipmap_view.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
multipal.c \
|
2004-10-08 00:56:08 +00:00
|
|
|
no_s3tc.c \
|
2004-05-12 23:05:21 +00:00
|
|
|
packedpixels.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
pbo.c \
|
2006-08-15 16:44:32 +00:00
|
|
|
prog_parameter.c \
|
2008-09-11 10:43:14 -06:00
|
|
|
quads.c \
|
2007-06-21 18:11:29 -06:00
|
|
|
random.c \
|
2006-04-14 16:20:55 +00:00
|
|
|
readrate.c \
|
2009-01-19 12:03:17 -07:00
|
|
|
rubberband.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
seccolor.c \
|
2007-12-21 15:23:39 +02:00
|
|
|
shader_api.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
sharedtex.c \
|
2007-12-11 15:37:47 +01: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 12:55:55 -06:00
|
|
|
streaming_rect \
|
2008-02-20 11:58:33 -07:00
|
|
|
subtex \
|
2006-01-26 17:35:31 +00:00
|
|
|
subtexrate.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
tex1d.c \
|
2006-05-10 22:47:06 +00:00
|
|
|
texcompress2.c \
|
2009-04-18 12:58:00 -06:00
|
|
|
texdown \
|
2005-10-28 18:41:03 +00:00
|
|
|
texfilt.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
texline.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 11:57:08 -07:00
|
|
|
unfilledclip.c \
|
2006-06-12 16:26:29 +00:00
|
|
|
vao-01.c \
|
|
|
|
|
vao-02.c \
|
2004-03-26 20:37:19 +00:00
|
|
|
vparray.c \
|
|
|
|
|
vptest1.c \
|
|
|
|
|
vptest2.c \
|
|
|
|
|
vptest3.c \
|
|
|
|
|
vptorus.c \
|
|
|
|
|
vpwarpmesh.c \
|
|
|
|
|
yuvrect.c \
|
2004-04-08 22:45:02 +00:00
|
|
|
yuvsquare.c \
|
2008-04-11 09:21:37 -06:00
|
|
|
zcomp.c \
|
2008-04-10 18:28:43 -06:00
|
|
|
zdrawpix.c \
|
2004-04-08 22:45:02 +00:00
|
|
|
zreaddraw.c
|
2004-03-26 20:37:19 +00:00
|
|
|
|
|
|
|
|
PROGS = $(SOURCES:%.c=%)
|
|
|
|
|
|
|
|
|
|
INCLUDES = -I. -I$(TOP)/include
|
|
|
|
|
|
2004-04-20 23:25:47 +00:00
|
|
|
UTIL_FILES = readtex.h readtex.c
|
|
|
|
|
|
2004-03-26 20:37:19 +00:00
|
|
|
|
2007-09-24 10:26:56 -07:00
|
|
|
##### TARGETS #####
|
|
|
|
|
|
|
|
|
|
default: $(UTIL_FILES) $(PROGS)
|
|
|
|
|
|
|
|
|
|
clean:
|
2008-05-07 11:35:23 -07:00
|
|
|
-rm -f $(PROGS)
|
|
|
|
|
-rm -f *.o
|
|
|
|
|
-rm -f getproclist.h
|
2007-09-24 10:26:56 -07: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 11:00:54 -06:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
2004-03-26 20:37:19 +00:00
|
|
|
|
|
|
|
|
.S.o:
|
2008-09-11 11:00:54 -06: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 19:12:08 +00: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 14:46:13 -07:00
|
|
|
arraytexture: arraytexture.o readtex.o
|
2008-09-11 11:00:54 -06:00
|
|
|
$(APP_CC) $(CFLAGS) arraytexture.o readtex.o $(LIBS) -o $@
|
2007-05-16 14:46:13 -07: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 14:46:13 -07:00
|
|
|
|
2005-09-10 01:02:25 +00: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 01:02:25 +00: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 15:07:22 +01: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 10:30:36 -06:00
|
|
|
drawbuffers: drawbuffers.o
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) drawbuffers.o $(LIBS) -o $@
|
2007-03-12 10:30:36 -06: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 10:30:36 -06: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 19:52:44 +00: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 19:52:44 +00: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 19:52:44 +00: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 16:03:06 -06:00
|
|
|
mipmap_view: mipmap_view.o readtex.o
|
2008-09-11 11:00:54 -06:00
|
|
|
$(APP_CC) $(CFLAGS) mipmap_view.o readtex.o $(LIBS) -o $@
|
2008-03-17 16:03:06 -06:00
|
|
|
|
|
|
|
|
mipmap_view.o: mipmap_view.c readtex.h
|
2008-09-11 11:00:54 -06:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
2008-03-17 16:03:06 -06:00
|
|
|
|
2009-03-18 13:29:03 +01: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 16:03:06 -06:00
|
|
|
|
2008-04-01 16:07:09 -06:00
|
|
|
fillrate: fillrate.o readtex.o
|
2008-09-11 11:00:54 -06:00
|
|
|
$(APP_CC) $(CFLAGS) fillrate.o readtex.o $(LIBS) -o $@
|
2008-04-01 16:07:09 -06:00
|
|
|
|
|
|
|
|
fillrate.o: fillrate.c readtex.h
|
2008-09-11 11:00:54 -06:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
2008-04-01 16:07:09 -06:00
|
|
|
|
|
|
|
|
|
2008-03-17 16:03:06 -06:00
|
|
|
|
2008-12-09 14:29:14 -07:00
|
|
|
|
|
|
|
|
floattex: floattex.o readtex.o shaderutil.o
|
2009-04-10 08:56:03 -06:00
|
|
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) floattex.o readtex.o shaderutil.o $(LIBS) -o $@
|
2008-12-09 14:29:14 -07:00
|
|
|
|
|
|
|
|
floattex.o: floattex.c readtex.h shaderutil.h
|
2009-04-10 08:56:03 -06:00
|
|
|
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) floattex.c -o $@
|
2008-12-09 14:29:14 -07: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 14:29:14 -07:00
|
|
|
|
|
|
|
|
|
2007-03-12 10:30:36 -06: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 14:29:14 -07: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 08:56:03 -06:00
|
|
|
$(APP_CC) -c -I$(INCDIR) $(INCLUDES) $(CFLAGS) shaderutil.c
|
2008-12-09 14:29:14 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-03-26 20:37:19 +00:00
|
|
|
# Emacs tags
|
|
|
|
|
tags:
|
|
|
|
|
etags `find . -name \*.[ch]` `find ../include`
|