From: Florian Franzmann Date: Sat, 5 Sep 2020 16:03:08 +0000 (+0200) Subject: Allow the user to specify the compiler via environment variable X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/256adf553a043566b5131e718060b918d2075943 Allow the user to specify the compiler via environment variable --- diff --git a/Makefile b/Makefile index 0bc8272..bb05507 100644 --- 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