annotate Makefile @ 462:0bc8643cfe25

add: more steps in setup
author Sam <sam@basx.dev>
date Fri, 16 Dec 2022 00:05:41 +0700
parents 59d861a6a5c4
children 213fdf8d31dd
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')
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
2
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
3 build/debug/linux:
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
4 mkdir -p $@
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
5 build/debug/linux/test: build/debug/linux ${SOURCES}
462
0bc8643cfe25 add: more steps in setup
Sam <sam@basx.dev>
parents: 461
diff changeset
6 nim c -o:$@ --gc:orc --debugger:native --checks:on --assertions:on src/test.nim
461
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
7
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
8 build/release/linux:
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
9 mkdir -p $@
59d861a6a5c4 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
10 build/release/linux/test: build/release/linux ${SOURCES}
462
0bc8643cfe25 add: more steps in setup
Sam <sam@basx.dev>
parents: 461
diff changeset
11 nim c -d:release --gc:orc -o:$@ --checks:off --assertions:off src/test.nim