tests: prim.c demo, modified for GL_EXT_provoking_vertex
[mesa.git] / progs / tests / Makefile
index b96ad9f4b469536186803f6c26c52f2984d4b746..b99f03cefb75632ba22e6159b21d4827f4c725f6 100644 (file)
@@ -8,7 +8,7 @@ TOP = ../..
 include $(TOP)/configs/current
 
 
-LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
+LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLEW_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
 
 SOURCES = \
        afsmultiarb.c \
@@ -26,7 +26,9 @@ SOURCES = \
        arraytexture.c \
        blendminmax.c \
        blendsquare.c \
+       blendxor.c \
        bufferobj.c \
+       bumpmap.c \
        bug_3050.c \
        bug_3101.c \
        bug_3195.c \
@@ -35,48 +37,55 @@ SOURCES = \
        copypixrate.c \
        crossbar.c \
        cva.c \
-       dinoshade.c \
        drawbuffers.c \
        exactrast.c \
        floattex.c \
        fbotest1.c \
        fbotest2.c \
-       fbotexture.c \
        fillrate.c \
        fog.c \
        fogcoord.c \
        fptest1.c \
        fptexture.c \
        getprocaddress.c \
+       glutfx \
        interleave.c \
        invert.c \
        jkrahntest.c \
        lineclip.c \
        manytex.c \
+       mapbufrange.c \
+       mapvbo.c \
        minmag.c \
+       mipgen.c \
+       mipmap_comp.c \
        mipmap_limits.c \
        mipmap_view.c \
        multipal.c \
        no_s3tc.c \
        packedpixels.c \
        pbo.c \
+       prim.c \
        prog_parameter.c \
-       projtex.c \
        quads.c \
        random.c \
        readrate.c \
+       rubberband.c \
        seccolor.c \
        shader_api.c \
        sharedtex.c \
        stencil_twoside.c \
        stencilwrap.c \
        stencil_wrap.c \
+       streaming_rect \
        subtex \
        subtexrate.c \
        tex1d.c \
        texcompress2.c \
+       texdown \
        texfilt.c \
        texline.c \
+       texobj.c \
        texobjshare.c \
        texrect.c \
        texwrap.c \
@@ -143,6 +152,12 @@ afsmultiarb: afsmultiarb.o readtex.o
 afsmultiarb.o: afsmultiarb.c readtex.h
        $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) afsmultiarb.c -o $@
 
+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 $@
+
 drawbuffers: drawbuffers.o
        $(APP_CC) $(CFLAGS) $(LDFLAGS) drawbuffers.o $(LIBS) -o $@
 
@@ -173,6 +188,11 @@ mipmap_view: mipmap_view.o readtex.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 $@
@@ -184,10 +204,10 @@ fillrate.o: fillrate.c readtex.h
 
 
 floattex: floattex.o readtex.o shaderutil.o
-       $(CC) $(CFLAGS) $(LDFLAGS) floattex.o readtex.o shaderutil.o $(LIBS) -o $@
+       $(APP_CC) $(CFLAGS) $(LDFLAGS) floattex.o readtex.o shaderutil.o $(LIBS) -o $@
 
 floattex.o: floattex.c readtex.h shaderutil.h
-       $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) floattex.c -o $@
+       $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) floattex.c -o $@
 
 
 readtex.o: readtex.c
@@ -213,7 +233,7 @@ shaderutil.h: $(TOP)/progs/util/shaderutil.h
        cp $< .
 
 shaderutil.o: shaderutil.c shaderutil.h
-       $(CC) -c -I$(INCDIR) $(CFLAGS) shaderutil.c
+       $(APP_CC) -c -I$(INCDIR) $(INCLUDES) $(CFLAGS) shaderutil.c