diff Makefile @ 0:5daf3f236d87

add: initial version
author Sam <sam@basx.dev>
date Wed, 14 Dec 2022 00:49:35 +0700
parents
children bb2a7d3a7003
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Wed Dec 14 00:49:35 2022 +0700
@@ -0,0 +1,11 @@
+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