aboutsummaryrefslogtreecommitdiff
path: root/pacc/glsl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pacc/glsl/Makefile')
-rw-r--r--pacc/glsl/Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/pacc/glsl/Makefile b/pacc/glsl/Makefile
index 36aace4..a8c0bf9 100644
--- a/pacc/glsl/Makefile
+++ b/pacc/glsl/Makefile
@@ -1,12 +1,18 @@
VSHADERS:=blit.vert
-FSHADERS:=copy.frag color.frag color_trans.frag key.frag fill.frag font.frag
+FSHADERS:=copy.frag color.frag color_trans.frag
DSHEADER:=dsheader
+DS3HEADER:=ds3header
ESHEADER:=esheader
-INCS:=$(addsuffix .inc,$(VSHADERS) $(FSHADERS) $(DSHEADER) $(ESHEADER))
+ES3HEADER:=es3header
+INCS:=$(addsuffix .inc,$(VSHADERS) $(FSHADERS) $(DSHEADER) $(DS3HEADER) $(ESHEADER) $(ES3HEADER))
SHADERS2:=$(addsuffix .ds.vert,$(basename $(VSHADERS)))
+SHADERS2:=$(addsuffix .ds3.vert,$(basename $(VSHADERS)))
SHADERS2+=$(addsuffix .es.vert,$(basename $(VSHADERS)))
+SHADERS2+=$(addsuffix .es3.vert,$(basename $(VSHADERS)))
SHADERS2+=$(addsuffix .ds.frag,$(basename $(FSHADERS)))
+SHADERS2+=$(addsuffix .ds3.frag,$(basename $(FSHADERS)))
SHADERS2+=$(addsuffix .es.frag,$(basename $(FSHADERS)))
+SHADERS2+=$(addsuffix .es3.frag,$(basename $(FSHADERS)))
VALS:=$(addsuffix .vald,$(SHADERS2))
VALIDATOR:=glslangValidator
VFLAGS:=
@@ -21,12 +27,24 @@ val: $(VALS)
%.es.frag: %.frag
cat $(ESHEADER) $< > $@
+%.es3.vert: %.vert
+ cat $(ES3HEADER) $< > $@
+
+%.es3.frag: %.frag
+ cat $(ES3HEADER) $< > $@
+
%.ds.vert: %.vert
cat $(DSHEADER) $< > $@
%.ds.frag: %.frag
cat $(DSHEADER) $< > $@
+%.ds3.vert: %.vert
+ cat $(DS3HEADER) $< > $@
+
+%.ds3.frag: %.frag
+ cat $(DS3HEADER) $< > $@
+
%.vald: %
$(VALIDATOR) $(VFLAGS) $<