From 3560ec838c6096a44c6df049afb038fef35e2dec Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 12 Jun 2015 09:52:18 -0700 Subject: [PATCH] Make C do .o files --- src/.gitignore | 4 ++++ src/Tupfile | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/.gitignore diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 0000000..a48472b --- /dev/null +++ b/src/.gitignore @@ -0,0 +1,4 @@ +##### TUP GITIGNORE ##### +##### Lines below automatically generated by Tup. +##### Do not edit. +/reaper.o diff --git a/src/Tupfile b/src/Tupfile index c3f4d5a..786ca07 100644 --- a/src/Tupfile +++ b/src/Tupfile @@ -4,4 +4,6 @@ include_rules : 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 + +: foreach *.c |> gcc -Wall -c %f -o %o |> %B.o +: reaper.o |> gcc %f -o %o |> ../bin/reaper