From 07c897e558e2181060c8179b0ea5145e15286b29 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Sun, 4 Mar 2018 08:29:19 -0700 Subject: [PATCH] Clean up gcc line --- tests/Makefile | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index cb605f4e..f3a5ff73 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -14,17 +14,18 @@ clean: run: $(BINS) for bin in $(BINS); do echo "\\033[1m$${bin}\\033[0m"; ./$${bin} test args; done +GCCHEAD=\ + -nostdinc \ + -nostdlib \ + -I ../include \ + -I ../target/include \ + -I ../openlibm/include \ + -I ../openlibm/src \ + ../target/debug/libcrt0.a + +GCCTAIL=\ + ../target/debug/libc.a \ + ../openlibm/libopenlibm.a + %: %.c - gcc \ - -fno-stack-protector \ - -nostdinc \ - -nostdlib \ - -I ../include \ - -I ../target/include \ - -I ../openlibm/include \ - -I ../openlibm/src \ - ../target/debug/libcrt0.a \ - $< \ - ../target/debug/libc.a \ - ../openlibm/libopenlibm.a \ - -o $@ + gcc -fno-stack-protector $(GCCHEAD) $< $(GCCTAIL) -o $@ -- GitLab