Skip to content

Commit

Permalink
perl 5.003_01: x2p/Makefile.SH
Browse files Browse the repository at this point in the history
Add MAB support for NeXT
Set up variable pointing to shell for OS/2 compatibility
  • Loading branch information
Perl 5 Porters authored and Charles Bailey committed Jul 10, 1996
1 parent 14ee6a0 commit 5acd297
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions x2p/Makefile.SH
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,24 @@ case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac

: ${bin_sh=/bin/sh}

echo "Extracting x2p/Makefile (with variable substitutions)"
rm -f Makefile
cat >Makefile <<!GROK!THIS!
# $RCSfile: Makefile.SH,v $$Revision: 4.1 $$Date: 92/08/07 18:29:07 $
# $RCSfile: Makefile.SH,v $$Revision: 4.1 $$Date: 1996/07/05 23:49:56 $
#
# $Log: Makefile.SH,v $
# Revision 1.2 1996/07/05 23:49:56 gerti
# OPENSTEP 4.0 patches
#
CC = $cc
BYACC = $byacc
LDFLAGS = $ldflags
SMALL = $small
LARGE = $large $split
MAB = $mab
mallocsrc = $mallocsrc
mallocobj = $mallocobj
shellflags = $shellflags
Expand All @@ -47,6 +53,9 @@ FIRSTMAKEFILE = $firstmakefile
.SUFFIXES: .c \$(OBJ_EXT)
# grrr
SHELL = $bin_sh
!GROK!THIS!

cat >>Makefile <<'!NO!SUBS!'
Expand Down Expand Up @@ -77,17 +86,14 @@ obj = hash$(OBJ_EXT) $(mallocobj) str$(OBJ_EXT) util$(OBJ_EXT) walk$(OBJ_EXT)
lintflags = -phbvxac
# grrr
SHELL = /bin/sh
.c$(OBJ_EXT):
$(CCCMD) $*.c
$(CCCMD) $(MAB) $*.c
all: $(public) $(private) $(util)
touch all
a2p: $(obj) a2p$(OBJ_EXT)
$(CC) $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs) -o a2p
$(CC) $(MAB) $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs) -o a2p
# I now supply a2p.c with the kits, so the following section is
# used only if you force byacc to run by saying
Expand All @@ -104,7 +110,7 @@ a2p.c: a2p.y
-@touch a2p.c
a2p$(OBJ_EXT): a2p.c a2py.c a2p.h EXTERN.h util.h INTERN.h handy.h ../config.h str.h hash.h
$(CCCMD) $(LARGE) a2p.c
$(CCCMD) $(LARGE) $(MAB) a2p.c
clean:
rm -f a2p *$(OBJ_EXT)
Expand Down

0 comments on commit 5acd297

Please sign in to comment.