Skip to content

Commit

Permalink
Don't hardcode ${CC}
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Nov 30, 2014
1 parent 050d0a6 commit 5b3a930
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lm4flash/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
EXE := lm4flash

CC ?= gcc

CFLAGS := -Wall $(shell pkg-config --cflags libusb-1.0)
LDFLAGS := $(shell pkg-config --libs libusb-1.0)

Expand All @@ -10,7 +12,7 @@ debug: CFLAGS += -g -DDEBUG
debug: $(EXE)

$(EXE): $(EXE).c
gcc $(CFLAGS) $^ $(LDFLAGS) -o $@
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@

clean:
rm -f *.o $(EXE)
Expand Down

0 comments on commit 5b3a930

Please sign in to comment.