13 lines
395 B
Plaintext
13 lines
395 B
Plaintext
NIMFLAGS += --nimcache:".nimcache"
|
|
NIMFLAGS += --deadcodeElim:on
|
|
NIMFLAGS += -d:release
|
|
NIMFLAGS += -d:ssl
|
|
NIMFLAGS += -d:threads
|
|
NIMFLAGS += --verbosity:0
|
|
|
|
!nim = |> nim c $(NIMFLAGS) -o:%o %f && rm -rf .nimcache |>
|
|
|
|
: 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
|