annotate Makefile @ 0:5daf3f236d87

add: initial version
author Sam <sam@basx.dev>
date Wed, 14 Dec 2022 00:49:35 +0700
parents
children bb2a7d3a7003
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
1 SOURCES := $(shell find src -name '*.nim')
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
2
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
3 build/debug/linux:
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
4 mkdir -p $@
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
5 build/debug/linux/test: build/debug/linux ${SOURCES}
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
6 nim c -o:$@ --checks:on --assertions:on src/test.nim
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
7
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
8 build/release/linux:
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
9 mkdir -p $@
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
10 build/release/linux/test: build/release/linux ${SOURCES}
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
11 nim c -d:release -o:$@ --checks:off --assertions:off src/test.nim