No functionnal changes here, only shuffling a few lines around, adding separators and adding a few comments Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- Makefile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index bb45155af..afae2a370 100644 --- a/Makefile +++ b/Makefile @@ -84,6 +84,9 @@ cflags += -DGCC_BASE=\"$(GCC_BASE)\" MULTIARCH_TRIPLET := $(shell $(CC) -print-multiarch 2>/dev/null) cflags += -DMULTIARCH_TRIPLET=\"$(MULTIARCH_TRIPLET)\" +######################################################################## +# target specificities + compile: compile-i386.o EXTRA_OBJS += compile-i386.o @@ -156,15 +159,15 @@ else $(warning Your system does not have llvm, disabling sparse-llvm) endif +######################################################################## LIBS := libsparse.a +OBJS := $(LIB_OBJS) $(EXTRA_OBJS) $(PROGRAMS:%=%.o) -# # Pretty print -# V = @ Q = $(V:1=) - +######################################################################## all: $(PROGRAMS) ldflags += $($(@)_LDFLAGS) $(LDFLAGS) @@ -177,11 +180,6 @@ libsparse.a: $(LIB_OBJS) @echo " AR $@" $(Q)$(AR) rcs $@ $^ -OBJS := $(LIB_OBJS) $(EXTRA_OBJS) $(PROGRAMS:%=%.o) -DEPS := $(OBJS:%.o=.%.o.d) - --include $(DEPS) - cflags += $($(*)_CFLAGS) $(CPPFLAGS) $(CFLAGS) %.o: %.c @@ -236,3 +234,6 @@ $(DESTDIR)$(MAN1DIR)/%: % $(Q)install -m 644 $< $@ || exit 1; .PHONY: FORCE + +# GCC's dependencies +-include $(OBJS:%.o=.%.o.d) -- 2.14.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html