diff options
Diffstat (limited to 'progs/fp')
-rw-r--r-- | progs/fp/Makefile | 18 | ||||
-rw-r--r-- | progs/fp/fp-tri.c | 4 | ||||
-rwxr-xr-x | progs/fp/run.sh | 7 |
3 files changed, 22 insertions, 7 deletions
diff --git a/progs/fp/Makefile b/progs/fp/Makefile index 65b2cc118af..ab43cde4f3a 100644 --- a/progs/fp/Makefile +++ b/progs/fp/Makefile @@ -8,7 +8,7 @@ TOP = ../.. include $(TOP)/configs/current -LIBS = $(APP_LIB_DEPS) +LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) SOURCES = \ tri-tex.c \ @@ -40,7 +40,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 $@ @@ -54,9 +54,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 @@ -67,13 +67,21 @@ getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress. texrect: texrect.o readtex.o +<<<<<<< HEAD:progs/fp/Makefile + $(CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@ +======= $(APP_CC) texrect.o readtex.o $(LIBS) -o $@ +>>>>>>> origin/gallium-0.1:progs/fp/Makefile texrect.o: texrect.c readtex.h $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@ invert: invert.o readtex.o +<<<<<<< HEAD:progs/fp/Makefile + $(CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@ +======= $(APP_CC) invert.o readtex.o $(LIBS) -o $@ +>>>>>>> origin/gallium-0.1:progs/fp/Makefile invert.o: invert.c readtex.h $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@ diff --git a/progs/fp/fp-tri.c b/progs/fp/fp-tri.c index cb991f803eb..c07cfa2076e 100644 --- a/progs/fp/fp-tri.c +++ b/progs/fp/fp-tri.c @@ -154,11 +154,11 @@ int main(int argc, char **argv) glutInitWindowPosition(0, 0); glutInitWindowSize(250, 250); glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH); - glutCreateWindow(argv[0]); + args(argc, argv); + glutCreateWindow(filename); glutReshapeFunc(Reshape); glutKeyboardFunc(Key); glutDisplayFunc(Display); - args(argc, argv); Init(); if (show_fps) { signal(SIGALRM, alarmhandler); diff --git a/progs/fp/run.sh b/progs/fp/run.sh new file mode 100755 index 00000000000..480f8108a35 --- /dev/null +++ b/progs/fp/run.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +for i in *.txt ; do +echo $i +./fp-tri $i +done + |