workshit/Tuprules.tup

17 lines
489 B
Plaintext

NIMFLAGS += --nimcache:".nimcache"
NIMFLAGS += --deadcodeElim:on
NIMFLAGS += -d:release
NIMFLAGS += -d:ssl
NIMFLAGS += -d:threads
NIMFLAGS += --verbosity:0
GOFLAGS += -g
!nim = |> nim c $(NIMFLAGS) -o:%o %f && rm -rf .nimcache |>
!gccgo = |> gccgo $(GOFLAGS) -o %o %f |>
: foreach *.moon |> moonc -o ../bin/%B.lua %f && chmod u+x ../bin/%B.lua |> ../bin/%B.lua
: foreach *.nim |> !nim |> ../bin/%B
: foreach *.go |> !gccgo |> ../bin/%B
: foreach *.c |> gcc -o ../bin/%B %f |> ../bin/%B