Make output pretty, standardize gcc calls

This commit is contained in:
Christine Dodrill 2015-06-13 12:03:48 -07:00
parent 91b17a0b15
commit 57b4630962
3 changed files with 11 additions and 4 deletions

View File

@ -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
src/.gitignore vendored
View File

@ -1,4 +1,5 @@
##### TUP GITIGNORE #####
##### Lines below automatically generated by Tup.
##### Do not edit.
/.gitignore
/reaper.o

View File

@ -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