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
|
NIMFLAGS += --verbosity:0
|
||||||
|
|
||||||
GOFLAGS += -g
|
GOFLAGS += -g
|
||||||
|
GOFLAGS += -O3
|
||||||
|
|
||||||
!nim = |> nim c $(NIMFLAGS) -o:%o %f && rm -rf .nimcache |>
|
CFLAGS += -Wall
|
||||||
!gccgo = |> gccgo $(GOFLAGS) -o %o %f |>
|
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 #####
|
##### TUP GITIGNORE #####
|
||||||
##### Lines below automatically generated by Tup.
|
##### Lines below automatically generated by Tup.
|
||||||
##### Do not edit.
|
##### Do not edit.
|
||||||
|
/.gitignore
|
||||||
/reaper.o
|
/reaper.o
|
||||||
|
|
|
@ -5,5 +5,5 @@ include_rules
|
||||||
: foreach *.nim |> !nim |> ../bin/%B
|
: foreach *.nim |> !nim |> ../bin/%B
|
||||||
: foreach *.go |> !gccgo |> ../bin/%B
|
: foreach *.go |> !gccgo |> ../bin/%B
|
||||||
|
|
||||||
: foreach *.c |> gcc -Wall -c %f -o %o |> %B.o
|
: foreach *.c |> !obj |> %B.o
|
||||||
: reaper.o |> gcc %f -o %o |> ../bin/reaper
|
: reaper.o |> !cc |> ../bin/reaper
|
||||||
|
|
Loading…
Reference in New Issue