summaryrefslogtreecommitdiff
path: root/progs/glsl/Makefile
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-01-15 17:27:24 -0700
committerBrian <brian@yutani.localnet.net>2007-01-15 17:27:24 -0700
commit2ccd26469541ef042bb1aec8ade3dc4736f694cf (patch)
tree90132405bcf4384d9bfe76e88e18f363b923b674 /progs/glsl/Makefile
parentf6507157e290b783c036e9459886e0f7ae60ef7b (diff)
Added new directory of GL shading language demos: glsl
Diffstat (limited to 'progs/glsl/Makefile')
-rw-r--r--progs/glsl/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/progs/glsl/Makefile b/progs/glsl/Makefile
new file mode 100644
index 0000000000..174f5bebe4
--- /dev/null
+++ b/progs/glsl/Makefile
@@ -0,0 +1,50 @@
+# progs/demos/Makefile
+
+TOP = ../..
+include $(TOP)/configs/current
+
+INCDIR = $(TOP)/include
+
+OSMESA_LIBS = -L$(TOP)/$(LIB_DIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS)
+
+OSMESA16_LIBS = -L$(TOP)/$(LIB_DIR) -lglut -lOSMesa16 -lGLU -lGL $(APP_LIB_DEPS)
+
+OSMESA32_LIBS = -L$(TOP)/$(LIB_DIR) -lglut -lOSMesa32 -lGLU -lGL $(APP_LIB_DEPS)
+
+LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
+
+PROGS = \
+ brick \
+ mandelbrot
+
+
+##### RULES #####
+
+.SUFFIXES:
+.SUFFIXES: .c
+
+
+# make executable from .c file:
+.c: $(LIB_DEP)
+ $(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
+
+
+##### TARGETS #####
+
+default: $(PROGS)
+
+$(PROGS):
+
+extfuncs.h: $(TOP)/progs/util/extfuncs.h
+ cp $< .
+
+
+brick.c: extfuncs.h
+
+mandelbrot.c: extfuncs.h
+
+
+clean:
+ -rm -f $(PROGS)
+ -rm -f *.o *~
+ -rm -f extfuncs.h