From 256adf553a043566b5131e718060b918d2075943 Mon Sep 17 00:00:00 2001 From: Florian Franzmann Date: Sat, 5 Sep 2020 18:03:08 +0200 Subject: [PATCH 1/1] Allow the user to specify the compiler via environment variable --- Makefile | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2