Makefile: use ${CC} instead of hardcoding gcc
authorBrian Norris <banorris@uci.edu>
Sat, 10 Mar 2012 01:46:46 +0000 (17:46 -0800)
committerBrian Norris <banorris@uci.edu>
Sat, 10 Mar 2012 01:46:46 +0000 (17:46 -0800)
Makefile

index fc75543..efa75ff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+CC=gcc
 BIN=libthreads
 SOURCE=libthreads.c schedule.c
 HEADERS=libthreads.h schedule.h common.h
@@ -6,7 +7,7 @@ FLAGS=
 all: ${BIN}
 
 ${BIN}: ${SOURCE} ${HEADERS}
-       gcc -o ${BIN} ${SOURCE} ${FLAGS}
+       ${CC} -o ${BIN} ${SOURCE} ${FLAGS}
 
 clean:
        rm -f ${BIN} *.o