Skip to content

Commit

Permalink
Revert "make: Define default rule for .c when V=1 or V=2"
Browse files Browse the repository at this point in the history
This reverts commit 283d88c 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>
  • Loading branch information
aik committed Oct 1, 2021
1 parent dd0dcaa commit 0041d1a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions make.rules
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

0 comments on commit 0041d1a

Please sign in to comment.