From: Po Lu Date: Fri, 14 Jun 2024 01:58:04 +0000 (+0800) Subject: Enable compiling Emacs with implicit Make rules suppressed X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=54c93d2f41bf1a36bff9928c7f8bdc6f91202209;p=emacs.git Enable compiling Emacs with implicit Make rules suppressed * lib/Makefile.in (.SUFFIXES): * lwlib/Makefile.in (.SUFFIXES): * oldXMenu/Makefile.in (.SUFFIXES): * src/Makefile.in (.SUFFIXES): Register .c as a default suffix, for this list is emptied when `-r' is provided to Make. (cherry picked from commit 4124b98509bf049a3ccf0f7319b7edf7cae3b6a0) --- diff --git a/lib/Makefile.in b/lib/Makefile.in index 6706d73ace0..a87b7b1f31b 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -98,6 +98,7 @@ libegnu_a_OBJECTS = $(patsubst %.o,e-%.o,$(for_emacs_OBJECTS)) $(libegnu_a_OBJECTS) $(libgnu_a_OBJECTS): $(BUILT_SOURCES) +.SUFFIXES: .c .c.o: $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -o $@ $< e-%.o: %.c diff --git a/lwlib/Makefile.in b/lwlib/Makefile.in index fbb60b35b24..b2c8d4b6e04 100644 --- a/lwlib/Makefile.in +++ b/lwlib/Makefile.in @@ -81,6 +81,7 @@ ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ -Demacs -I../src \ -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib +.SUFFIXES: .c .c.o: $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< diff --git a/oldXMenu/Makefile.in b/oldXMenu/Makefile.in index cdafe83b7a2..215a3f2b6cf 100644 --- a/oldXMenu/Makefile.in +++ b/oldXMenu/Makefile.in @@ -112,6 +112,7 @@ ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ $(CPPFLAGS) $(CFLAGS) -DEMACS_BITMAP_FILES \ -I../src -I../lib -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib +.SUFFIXES: .c .c.o: $(AM_V_CC)$(CC) -c ${ALL_CFLAGS} $< diff --git a/src/Makefile.in b/src/Makefile.in index cac0b4ea280..7575ecbd07a 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -452,7 +452,7 @@ ALL_OBJC_CFLAGS = $(EMACS_CFLAGS) \ ALL_CXX_CFLAGS = $(EMACS_CFLAGS) \ $(filter-out $(NON_CXX_CFLAGS),$(WARN_CFLAGS)) $(CXXFLAGS) -.SUFFIXES: .m .cc +.SUFFIXES: .c .m .cc .c.o: $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $< .m.o: