diff --git a/Makefile b/Makefile index f51f19d..c039939 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CC = gcc +CC ?= gcc VERSION = $(shell git describe --tags --abbrev=0) GITCOUNT = $(shell git rev-list HEAD --count) @@ -6,10 +6,11 @@ UNAME = $(shell uname) OBJS = main.o util.o radio.o dfu-libusb.o uv380.o md380.o rd5r.o \ gd77.o hid.o serial.o d868uv.o dm1801.o -LDFLAGS = -g -LIBS = $(shell pkg-config --libs --static libusb-1.0) -CFLAGS = -g -O -Wall -Werror -DVERSION='"$(VERSION).$(GITCOUNT)"' \ +CFLAGS ?= -g -O -Wall -Werror +CFLAGS += -DVERSION='"$(VERSION).$(GITCOUNT)"' \ $(shell pkg-config --cflags libusb-1.0) +LDFLAGS ?= -g +LIBS = $(shell pkg-config --libs --static libusb-1.0) # # Make sure pkg-config is installed.