From 13447cffead7c6d137a7a3ccbf9e552ed0477467 Mon Sep 17 00:00:00 2001 From: "Field G. Van Zee" Date: Fri, 19 Sep 2014 13:00:48 -0500 Subject: [PATCH] Minor bugfix to top-level Makefile. Details: - Applied a patch that allows the top-level Makefile to work on certain systems. The patch simply separates out the source-to-object code generation rules for .c and .S files into two separate rules. Thanks to Devin Matthews for submitting this patch. --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f700c3ab4..d327c5a52 100644 --- a/Makefile +++ b/Makefile @@ -467,7 +467,15 @@ else @$(CC) $(call get_cflags_for_obj,$@) -c $< -o $@ endif -$(BASE_OBJ_CONFIG_PATH)/%.o: $(CONFIG_PATH)/%.[cS] $(MK_HEADER_FILES) $(MAKE_DEFS_MK_PATH) +$(BASE_OBJ_CONFIG_PATH)/%.o: $(CONFIG_PATH)/%.c $(MK_HEADER_FILES) $(MAKE_DEFS_MK_PATH) +ifeq ($(BLIS_ENABLE_VERBOSE_MAKE_OUTPUT),yes) + $(CC) $(call get_cflags_for_obj,$@) -c $< -o $@ +else + @echo "Compiling $<" $(call get_ctext_for_obj,$@) + @$(CC) $(call get_cflags_for_obj,$@) -c $< -o $@ +endif + +$(BASE_OBJ_CONFIG_PATH)/%.o: $(CONFIG_PATH)/%.S $(MK_HEADER_FILES) $(MAKE_DEFS_MK_PATH) ifeq ($(BLIS_ENABLE_VERBOSE_MAKE_OUTPUT),yes) $(CC) $(call get_cflags_for_obj,$@) -c $< -o $@ else