progs: add trivial ARB_half_float_vertex support.
[mesa.git] / progs / trivial / Makefile
index 1b9a50b437ba033366d2d58bef7e60e2a5c651ba..207215dee958511ec3217c1e671572f8ada3aff0 100644 (file)
@@ -8,7 +8,7 @@ TOP = ../..
 include $(TOP)/configs/current
 
 
-LIBS = $(APP_LIB_DEPS)
+LIBS = -L$(TOP)/$(LIB_DIR) -l $(GLEW_LIB) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
 
 SOURCES = \
        clear-fbo-tex.c \
@@ -16,17 +16,28 @@ SOURCES = \
        clear-scissor.c \
        clear-undefined.c \
        clear-repeat.c \
+       clear-random.c \
        clear.c \
+       createwin.c \
        dlist-dangling.c \
+       dlist-flat-tri.c \
+       dlist-mat-tri.c \
+       dlist-tri-flat-tri.c \
+       dlist-tri-mat-tri.c \
+       dlist-recursive-call.c \
+       dlist-begin-call-end.c \
        dlist-edgeflag-dangling.c \
        dlist-edgeflag.c \
+       dlist-degenerate.c \
        drawarrays.c \
+       draw2arrays.c \
        drawelements.c \
        drawrange.c \
        flat-clip.c \
        fs-tri.c \
        line-clip.c \
        line-cull.c \
+       line-flat.c \
        line-smooth.c \
        line-stipple-wide.c \
        line-userclip-clip.c \
@@ -38,6 +49,7 @@ SOURCES = \
        lineloop-clip.c \
        lineloop-elts.c \
        lineloop.c \
+       linestrip-clip.c \
        linestrip-flat-stipple.c \
        linestrip-stipple-wide.c \
        linestrip-stipple.c \
@@ -67,27 +79,35 @@ SOURCES = \
        quad-tex-3d.c \
        quad-tex-alpha.c \
        quad-tex-pbo.c \
+       quad-tex-sub.c \
        quad-unfilled-clip.c \
        quad-unfilled-stipple.c \
        quad-unfilled.c \
        quad.c \
        quads.c \
+       quadstrip-clip.c \
        quadstrip-cont.c \
        quadstrip-flat.c \
        quadstrip.c \
-       tri-orig.c \
+       readpixels.c \
        tri-alpha.c \
+       tri-alpha-tex.c \
+       tri-array-interleaved.c \
        tri-blend-color.c \
        tri-blend-max.c \
        tri-blend-min.c \
        tri-blend-revsub.c \
        tri-blend-sub.c \
        tri-blend.c \
+       tri-clear.c \
        tri-clip.c \
        tri-cull-both.c \
        tri-cull.c \
+       tri-logicop-none.c \
+       tri-logicop-xor.c \
        tri-dlist.c \
        tri-edgeflag.c \
+       tri-fbo-tex-mip.c \
        tri-fbo-tex.c \
        tri-fbo.c \
        tri-flat-clip.c \
@@ -96,16 +116,24 @@ SOURCES = \
        tri-fp.c \
        tri-fp-const-imm.c \
        tri-lit.c \
+       tri-lit-material.c \
        tri-mask-tri.c \
+       tri-orig.c \
+       tri-point-line-clipped.c \
        tri-query.c \
        tri-repeat.c \
        tri-scissor-tri.c \
+       tri-square.c \
        tri-stencil.c \
+       tri-stipple.c \
+       tri-multitex-vbo.c \
        tri-tex.c \
        tri-tex-3d.c \
        tri-tri.c \
+       tri-unfilled-fog.c \
        tri-unfilled-edgeflag.c \
        tri-unfilled-clip.c \
+       tri-unfilled-point.c \
        tri-unfilled-smooth.c \
        tri-unfilled-tri.c \
        tri-unfilled-tri-lit.c \
@@ -113,6 +141,8 @@ SOURCES = \
        tri-unfilled-userclip.c \
        tri-unfilled.c \
        tri-userclip.c \
+       tri-viewport.c \
+       tri-z-9.c \
        tri-z-eq.c \
        tri-z.c \
        tri.c \
@@ -124,14 +154,18 @@ SOURCES = \
        tristrip-clip.c \
        tristrip-flat.c \
        tristrip.c \
+       vbo-tri.c \
        vbo-drawarrays.c \
+       vbo-noninterleaved.c \
        vbo-drawelements.c \
        vbo-drawrange.c \
        vp-array.c \
+       vp-array-hf.c \
        vp-array-int.c \
        vp-clip.c \
        vp-line-clip.c \
        vp-tri.c \
+       vp-tri-invariant.c \
        vp-tri-swap.c \
        vp-tri-tex.c \
        vp-tri-imm.c \
@@ -153,7 +187,7 @@ UTIL_FILES = readtex.h readtex.c
 .SUFFIXES: .c
 
 .c:
-       $(APP_CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
+       $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
 
 .c.o:
        $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
@@ -167,9 +201,9 @@ UTIL_FILES = readtex.h readtex.c
 default: $(UTIL_FILES) $(PROGS)
 
 clean:
-       rm -f $(PROGS)
-       rm -f *.o
-       rm -f getproclist.h
+       -rm -f $(PROGS)
+       -rm -f *.o
+       -rm -f getproclist.h
 
 
 # auto code generation
@@ -180,13 +214,13 @@ getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.
 
 
 texrect: texrect.o readtex.o
-       $(APP_CC) texrect.o readtex.o $(LIBS) -o $@
+       $(APP_CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
 
 texrect.o: texrect.c readtex.h
        $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
 
 invert: invert.o readtex.o
-       $(APP_CC) invert.o readtex.o $(LIBS) -o $@
+       $(APP_CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
 
 invert.o: invert.c readtex.h
        $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@