summaryrefslogtreecommitdiff
path: root/progs/fpglsl/Makefile
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2010-02-02 20:01:30 +0000
committerKeith Whitwell <keithw@vmware.com>2010-02-03 10:36:55 +0000
commitd7b1610cedbd8139bdecd41556094832b1dd1e6f (patch)
treeb14853a6543f059d493a51a89f26a0b2e8f88f27 /progs/fpglsl/Makefile
parent84d41f3c7f636d182c659ab85a4449df50c43bc8 (diff)
progs/fpglsl: fp-tris for glsl
Diffstat (limited to 'progs/fpglsl/Makefile')
-rw-r--r--progs/fpglsl/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/progs/fpglsl/Makefile b/progs/fpglsl/Makefile
new file mode 100644
index 0000000000..3bf14b4b70
--- /dev/null
+++ b/progs/fpglsl/Makefile
@@ -0,0 +1,52 @@
+# 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)
+
+SOURCES = \
+ fp-tri.c
+
+
+
+PROGS = $(SOURCES:%.c=%)
+
+INCLUDES = -I. -I$(TOP)/include -I../samples
+
+
+##### RULES #####
+
+.SUFFIXES:
+.SUFFIXES: .c
+
+.c:
+ $(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
+
+.c.o:
+ $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+
+.S.o:
+ $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+
+
+##### TARGETS #####
+
+default: $(PROGS)
+
+clean:
+ rm -f $(PROGS)
+ rm -f *.o
+ rm -f getproclist.h
+
+
+
+
+
+# Emacs tags
+tags:
+ etags `find . -name \*.[ch]` `find ../include`