summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-01 08:13:38 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-01 08:13:38 +0000
commit575f2cfbe5cdf4d28334d3c743c2796b10be2d65 (patch)
treec50d7e2bbb86ac69ad15c1e6c1904031e16e572c /Makerules
parentef9d85126313450371f2b007544eb81930263a0c (diff)
add support for generating .s files for debug purposes
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index bf570a900..8ad50aa4e 100644
--- a/Makerules
+++ b/Makerules
@@ -94,6 +94,7 @@ hcompile.o = $(HOSTCC) $^ $(DEPS-$(notdir $@)) -c -o $@ $(BUILD_CFLAGS) $(BUILD_
compile.c = @$(disp_compile.c) ; $(cmd_compile.c)
compile.E = $(cmd_compile.c:-c=-E)
+compile.s = $(cmd_compile.c:-c=-S)
compile.S = @$(disp_compile.S) ; $(cmd_compile.S)
compile.m = @$(disp_compile.m) ; $(cmd_compile.m)
compile-m = @$(disp_compile-m) ; $(cmd_compile-m)
@@ -126,6 +127,8 @@ CFLAGS-.oS+=$(PICFLAG) -DSHARED
%.oS: %.s ; $(compile.S)
%.E: %.c ; $(compile.E)
%.E: %.S ; $(compile.E)
+%.s: %.c ; $(compile.s)
+%.s: %.S ; $(compile.s)
$(top_builddir)lib/interp.c:
$(Q)$(INSTALL) -d $(dir $@)