summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e506470
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+.POSIX:
+
+data_dir = data
+shaders = data/triangle.csh
+tools = qstd cfg sc
+
+.PHONY: all clean $(tools)
+all: $(shaders) $(tools)
+
+qstd:
+ $(MAKE) -C qstd
+
+cfg: qstd
+ $(MAKE) -C cfg
+
+sc: qstd cfg
+ $(MAKE) -C sc
+
+data/triangle.csh: intermediate/triangle.glsl | $(data_dir) sc
+ ./sc/sc intermediate/triangle.glsl data/triangle.csh
+
+$(data_dir):
+ mkdir -p $(data_dir)
+
+clean:
+ rm -rf $(data_dir)
+ make -C qstd clean
+ make -C cfg clean
+ make -C sc clean