OBJCOPY ?= objcopy CFLAGS += -g -Wall -O0 -pipe all: test.dbg $(OBJCOPY) --strip-debug test $(OBJCOPY) --add-gnu-debuglink=test.dbg test test.dbg: test $(OBJCOPY) --only-keep-debug test test.dbg clean: rm -f test test.dbg .PHONY: all clean