mesa/progs/tests/Makefile

259 lines
5.2 KiB
Makefile
Raw Normal View History

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
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 \
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 \
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 \
blendxor.c \
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 \
bug_3195.c \
bug_texstore_i8.c \
calibrate_rast.c \
copypixrate.c \
crossbar.c \
2004-03-26 20:37:19 +00:00
cva.c \
2007-03-11 23:30:13 +00:00
drawbuffers.c \
exactrast.c \
2009-10-09 14:24:04 +01:00
ext422square.c \
floattex.c \
fbotest1.c \
fbotest2.c \
fillrate.c \
fog.c \
2004-03-26 20:37:19 +00:00
fogcoord.c \
fptest1.c \
fptexture.c \
getprocaddress.c \
getteximage.c \
glutfx.c \
interleave.c \
2005-02-14 17:07:29 +00:00
invert.c \
2006-01-30 17:11:47 +00:00
jkrahntest.c \
lineclip.c \
2004-03-26 20:37:19 +00:00
manytex.c \
mapbufrange.c \
mapvbo.c \
minmag.c \
2009-03-18 14:01:47 +00:00
mipgen.c \
mipmap_comp.c \
mipmap_comp_tests.c \
mipmap_limits.c \
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 \
no_s3tc.c \
packedpixels.c \
2004-03-26 20:37:19 +00:00
pbo.c \
persp_hint.c \
prim.c \
prog_parameter.c \
2008-09-11 17:43:14 +01:00
quads.c \
random.c \
readrate.c \
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 \
shader_api.c \
2004-03-26 20:37:19 +00:00
sharedtex.c \
stencil_twoside.c \
2004-03-26 20:37:19 +00:00
stencilwrap.c \
stencil_wrap.c \
streaming_rect \
subtex \
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 \
texcompsub.c \
2009-04-18 19:58:00 +01:00
texdown \
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 \
unfilledclip.c \
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 \
zcomp.c \
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
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:
-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:
$(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
2004-03-26 20:37:19 +00:00
.c.o:
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
2004-03-26 20:37:19 +00:00
.S.o:
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
2004-03-26 20:37:19 +00:00
# auto code generation
getprocaddress: getprocaddress.c getproclist.h
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
arraytexture: arraytexture.o readtex.o
$(APP_CC) $(CFLAGS) arraytexture.o readtex.o $(LIBS) -o $@
arraytexture.o: arraytexture.c readtex.h
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) arraytexture.c -o $@
afsmultiarb: afsmultiarb.o readtex.o
$(APP_CC) $(CFLAGS) $(LDFLAGS) afsmultiarb.o readtex.o $(LIBS) -o $@
afsmultiarb.o: afsmultiarb.c readtex.h
$(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
$(APP_CC) $(CFLAGS) $(LDFLAGS) drawbuffers.o $(LIBS) -o $@
2007-03-12 16:30:36 +00:00
drawbuffers.o: drawbuffers.c extfuncs.h
$(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
$(APP_CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
2004-03-26 20:37:19 +00:00
texrect.o: texrect.c readtex.h
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) texrect.c -o $@
2004-03-26 20:37:19 +00:00
bug_3195: bug_3195.o readtex.o
$(APP_CC) $(CFLAGS) $(LDFLAGS) bug_3195.o readtex.o $(LIBS) -o $@
bug_3195.o: bug_3195.c readtex.h
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) bug_3195.c -o $@
2005-02-14 17:07:29 +00:00
invert: invert.o readtex.o
$(APP_CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
2005-02-14 17:07:29 +00:00
invert.o: invert.c readtex.h
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) invert.c -o $@
2005-02-14 17:07:29 +00:00
mipmap_view: mipmap_view.o readtex.o
$(APP_CC) $(CFLAGS) mipmap_view.o readtex.o $(LIBS) -o $@
mipmap_view.o: mipmap_view.c readtex.h
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
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 $@
fillrate: fillrate.o readtex.o
$(APP_CC) $(CFLAGS) fillrate.o readtex.o $(LIBS) -o $@
fillrate.o: fillrate.c readtex.h
$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
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 $@
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 $@
2004-03-26 20:37:19 +00:00
readtex.o: readtex.c
$(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 .
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
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
2004-03-26 20:37:19 +00:00
# Emacs tags
tags:
etags `find . -name \*.[ch]` `find ../include`