summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2021-09-30 16:37:42 +1000
committerAlexey Kardashevskiy <aik@ozlabs.ru>2021-10-01 14:07:36 +1000
commit0041d1a4604fa24fc3b239757136bbdb6fcf8ec3 (patch)
treed4cd0dd1f94cff43a9767f5f7b1d38665b5d07e6
parentdd0dcaa1c1085c159ddab709c7f274b3917be8bd (diff)
downloadqemu-SLOF-0041d1a4604fa24fc3b239757136bbdb6fcf8ec3.tar.gz
Revert "make: Define default rule for .c when V=1 or V=2"
This reverts commit 283d88c46c1d4d2ae65f0a3eaf582d0c124d37db as: - it wrongly assumes the default V=0 (V=1 is the default); - the new rule broke js2x; - does not really solve the original problem of printing partial filenames in gcc error messages. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
-rw-r--r--make.rules5
1 files changed, 1 insertions, 4 deletions
diff --git a/make.rules b/make.rules
index d37c365..eeff4f4 100644
--- a/make.rules
+++ b/make.rules
@@ -49,10 +49,6 @@ ifeq ($(V),0)
Q := @
MAKEFLAGS += --silent
MAKE += -s
-else
-CURDIR=$(shell pwd)
-%.o: %.c
- $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $(CURDIR)/$<
endif
ifeq ($(V),1)
@@ -83,3 +79,4 @@ CFLAGS ?= -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float \
-fshort-wchar
export CC AS LD CLEAN OBJCOPY OBJDUMP STRIP AR RANLIB CFLAGS
+