source: trunk/essentials/dev-lang/perl/cygwin/Makefile.SHs@ 3221

Last change on this file since 3221 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 7.5 KB
Line 
1# This file is read by Makefile.SH to produce rules for $(LIBPERL) (and
2# some additional rules as well).
3
4# Rerun `sh Makefile.SH; make depend' after making any change.
5
6# Additional rules supported: libperls.a (for static linking),
7# ld2, perlld (dynamic linking tools)
8#
9
10#! /bin/sh
11case $PERL_CONFIG_SH in
12'')
13 if test -f config.sh; then TOP=.;
14 elif test -f ../config.sh; then TOP=..;
15 elif test -f ../../config.sh; then TOP=../..;
16 elif test -f ../../../config.sh; then TOP=../../..;
17 elif test -f ../../../../config.sh; then TOP=../../../..;
18 else
19 echo "Can't find config.sh."; exit 1
20 fi
21 . $TOP/config.sh
22 ;;
23esac
24
25addtopath=`pwd`
26$spitshell >>Makefile <<!GROK!THIS!
27
28cygwin.c: cygwin/cygwin.c
29 \$(LNS) cygwin/cygwin.c
30
31# shell script feeding perlld to decent perl
32ld2: $& Makefile perlld ${src}/cygwin/ld2.in
33 @echo "extracting ld2 (with variable substitutions)"
34 @$sed s,@buildpath@,$addtopath,g <${src}/cygwin/ld2.in >ld2
35 @chmod a+x ld2
36 @echo "installing ld2 into $installbin"
37# install is included in Cygwin distributions, and we make a note of th
38# requirement in the README.cygwin file. However, let's give them
39# a warning.
40 @/usr/bin/install -c -m 755 ld2 ${installbin}/ld2
41 @if test ! -f ${installbin}/ld2; then \
42 echo "*************************************************" ; \
43 echo "Make will probably fail in a few more steps." ; \
44 echo "When it does, copy \"ld2\" to a directory in" ; \
45 echo "your path, other than \".\"." ; \
46 echo "\"/usr/local/bin\" or something similar will do." ; \
47 echo "Then restart make." ; \
48 echo "*************************************************" ; \
49 fi
50
51!GROK!THIS!
52
53$spitshell >>Makefile <<!GROK!THIS!
54
55# perlld parameters
56#
57# these ones are mandatory
58DLLWRAP = 'dllwrap'
59VERSION = '$version'
60
61# following are optional.
62WRAPDRIVER = gcc