]> git.tuebingen.mpg.de Git - adu.git/blobdiff - Makefile
Revert "Use ?:= as the assignement operator for PREFIX."
[adu.git] / Makefile
index 28fb2d4b753846fde5b3b243495b98f3b041c22a..c61dff74c58533953951f105aaec1ce4c7965496 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,9 @@ CPPFLAGS += -I/usr/local/include
 LDFLAGS += -L/usr/local/lib
 
 PREFIX ?= /usr/local
+ifeq "$(origin CC)" "default"
+       CC := gcc
+endif
 
 
 ifeq (,$(findstring BSD,$(uname_S)))
@@ -33,7 +36,7 @@ endif
 
 
 Makefile.deps: $(wildcard *.c *.h)
-       gcc -MM -MG *.c > $@
+       $(CC) -MM -MG *.c > $@
 
 -include Makefile.deps