define new APP_CC configuration variable for building apps/demos/tests
[mesa.git] / progs / trivial / Makefile
index cbfcdfcf5bf332deb08d95d931d177103e04db5c..c868ab6e6ffc6d4c51df52ebbc9bb4b0b0378cef 100644 (file)
@@ -14,6 +14,7 @@ SOURCES = \
        clear-fbo-tex.c \
        clear-fbo.c \
        clear-scissor.c \
+       clear-undefined.c \
        clear.c \
        dlist-dangling.c \
        dlist-edgeflag-dangling.c \
@@ -40,6 +41,7 @@ SOURCES = \
        linestrip-stipple-wide.c \
        linestrip-stipple.c \
        linestrip.c \
+       long-fixed-func.c \
        pgon-mode.c \
        point-clip.c \
        point-param.c \
@@ -106,6 +108,11 @@ SOURCES = \
        tri-z-eq.c \
        tri-z.c \
        tri.c \
+       trifan-flat.c \
+       trifan-flat-clip.c \
+       trifan-flat-unfilled-clip.c \
+       trifan-unfilled.c \
+       trifan.c \
        tristrip-clip.c \
        tristrip-flat.c \
        tristrip.c \
@@ -113,6 +120,7 @@ SOURCES = \
        vbo-drawelements.c \
        vbo-drawrange.c \
        vp-array.c \
+       vp-array-int.c \
        vp-clip.c \
        vp-line-clip.c \
        vp-tri.c \
@@ -131,13 +139,13 @@ UTIL_FILES = readtex.h readtex.c
 .SUFFIXES: .c
 
 .c:
-       $(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
+       $(APP_CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
 
 .c.o:
-       $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+       $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
 
 .S.o:
-       $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES)  $< -o $@
+       $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES)  $< -o $@
 
 
 ##### TARGETS #####
@@ -158,19 +166,19 @@ getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.
 
 
 texrect: texrect.o readtex.o
-       $(CC) texrect.o readtex.o $(LIBS) -o $@
+       $(APP_CC) texrect.o readtex.o $(LIBS) -o $@
 
 texrect.o: texrect.c readtex.h
-       $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+       $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
 
 invert: invert.o readtex.o
-       $(CC) invert.o readtex.o $(LIBS) -o $@
+       $(APP_CC) invert.o readtex.o $(LIBS) -o $@
 
 invert.o: invert.c readtex.h
-       $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+       $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
 
 readtex.o: readtex.c
-       $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+       $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
 
 
 readtex.h: $(TOP)/progs/util/readtex.h