comparison Makefile @ 461:59d861a6a5c4

add: initial version
author Sam <sam@basx.dev>
date Wed, 14 Dec 2022 00:49:35 +0700
parents
children bb2a7d3a7003
comparison
equal deleted inserted replaced
-1:000000000000 461:59d861a6a5c4
1 SOURCES := $(shell find src -name '*.nim')
2
3 build/debug/linux:
4 mkdir -p $@
5 build/debug/linux/test: build/debug/linux ${SOURCES}
6 nim c -o:$@ --checks:on --assertions:on src/test.nim
7
8 build/release/linux:
9 mkdir -p $@
10 build/release/linux/test: build/release/linux ${SOURCES}
11 nim c -d:release -o:$@ --checks:off --assertions:off src/test.nim