2015-06-03 23:04:01 +00:00
|
|
|
NIMFLAGS += --nimcache:".nimcache"
|
|
|
|
NIMFLAGS += --deadcodeElim:on
|
2015-06-06 03:39:47 +00:00
|
|
|
NIMFLAGS += -d:release
|
2015-06-08 21:33:00 +00:00
|
|
|
NIMFLAGS += -d:ssl
|
|
|
|
NIMFLAGS += -d:threads
|
2015-06-03 23:04:01 +00:00
|
|
|
NIMFLAGS += --verbosity:0
|
|
|
|
|
2015-06-06 02:11:44 +00:00
|
|
|
!nim = |> nim c $(NIMFLAGS) -o:%o %f && rm -rf .nimcache |>
|
2015-06-09 03:55:35 +00:00
|
|
|
|
2015-06-09 03:52:01 +00:00
|
|
|
: foreach *.moon |> moonc -o ../bin/%B.lua %f && chmod u+x ../bin/%B.lua |> ../bin/%B.lua
|
|
|
|
: foreach *.nim |> !nim |> ../bin/%B
|
|
|
|
: foreach *.c |> gcc -o ../bin/%B %f |> ../bin/%B
|