aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--make.rules5
1 files changed, 4 insertions, 1 deletions
diff --git a/make.rules b/make.rules
index acbc8ab..3dfbb5b 100644
--- a/make.rules
+++ b/make.rules
@@ -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
-