summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-22 12:46:56 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-22 12:46:56 +0000
commit89ada9f25a52aa3f9eaaeef9186a480db4bd255f (patch)
tree66927425817b91906304587c58ca119ecf409614 /Makefile.SH
parent71457cb8f87a9aa7e1f166076f433a046daa2af1 (diff)
downloadperl-89ada9f25a52aa3f9eaaeef9186a480db4bd255f.tar.gz
Add .i and .s targets.
p4raw-id: //depot/perl@10824
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.SH b/Makefile.SH
index acf2ac6d68..af196419f5 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -209,7 +209,7 @@ FIRSTMAKEFILE = $firstmakefile
# Any special object files needed by this architecture, e.g. os2/os2.obj
ARCHOBJS = $archobjs
-.SUFFIXES: .c \$(OBJ_EXT)
+.SUFFIXES: .c \$(OBJ_EXT) .i .s
# grrr
SHELL = $sh
@@ -227,7 +227,9 @@ TRNL = '$trnl'
## In the following dollars and backticks do not need the extra backslash.
$spitshell >>Makefile <<'!NO!SUBS!'
-CCCMD = `sh $(shellflags) cflags $(LIBPERL) $@`
+CCCMD = `sh $(shellflags) cflags $(LIBPERL) $@`
+
+CCCMDSRC = `sh $(shellflags) cflags $(LIBPERL) $<`
private = preplibrary lib/ExtUtils/Miniperl.pm lib/Config.pm
@@ -288,6 +290,12 @@ lintflags = -hbvxac
.c$(OBJ_EXT):
$(CCCMD) $(PLDLFLAGS) $*.c
+.c.i:
+ $(CCCMDSRC) -E $*.c > $*.i
+
+.c.s:
+ $(CCCMDSRC) -S $*.c
+
.PHONY: all compile translators utilities
all: $(FIRSTMAKEFILE) miniperl extra.pods $(private) $(public) $(dynamic_ext) $(nonxs_ext)