Commit 979f4221 authored by Jacko Dirks's avatar Jacko Dirks
Browse files

Created seperate all and debug build

parent 1cfd8137
EXE := lm4flash
CFLAGS := -Wall -g -O2 $(shell pkg-config --cflags libusb-1.0)
CFLAGS := -Wall $(shell pkg-config --cflags libusb-1.0)
LDFLAGS := $(shell pkg-config --libs libusb-1.0)
all: CLFAGS += -O2
all: $(EXE)
debug: CFLAGS += -g -DDEBUG
debug: $(EXE)
$(EXE): $(EXE).c
gcc $(CFLAGS) $^ $(LDFLAGS) -o $@
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