summaryrefslogtreecommitdiffstats
path: root/src/glsl/apps/Makefile
diff options
context:
space:
mode:
authormichal <michal@transistor.(none)>2009-12-10 01:03:15 +0100
committermichal <michal@transistor.(none)>2009-12-10 01:03:15 +0100
commit068596c9a7e8d330ffdff8ad8700bd6093b5bdea (patch)
tree9a7cab7a0c44d83169f59ac3aa4ac2b60e8c7acb /src/glsl/apps/Makefile
parent77a0a3e5ca5dfa951056d9054b4147e3ea0965f3 (diff)
Build mesa glsl with make.
Still don't know how to add glsl to mesa dependencies.
Diffstat (limited to 'src/glsl/apps/Makefile')
-rw-r--r--src/glsl/apps/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/glsl/apps/Makefile b/src/glsl/apps/Makefile
new file mode 100644
index 00000000000..c80fcb9d974
--- /dev/null
+++ b/src/glsl/apps/Makefile
@@ -0,0 +1,42 @@
+# src/glsl/apps/Makefile
+
+TOP = ../../..
+
+include $(TOP)/configs/current
+
+LIBS = \
+ $(TOP)/src/glsl/pp/libglslpp.a \
+ $(TOP)/src/glsl/cl/libglslcl.a
+
+SOURCES = \
+ compile.c \
+ process.c \
+ purify.c \
+ tokenise.c \
+ version.c
+
+APPS = $(SOURCES:%.c=%)
+
+INCLUDES = -I.
+
+
+##### RULES #####
+
+.SUFFIXES:
+.SUFFIXES: .c
+
+.c:
+ $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
+
+.c.o:
+ $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+
+
+##### TARGETS #####
+
+default: $(APPS)
+
+clean:
+ -rm -f $(APPS)
+ -rm -f *.o
+