From 43e1ba4a26432d3c91619c7917a90d2cbd285737 Mon Sep 17 00:00:00 2001 From: Sachin Gupta Date: Mon, 17 Sep 2018 02:01:37 -0500 Subject: Remove intermediate rule for C/c files Change-Id: Ie6bb107b252d171ed289066ae70818b56f36fae7 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66209 Tested-by: Jenkins Server Reviewed-by: RAJA DAS Reviewed-by: Shakeeb A. Pasha B K Tested-by: FSP CI Jenkins Reviewed-by: Sachin Gupta --- src/build/img_defs.mk | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/build/img_defs.mk b/src/build/img_defs.mk index d52a088f..c85baf28 100644 --- a/src/build/img_defs.mk +++ b/src/build/img_defs.mk @@ -524,22 +524,16 @@ C2=@echo MAKE+= --no-print-directory endif -#override the GNU Make implicit rule for going from a .C to a .o -%.o: %.C - # -Wno-conversion-null is necesary to allow mapping of NULL to TARGET_TYPE_SYSTEM # for attribute accesses -$(OBJDIR)/%.s: %.C +$(OBJDIR)/%.o: %.C $(C2) " CC $(notdir $<)" - $(C1)$(TCC) $(PPE-CFLAGS) $(DEFS) -Wno-conversion-null -S $(CXXFLAGS) -o $@ $< - + $(C1)$(TCC) $(PPE-CFLAGS) $(DEFS) -Wno-conversion-null $(CXXFLAGS) -o $@ $< -#override the GNU Make implicit rule for going from a .c to a .o -%.o: %.c -$(OBJDIR)/%.s: %.c +$(OBJDIR)/%.o: %.c $(C2) " C $(notdir $<)" - $(C1)$(CC) $(PPE-CFLAGS) $(DEFS) -S -o $@ $< + $(C1)$(CC) $(PPE-CFLAGS) $(DEFS) -o $@ $< #override the GNU Make implicit rule for going from a .S to a .o %.o: %.S -- cgit v1.2.1