From 0041d1a4604fa24fc3b239757136bbdb6fcf8ec3 Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Thu, 30 Sep 2021 16:37:42 +1000 Subject: 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 --- make.rules | 5 +---- 1 file changed, 1 insertion(+), 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 + -- cgit v1.1