Mercurial > games > semicongine
comparison Makefile @ 469:ed49f1cdd8b7
add: a few missing changes
author | Sam <sam@basx.dev> |
---|---|
date | Thu, 22 Dec 2022 19:35:54 +0700 |
parents | 1dd9e2393a9e |
children | 0660ba9d1930 |
comparison
equal
deleted
inserted
replaced
468:2ee12af72659 | 469:ed49f1cdd8b7 |
---|---|
1 SOURCES := $(shell find src -name '*.nim') | 1 SOURCES := $(shell find src -name '*.nim') |
2 COMPILE_OPTIONS := --path:src --mm:orc --experimental:strictEffects --threads:on | 2 COMPILE_OPTIONS := --path:src --mm:orc --experimental:strictEffects --threads:on |
3 DEBUG_OPTIONS := --debugger:native --checks:on --assertions:on | 3 DEBUG_OPTIONS := --debugger:native --checks:on --assertions:on |
4 RELEASE_OPTIONS := -d:release --checks:off --assertions:off | 4 RELEASE_OPTIONS := -d:release --checks:off --assertions:off |
5 WINDOWS_OPTIONS := -d:mingw | |
5 | 6 |
6 # build | 7 # build |
7 build/debug/linux/test: ${SOURCES} | 8 build/debug/linux/test: ${SOURCES} |
8 mkdir -p $$( dirname $@ ) | 9 mkdir -p $$( dirname $@ ) |
9 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -o:$@ examples/test.nim | 10 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -o:$@ examples/test.nim |
10 build/release/linux/test: ${SOURCES} | 11 build/release/linux/test: ${SOURCES} |
11 mkdir -p $$( dirname $@ ) | 12 mkdir -p $$( dirname $@ ) |
12 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} -o:$@ examples/test.nim | 13 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} -o:$@ examples/test.nim |
13 build/debug/windows/test: ${SOURCES} | 14 build/debug/windows/test: ${SOURCES} |
14 mkdir -p $$( dirname $@ ) | 15 mkdir -p $$( dirname $@ ) |
15 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -o:$@ examples/test.nim | 16 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} ${WINDOWS_OPTIONS} -o:$@ examples/test.nim |
16 build/release/windows/test: ${SOURCES} | 17 build/release/windows/test: ${SOURCES} |
17 mkdir -p $$( dirname $@ ) | 18 mkdir -p $$( dirname $@ ) |
18 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} -o:$@ examples/test.nim | 19 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} ${WINDOWS_OPTIONS} -o:$@ examples/test.nim |
19 | 20 |
20 build_all: build/debug/linux/test build/release/linux/test build/debug/windows/test build/release/windows/test | 21 build_all_linux: build/debug/linux/test build/release/linux/test |
22 build_all_windows: build/debug/windows/test build/release/windows/test | |
23 | |
24 build_all: build_all_linux build_all_windows | |
21 | 25 |
22 # publish | 26 # publish |
23 publish_linux_debug: build/debug/linux/test | 27 publish_linux_debug: build/debug/linux/test |
24 scp $< basx.dev:/var/www/public.basx.dev/joni/linux/debug/ | 28 scp $< basx.dev:/var/www/public.basx.dev/joni/linux/debug/ |
25 publish_linux_release: build/release/linux/test | 29 publish_linux_release: build/release/linux/test |
35 # download thirdparty-libraries | 39 # download thirdparty-libraries |
36 | 40 |
37 thirdparty/lib/glslang/linux_debug: | 41 thirdparty/lib/glslang/linux_debug: |
38 mkdir -p $@ | 42 mkdir -p $@ |
39 wget --directory-prefix=$@ https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Debug.zip | 43 wget --directory-prefix=$@ https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Debug.zip |
40 uzip glslang-master-linux-Debug.zip | 44 unzip glslang-master-linux-Debug.zip |
41 thirdparty/lib/glslang/linux_release: | 45 thirdparty/lib/glslang/linux_release: |
42 mkdir -p $@ | 46 mkdir -p $@ |
43 wget --directory-prefix=$@ https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip | 47 wget --directory-prefix=$@ https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip |
44 unzip glslang-master-linux-Release.zip | 48 unzip glslang-master-linux-Release.zip |
45 thirdparty/lib/glslang/windows_debug: | 49 thirdparty/lib/glslang/windows_debug: |