summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-15 23:35:56 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-15 23:35:56 +0000
commit274fdbb0f4ecbaf709765934493efa3688a7f601 (patch)
treec11569669d26267cfe91eed595277f79dff7aed0 /Makerules
parent5da06322c21e27d5bc60459ae2f80a80d2c8162b (diff)
add rules to handle .s and .E
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules13
1 files changed, 9 insertions, 4 deletions
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