annotate Makefile @ 465:2fcb9268072b

did: refactor, add resizing, proper cleanup
author Sam <sam@basx.dev>
date Tue, 20 Dec 2022 00:28:05 +0700
parents 7cae1900c9a7
children 4ed9cb098315
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
461
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
1 SOURCES := $(shell find src -name '*.nim')
463
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
2 COMPILE_OPTIONS := --path:src --mm:orc --experimental:strictEffects --threads:on
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
3 DEBUG_OPTIONS := --debugger:native --checks:on --assertions:on
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
4 RELEASE_OPTIONS := -d:release --checks:off --assertions:off
461
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
5
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
6 build/debug/linux:
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
7 mkdir -p $@
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
8 build/debug/linux/test: build/debug/linux ${SOURCES}
463
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
9 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -o:$@ examples/test.nim
461
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
10
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
11 build/release/linux:
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
12 mkdir -p $@
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
13 build/release/linux/test: build/release/linux ${SOURCES}
463
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
14 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} -o:$@ examples/test.nim
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
15
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
16 # not working yet, need to implement windows window-API
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
17 # build/debug/windows:
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
18 # mkdir -p $@
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
19 # build/debug/windows/test: build/debug/windows ${SOURCES}
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
20 # nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -d:mingw -o:$@ examples/test.nim
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
21 # build/release/windows:
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
22 # mkdir -p $@
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
23 # build/release/windows/test: build/release/windows ${SOURCES}
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
24 # nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -d:mingw -o:$@ examples/test.nim
464
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
25 thirdparty:
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
26 echo https://storage.googleapis.com/spirv-tools/artifacts/prod/graphics_shader_compiler/spirv-tools/windows-msvc-2017-release/continuous/1885/20221216-081805/install.zip
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
27 echo https://storage.googleapis.com/spirv-tools/artifacts/prod/graphics_shader_compiler/spirv-tools/windows-msvc-2017-release/continuous/1885/20221216-081805/install.zip
463
91544fc1afe5 did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 462
diff changeset
28
464
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
29 SPIRV_TOOLS_LINUX_DEBUG:
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
30 wget https://storage.googleapis.com/spirv-tools/artifacts/prod/graphics_shader_compiler/spirv-tools/linux-gcc-release/continuous/1889/20221216-081754/install.tgz
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
31 SPIRV_TOOLS_LINUX_DEBUG:
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
32 wget https://storage.googleapis.com/spirv-tools/artifacts/prod/graphics_shader_compiler/spirv-tools/linux-gcc-debug/continuous/1899/20221216-081758/install.tgz
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
33 SPIRV_TOOLS_WINDOWS_DEBUG:
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
34 wget https://storage.googleapis.com/spirv-tools/artifacts/prod/graphics_shader_compiler/spirv-tools/windows-msvc-2017-debug/continuous/1599/20221216-081803/install.zip
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
35 SPIRV_TOOLS_WINDOWS_RELEASE:
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
36 wget https://storage.googleapis.com/spirv-tools/artifacts/prod/graphics_shader_compiler/spirv-tools/windows-msvc-2017-release/continuous/1885/20221216-081805/install.zip
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
37
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
38 GLSL_LINUX_DEBUG:
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
39 wget
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
40 GLSL_LINUX_RELEASE:
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
41 wget
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
42 GLSL_WINDOWS_DEBUG:
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
43 wget
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
44 GLSL_WINDOWS_RELEASE:
7cae1900c9a7 add: skeleton to download thirdparty builds
Sam <sam@basx.dev>
parents: 463
diff changeset
45 wget