Commit 5b3a9302 authored by Dmitry Marakasov's avatar Dmitry Marakasov
Browse files

Don't hardcode ${CC}

parent 050d0a6a
EXE := lm4flash
CC ?= gcc
CFLAGS := -Wall $(shell pkg-config --cflags libusb-1.0)
LDFLAGS := $(shell pkg-config --libs libusb-1.0)
......@@ -10,7 +12,7 @@ debug: CFLAGS += -g -DDEBUG
debug: $(EXE)
$(EXE): $(EXE).c
gcc $(CFLAGS) $^ $(LDFLAGS) -o $@
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
rm -f *.o $(EXE)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment