Mercurial > games > semicongine
comparison Makefile @ 471:9eeaeb35eb1c
did: make it work on windows
author | sam <sam@basx.dev> |
---|---|
date | Sat, 24 Dec 2022 22:32:46 +0700 |
parents | ed49f1cdd8b7 |
children | 9e5fe647ff91 |
comparison
equal
deleted
inserted
replaced
469:ed49f1cdd8b7 | 471:9eeaeb35eb1c |
---|---|
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 --app:gui |
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 WINDOWS_DEBUG_OPTIONS := --cc:vcc --passC:'/MDd' --passL:'ucrtd.lib' |
6 WINDOWS_RELEASE_OPTIONS := --cc:vcc --passC:'/MD' --passL:'ucrt.lib' | |
6 | 7 |
7 # build | 8 # build |
8 build/debug/linux/test: ${SOURCES} | 9 build/debug/linux/test: ${SOURCES} |
9 mkdir -p $$( dirname $@ ) | 10 mkdir -p $$( dirname $@ ) |
10 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -o:$@ examples/test.nim | 11 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -o:$@ examples/test.nim |
11 build/release/linux/test: ${SOURCES} | 12 build/release/linux/test: ${SOURCES} |
12 mkdir -p $$( dirname $@ ) | 13 mkdir -p $$( dirname $@ ) |
13 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} -o:$@ examples/test.nim | 14 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} -o:$@ examples/test.nim |
14 build/debug/windows/test: ${SOURCES} | 15 build/debug/windows/test.exe: ${SOURCES} |
15 mkdir -p $$( dirname $@ ) | 16 mkdir -p $$( dirname $@ ) |
16 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} ${WINDOWS_OPTIONS} -o:$@ examples/test.nim | 17 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} ${WINDOWS_DEBUG_OPTIONS} -o:$@ examples/test.nim |
17 build/release/windows/test: ${SOURCES} | 18 build/release/windows/test.exe: ${SOURCES} |
18 mkdir -p $$( dirname $@ ) | 19 mkdir -p $$( dirname $@ ) |
19 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} ${WINDOWS_OPTIONS} -o:$@ examples/test.nim | 20 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} ${WINDOWS_RELEASE_OPTIONS} -o:$@ examples/test.nim |
20 | 21 |
21 build_all_linux: build/debug/linux/test build/release/linux/test | 22 build_all_linux: build/debug/linux/test build/release/linux/test |
22 build_all_windows: build/debug/windows/test build/release/windows/test | 23 build_all_windows: build/debug/windows/test.exe build/release/windows/test.exe |
23 | 24 |
24 build_all: build_all_linux build_all_windows | 25 build_all: build_all_linux build_all_windows |
25 | 26 |
26 # publish | 27 # publish |
27 publish_linux_debug: build/debug/linux/test | 28 publish_linux_debug: build/debug/linux/test |