diff --git a/tests/Makefile b/tests/Makefile
index cb605f4eac4046c25d85a8c381c86aa808e66a0a..f3a5ff7366692c77f4d108082d76f0fa692d36b0 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 $@