aboutsummaryrefslogtreecommitdiff
path: root/pacc/hlsl/Makefile
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-09-08 23:25:51 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-09-08 23:25:51 +0900
commit50c75c12597b230cec4d7a29559cde263025eeb2 (patch)
tree9fa8afe8bcf6e1219186e5c567930831a3b5eab5 /pacc/hlsl/Makefile
parent4cfeddd04dcbbf658195bd837d7daff7f08b37bc (diff)
pacc: initial
Diffstat (limited to 'pacc/hlsl/Makefile')
-rw-r--r--pacc/hlsl/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/pacc/hlsl/Makefile b/pacc/hlsl/Makefile
new file mode 100644
index 0000000..7cd2f51
--- /dev/null
+++ b/pacc/hlsl/Makefile
@@ -0,0 +1,15 @@
+INCS:=copy.ps.inc color.ps.inc color_trans.ps.inc key.ps.inc fill.ps.inc font.ps.inc blit.vs.inc
+FXC:=env WINEDEBUG=-all wine $(HOME)/hlsl/fxc/fxc
+all: $(INCS)
+
+%.inc: %.inc.tmp
+ dos2unix < $< | sed -e 's/^const BYTE g_/static const BYTE /' -e '$$a\\' > $@
+
+%.vs.inc.tmp: %.vs.hlsl
+ $(FXC) /nologo /O3 /Tvs_2_0 /E$(basename $(basename $<)) /Fh $@ $<
+
+%.ps.inc.tmp: %.ps.hlsl
+ $(FXC) /nologo /O3 /Tps_2_0 /E$(basename $(basename $<)) /Fh $@ $<
+
+clean:
+ rm -f $(INCS)