]> cvs.zerfleddert.de Git - hmcfgusb/commitdiff
Allow the user to specify the compiler via environment variable
authorFlorian Franzmann <bwlf@bandrate.org>
Sat, 5 Sep 2020 16:03:08 +0000 (18:03 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sat, 5 Sep 2020 16:45:20 +0000 (18:45 +0200)
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