Allow the user to specify the compiler via environment variable
[hmcfgusb] / Makefile
index 0bc8272b967761306acb25a9712f9c074fb5dae4..bb05507603af48012a4d7bea492eecfbd4713703 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,10 @@ CFLAGS+= -MMD -O2 -I/opt/local/include -g
 
 LDFLAGS:=-L/opt/local/lib
 LDLIBS:=-lusb-1.0 -lrt
+
+ifeq ($(firstword $(origin CC)),default)
 CC:=gcc
+endif
 
 HMLAN_OBJS:=hmcfgusb.o hmland.o util.o
 HMSNIFF_OBJS:=hmcfgusb.o hmuartlgw.o hmsniff.o
Impressum, Datenschutz