-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
49 lines (40 loc) · 1.28 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
BASEOBJNAMES := hlslparser compiler optimizer common generator
HEADERS := src/hlslparser.hpp src/common.hpp src/compiler.hpp src/hlsloptconv.h
OBJS := $(patsubst %,obj/%.obj,$(BASEOBJNAMES))
CXXFLAGS := /W3 /MDd /GR- /D_DEBUG /Zi /c \
/DHOC_MALLOC_REPLACEMENT=chkmalloc /DHOC_FREE_REPLACEMENT=chkfree
.PHONY: tools test html5test
tools: sltest.exe hlsloptconv.exe
test: sltest.exe
sltest
test2: sltest.exe
sltest -t tests/200-vars.hlsl
test3: sltest.exe
sltest -t tests/300-preproc.hlsl
test4: sltest.exe
sltest -t tests/400-func.hlsl
test5: sltest.exe
sltest -t tests/500-intrin.hlsl
test5t: sltest.exe
sltest -t tests/560-intrin-tex.hlsl
testbugs: sltest.exe
sltest -t tests/900-bugs.hlsl
html5test: hlsloptconv.exe
py runtests/html5-compile.py
four: four.exe
four
sltest.exe: $(OBJS) obj/test.obj
link /nologo /out:$@ $^ /DEBUG
four.exe: $(OBJS) obj/four.obj
link /nologo /out:$@ $^ /DEBUG user32.lib gdi32.lib msimg32.lib \
d3d9.lib d3d11.lib d3dcompiler.lib OpenGL32.lib
hlsloptconv.exe: $(OBJS) obj/cli.obj
link /nologo /out:$@ $^ /DEBUG
obj/%.obj: src/%.cpp $(HEADERS) | obj
cl /nologo /Fo$@ $(CXXFLAGS) $<
obj/%.obj: src/tools/%.cpp $(HEADERS) | obj
cl /nologo /Fo$@ $(CXXFLAGS) $<
obj:
mkdir obj
clean:
del /F/Q sltest.exe hlsloptconv.exe four.exe *.ilk *.pdb obj\*.obj