Commit 76035320 authored by Peter Stuge's avatar Peter Stuge
Browse files

lm4flash Makefile: CFLAGS must come before the source file name

Otherwise include paths aren't neccessarily found by the compiler.
parent 8b6dc672
......@@ -6,7 +6,7 @@ LDFLAGS := $(shell pkg-config --libs libusb-1.0)
all: $(EXE)
$(EXE): $(EXE).c
gcc $^ $(CFLAGS) $(LDFLAGS) -o $@
gcc $(CFLAGS) $^ $(LDFLAGS) -o $@
rm -f *.o $(EXE)
Supports Markdown
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