-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.win32
34 lines (24 loc) · 1.66 KB
/
Makefile.win32
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
MANDEL_EXE=mandelbrot-win32.exe
PATHTRACER_EXE=pocketpt-win32.exe
DEBUG_FLAGS=
# DEBUG_FLAGS=-DNDEBUG
UTIL_HEADERS=src\vulkanComputeApp.h src\external\lodepng\lodepng.h
UTIL_CPPS=src\vulkanComputeApp.cpp src\external\lodepng\lodepng.cpp
all: $(MANDEL_EXE) $(PATHTRACER_EXE)
$(MANDEL_EXE): src\main.cpp $(UTIL_HEADERS) $(UTIL_CPPS) src\mandelbrotApp.h shaders\mandelbrot.generated.spv Makefile.win32
g++ -std=c++11 -O3 -I$(VULKAN_SDK)\include -DMANDELBROT_MODE $(DEBUG_FLAGS) $(UTIL_CPPS) src\main.cpp -o $(MANDEL_EXE) -L$(VULKAN_SDK)\lib -lvulkan-1
shaders\mandelbrot.generated.spv: shaders\mandelbrot.comp Makefile.win32
$(VULKAN_SDK)\bin\glslangValidator -V shaders\mandelbrot.comp -o shaders\mandelbrot.generated.spv
$(PATHTRACER_EXE): src\main.cpp $(UTIL_HEADERS) $(UTIL_CPPS) src\pathtracerApp.h shaders\pathtracer.generated.spv Makefile.win32
g++ -std=c++11 -O3 -I$(VULKAN_SDK)\include -DPATHTRACER_MODE $(DEBUG_FLAGS) $(UTIL_CPPS) src\main.cpp -o $(PATHTRACER_EXE) -L$(VULKAN_SDK)\Lib -lvulkan-1
shaders\pathtracer.generated.spv: shaders\pathtracer.comp shaders\emulateDouble.h.glsl Makefile.win32
$(VULKAN_SDK)\bin\glslc -E shaders\pathtracer.comp -o shaders\pathtracer.preprocessed.comp
$(VULKAN_SDK)\bin\glslangValidator -V shaders\pathtracer.preprocessed.comp -o shaders\pathtracer.generated.spv
$(VULKAN_SDK)\bin\glslc -O0 shaders\pathtracer.comp -o shaders\pathtracer.generated.spv
del /Q shaders\pathtracer.preprocessed.comp
lofi-run: $(PATHTRACER_EXE)
$(PATHTRACER_EXE) 100 400
run: $(PATHTRACER_EXE)
$(PATHTRACER_EXE)
clean:
del /Q $(MANDEL_EXE) $(PATHTRACER_EXE) pathtracer.png mandelbrot.png shaders\pathtracer.generated.spv shaders\mandelbrot.generated.spv