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