Mercurial > games > semicongine
diff Makefile @ 10:0660ba9d1930
did: make it work on windows
author | sam <sam@basx.dev> |
---|---|
date | Sat, 24 Dec 2022 22:32:46 +0700 |
parents | 1134f41a49e9 |
children | 9e5fe647ff91 |
line wrap: on
line diff
--- a/Makefile Thu Dec 22 19:35:54 2022 +0700 +++ b/Makefile Sat Dec 24 22:32:46 2022 +0700 @@ -1,8 +1,9 @@ SOURCES := $(shell find src -name '*.nim') -COMPILE_OPTIONS := --path:src --mm:orc --experimental:strictEffects --threads:on +COMPILE_OPTIONS := --path:src --mm:orc --experimental:strictEffects --threads:on --app:gui DEBUG_OPTIONS := --debugger:native --checks:on --assertions:on RELEASE_OPTIONS := -d:release --checks:off --assertions:off -WINDOWS_OPTIONS := -d:mingw +WINDOWS_DEBUG_OPTIONS := --cc:vcc --passC:'/MDd' --passL:'ucrtd.lib' +WINDOWS_RELEASE_OPTIONS := --cc:vcc --passC:'/MD' --passL:'ucrt.lib' # build build/debug/linux/test: ${SOURCES} @@ -11,15 +12,15 @@ build/release/linux/test: ${SOURCES} mkdir -p $$( dirname $@ ) nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} -o:$@ examples/test.nim -build/debug/windows/test: ${SOURCES} +build/debug/windows/test.exe: ${SOURCES} mkdir -p $$( dirname $@ ) - nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} ${WINDOWS_OPTIONS} -o:$@ examples/test.nim -build/release/windows/test: ${SOURCES} + nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} ${WINDOWS_DEBUG_OPTIONS} -o:$@ examples/test.nim +build/release/windows/test.exe: ${SOURCES} mkdir -p $$( dirname $@ ) - nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} ${WINDOWS_OPTIONS} -o:$@ examples/test.nim + nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} ${WINDOWS_RELEASE_OPTIONS} -o:$@ examples/test.nim build_all_linux: build/debug/linux/test build/release/linux/test -build_all_windows: build/debug/windows/test build/release/windows/test +build_all_windows: build/debug/windows/test.exe build/release/windows/test.exe build_all: build_all_linux build_all_windows