From 274fdbb0f4ecbaf709765934493efa3688a7f601 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 15 Nov 2005 23:35:56 +0000 Subject: add rules to handle .s and .E --- Makerules | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index e131a44c9..d24866e93 100644 --- a/Makerules +++ b/Makerules @@ -71,6 +71,7 @@ cmd_strip = $(STRIPTOOL) $(STRIP_FLAGS) $^ cmd_ar = $(AR) $(ARFLAGS) $@ $^ compile.c = @$(disp_compile.c) ; $(cmd_compile.c) +compile.E = $(cmd_compile.c:-c=-E) compile.S = @$(disp_compile.S) ; $(cmd_compile.S) compile.m = @$(disp_compile.m) ; $(cmd_compile.m) compile-m = @$(disp_compile-m) ; $(cmd_compile-m) @@ -82,18 +83,22 @@ CFLAGS-.oS+=$(PICFLAG) -DSHARED %.o: %.c $(compile.c) - %.os: %.c $(compile.c) - %.oS: %.c $(compile.c) - %.o: %.S $(compile.S) - %.os: %.S $(compile.S) +%.o: %.s + $(compile.S) +%.os: %.s + $(compile.S) +%.E: %.c + $(compile.E) +%.E: %.S + $(compile.E) #ifeq ($(HAVE_ELF),y) CRT=crt1 -- cgit v1.2.3