summaryrefslogtreecommitdiff
path: root/x2p/Makefile.SH
diff options
context:
space:
mode:
authorArnold D. Robbins <gatech!skeeve!arnold>1988-01-26 01:16:41 +0000
committerLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1988-01-26 01:16:41 +0000
commita1cc2bdc08f9aa1504f32e5b0b782c2b3cffd124 (patch)
treed9d46a7185678967f79150cfc67ac08d924ec179 /x2p/Makefile.SH
parentf9ad74367ccb11e91fbda2bb7702039bcde360ce (diff)
downloadperl-a1cc2bdc08f9aa1504f32e5b0b782c2b3cffd124.tar.gz
perl 1.0 patch 7: use of included malloc.c should be optional
The version of malloc.c that comes with perl was not really intended to be used everywhere--it was included mostly for debugging purposes. It's a nice little package, however, so I'm making it optional (via Configure) as to whether you want it or not.
Diffstat (limited to 'x2p/Makefile.SH')
-rw-r--r--x2p/Makefile.SH15
1 files changed, 12 insertions, 3 deletions
diff --git a/x2p/Makefile.SH b/x2p/Makefile.SH
index d965160cc3..17447db1f6 100644
--- a/x2p/Makefile.SH
+++ b/x2p/Makefile.SH
@@ -12,11 +12,18 @@ esac
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
+case "$mallocsrc" in
+'') ;;
+*) mallocsrc="../$mallocsrc";;
+esac
echo "Extracting x2p/Makefile (with variable substitutions)"
cat >Makefile <<!GROK!THIS!
-# $Header: Makefile.SH,v 1.0 87/12/18 17:50:17 root Exp $
+# $Header: Makefile.SH,v 1.0.1.1 88/01/26 14:15:24 root Exp $
#
# $Log: Makefile.SH,v $
+# Revision 1.0.1.1 88/01/26 14:15:24 root
+# Added mallocsrc stuff.
+#
# Revision 1.0 87/12/18 17:50:17 root
# Initial revision
#
@@ -31,6 +38,8 @@ CFLAGS = $ccflags -O
LDFLAGS = $ldflags
SMALL = $small
LARGE = $large $split
+mallocsrc = $mallocsrc
+mallocobj = $mallocobj
libs = $libnm -lm
!GROK!THIS!
@@ -49,9 +58,9 @@ sh = Makefile.SH makedepend.SH
h = EXTERN.h INTERN.h config.h handy.h hash.h a2p.h str.h util.h
-c = hash.c ../malloc.c str.c util.c walk.c
+c = hash.c $(mallocsrc) str.c util.c walk.c
-obj = hash.o malloc.o str.o util.o walk.o
+obj = hash.o $(mallocobj) str.o util.o walk.o
lintflags = -phbvxac