summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1998-07-11 20:51:07 +0300
committerGurusamy Sarathy <gsar@cpan.org>1998-07-12 07:01:26 +0000
commit28e8609dd7177ef09fbbf211ede76ea895529a3d (patch)
treea1b66ef1c3639b0d05339e202d75663eb55e01f7 /x2p
parent8d9b2e3c6958e5856b03a00694b8ae02817ed002 (diff)
downloadperl-28e8609dd7177ef09fbbf211ede76ea895529a3d.tar.gz
generic Configure mods and HAS_GROUP additions to help MiNT/MPEix/MVS
Message-Id: <199807111451.RAA27010@alpha.hut.fi> Subject: M3 "generic" parts p4raw-id: //depot/perl@1451
Diffstat (limited to 'x2p')
-rwxr-xr-xx2p/Makefile.SH13
1 files changed, 9 insertions, 4 deletions
diff --git a/x2p/Makefile.SH b/x2p/Makefile.SH
index d6ee476c3b..090875bd65 100755
--- a/x2p/Makefile.SH
+++ b/x2p/Makefile.SH
@@ -55,6 +55,10 @@ PATH_SEP = $p_
FIRSTMAKEFILE = $firstmakefile
+# how to tr(anslate) newlines
+
+TRNL = '$trnl'
+
.SUFFIXES: .c \$(OBJ_EXT)
!GROK!THIS!
@@ -101,7 +105,7 @@ compile: all
$(REALPERL) -I../lib ../utils/perlcc -regex 's/$$/.exe/' $(plextract) -prog -verbose dcf -log ../compilelog;
a2p: $(obj) a2p$(OBJ_EXT)
- $(CC) $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs) -o a2p
+ $(CC) $(LDFLAGS) -o a2p $(obj) a2p$(OBJ_EXT) $(libs)
# I now supply a2p.c with the kits, so the following section is
# used only if you force byacc to run by saying
@@ -110,6 +114,7 @@ a2p: $(obj) a2p$(OBJ_EXT)
run_byacc: FORCE
@ echo Expect many shift/reduce and reduce/reduce conflicts
$(BYACC) a2p.y
+ rm -f a2p.c
mv y.tab.c a2p.c
# We don't want to regenerate a2p.c, but it might appear out-of-date
@@ -140,13 +145,13 @@ depend: $(mallocsrc) ../makedepend
sh ../makedepend MAKE=$(MAKE)
clist:
- echo $(c) | tr ' ' '\012' >.clist
+ echo $(c) | tr ' ' $(TRNL) >.clist
hlist:
- echo $(h) | tr ' ' '\012' >.hlist
+ echo $(h) | tr ' ' $(TRNL) >.hlist
shlist:
- echo $(sh) | tr ' ' '\012' >.shlist
+ echo $(sh) | tr ' ' $(TRNL) >.shlist
# These should be automatically generated