From 50c75c12597b230cec4d7a29559cde263025eeb2 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Fri, 8 Sep 2017 23:25:51 +0900 Subject: pacc: initial --- pacc/hlsl/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pacc/hlsl/Makefile (limited to 'pacc/hlsl/Makefile') 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) -- cgit v1.2.3