From 1f124eb0280a5009f1265a9dca49fdb0d95b845e Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 3 Jun 2008 07:58:59 +0000 Subject: - breakup lines of compile.c and add a variable to hold filter-out PHONY target. No functional changes. --- Makerules | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makerules b/Makerules index 1226f0591..b6a91c5e8 100644 --- a/Makerules +++ b/Makerules @@ -4,6 +4,7 @@ .SUFFIXES: .c .S .o .os .oS .so .a .s .i +PHONY := FORCE # order is important, the stripping uses STRIP_FLAGS for lib-so, but not for lib-a ifeq ($(HAVE_SHARED),y) .LIBPATTERNS: "lib%.so" @@ -107,7 +108,7 @@ disp_t_strip = $($(DISP)_disp_t_strip) disp_ar = $($(DISP)_disp_ar) disp_ld = $($(DISP)_disp_ld) -any-prereq = $(filter-out FORCE,$?) $(filter-out FORCE $(wildcard $^),$^) +any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^) # True if not identical. Neither order nor whitespace nor identical flags # matter. @@ -124,7 +125,13 @@ maybe_exec = $(if $(strip $(compare_flags) $(any-prereq)), \ CFLAGS_gen.dep = -MT $@ -MD -MF $(dir $@).$(notdir $@).dep -cmd_compile.c = $(CC) -c $< -o $@ $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suffix $@)) $(filter-out $(CFLAGS-OMIT-$(notdir $<)),$(CFLAGS-$(notdir $(