view Makefile @ 461:59d861a6a5c4

add: initial version
author Sam <sam@basx.dev>
date Wed, 14 Dec 2022 00:49:35 +0700
parents
children bb2a7d3a7003
line wrap: on
line source

SOURCES := $(shell find src -name '*.nim')

build/debug/linux:
	mkdir -p $@
build/debug/linux/test: build/debug/linux ${SOURCES}
	nim c -o:$@ --checks:on --assertions:on src/test.nim

build/release/linux:
	mkdir -p $@
build/release/linux/test: build/release/linux ${SOURCES}
	nim c -d:release -o:$@ --checks:off --assertions:off src/test.nim