diff options
-rw-r--r-- | make.rules | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -49,6 +49,10 @@ ifeq ($(V),0) Q := @ MAKEFLAGS += --silent MAKE += -s +else +CURDIR=$(shell pwd) +%.o: %.c + $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $(CURDIR)/$< endif ifeq ($(V),1) @@ -78,4 +82,3 @@ CFLAGS ?= -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float \ -fno-stack-protector -fno-asynchronous-unwind-tables $(WARNFLAGS) export CC AS LD CLEAN OBJCOPY OBJDUMP STRIP AR RANLIB CFLAGS - |