Make output pretty, standardize gcc calls
This commit is contained in:
parent
91b17a0b15
commit
57b4630962
10
Tuprules.tup
10
Tuprules.tup
|
@ -6,6 +6,12 @@ NIMFLAGS += -d:threads
|
|||
NIMFLAGS += --verbosity:0
|
||||
|
||||
GOFLAGS += -g
|
||||
GOFLAGS += -O3
|
||||
|
||||
!nim = |> nim c $(NIMFLAGS) -o:%o %f && rm -rf .nimcache |>
|
||||
!gccgo = |> gccgo $(GOFLAGS) -o %o %f |>
|
||||
CFLAGS += -Wall
|
||||
CFLAGS += -Werror
|
||||
|
||||
!nim = |> ^ Nim: %f -> Binary %o^ nim c $(NIMFLAGS) -o:%o %f && rm -rf .nimcache |>
|
||||
!gccgo = |> ^ GCCGo: %f -> Binary %o^ gccgo $(GOFLAGS) -o %o %f |>
|
||||
!cc = |> ^ CC: %f -> Binary %o^ gcc $(CFLAGS) -o %o %f |>
|
||||
!obj = |> ^ CC: %f -> Binary %o^ gcc $(CFLAGS) -c -o %o %f |>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
##### TUP GITIGNORE #####
|
||||
##### Lines below automatically generated by Tup.
|
||||
##### Do not edit.
|
||||
/.gitignore
|
||||
/reaper.o
|
||||
|
|
|
@ -5,5 +5,5 @@ include_rules
|
|||
: foreach *.nim |> !nim |> ../bin/%B
|
||||
: foreach *.go |> !gccgo |> ../bin/%B
|
||||
|
||||
: foreach *.c |> gcc -Wall -c %f -o %o |> %B.o
|
||||
: reaper.o |> gcc %f -o %o |> ../bin/reaper
|
||||
: foreach *.c |> !obj |> %B.o
|
||||
: reaper.o |> !cc |> ../bin/reaper
|
||||
|
|
Loading…
Reference in New Issue