Mercurial > games > semicongine
comparison Makefile @ 463:91544fc1afe5
did: hello world triangle, a bit of code organization
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 19 Dec 2022 10:41:20 +0700 |
parents | 0bc8643cfe25 |
children | 5d54ef652619 |
comparison
equal
deleted
inserted
replaced
462:0bc8643cfe25 | 463:91544fc1afe5 |
---|---|
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 | |
3 DEBUG_OPTIONS := --debugger:native --checks:on --assertions:on | |
4 RELEASE_OPTIONS := -d:release --checks:off --assertions:off | |
2 | 5 |
3 build/debug/linux: | 6 build/debug/linux: |
4 mkdir -p $@ | 7 mkdir -p $@ |
5 build/debug/linux/test: build/debug/linux ${SOURCES} | 8 build/debug/linux/test: build/debug/linux ${SOURCES} |
6 nim c -o:$@ --gc:orc --debugger:native --checks:on --assertions:on src/test.nim | 9 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -o:$@ examples/test.nim |
7 | 10 |
8 build/release/linux: | 11 build/release/linux: |
9 mkdir -p $@ | 12 mkdir -p $@ |
10 build/release/linux/test: build/release/linux ${SOURCES} | 13 build/release/linux/test: build/release/linux ${SOURCES} |
11 nim c -d:release --gc:orc -o:$@ --checks:off --assertions:off src/test.nim | 14 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} -o:$@ examples/test.nim |
15 | |
16 # not working yet, need to implement windows window-API | |
17 # build/debug/windows: | |
18 # mkdir -p $@ | |
19 # build/debug/windows/test: build/debug/windows ${SOURCES} | |
20 # nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -d:mingw -o:$@ examples/test.nim | |
21 # build/release/windows: | |
22 # mkdir -p $@ | |
23 # build/release/windows/test: build/release/windows ${SOURCES} | |
24 # nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -d:mingw -o:$@ examples/test.nim | |
25 |