Browse Source

Allow use of custom CC for compiling tests

Jeremy Soller 6 years ago
parent
commit
3dbf9f872a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tests/Makefile

+ 4 - 4
tests/Makefile

@@ -88,12 +88,12 @@ BINS=\
 	unistd/setid \
 	unistd/stat
 
-.PHONY: $(BINS) all clean run expected verify
-
-$(BINS): %: bins/%
+.PHONY: all $(BINS) clean run expected verify
 
 all: $(BINS)
 
+$(BINS): %: bins/%
+
 clean:
 	rm -rf bins gen *.out
 
@@ -147,4 +147,4 @@ TAILLIBS=\
 
 bins/%: %.c ../sysroot
 	mkdir -p "$$(dirname "$@")"
-	gcc $(CFLAGS) $(HEADLIBS) "$<" $(TAILLIBS) -o "$@"
+	$(CC) $(CFLAGS) $(HEADLIBS) "$<" $(TAILLIBS) -o "$@"