]> git.tuebingen.mpg.de Git - adu.git/blobdiff - Makefile
Use ?:= as the assignement operator for PREFIX.
[adu.git] / Makefile
index 28fb2d4b753846fde5b3b243495b98f3b041c22a..78c9b1697b647cb6a56c9814ea2a94d8b86b8bdd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,10 @@ CPPFLAGS += -I/usr/local/include
 
 LDFLAGS += -L/usr/local/lib
 
-PREFIX ?= /usr/local
+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