2 # Makefile for builtin perl interpreter
5 # Copyright (C) 1998 Free Software Foundation, Inc.
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 # Include some boilerplate Gnu makefile definitions.
23 exec_prefix = @
exec_prefix@
28 includedir = @
includedir@
30 datarootdir
= @datarootdir@
33 BUILD_DIR
= @BUILD_DIR@
48 # These values are generated for configure by ${topdir}/support/shobj-conf.
49 # If your system is not supported by that script, but includes facilities for
50 # dynamic loading of shared objects, please update the script and send the
51 # changes to bash-maintainers@gnu.org.
54 SHOBJ_CFLAGS
= @SHOBJ_CFLAGS@
56 SHOBJ_LDFLAGS
= @SHOBJ_LDFLAGS@
57 SHOBJ_XLDFLAGS
= @SHOBJ_XLDFLAGS@
58 SHOBJ_LIBS
= @SHOBJ_LIBS@
59 SHOBJ_STATUS
= @SHOBJ_STATUS@
61 # Values used for compiling the perl files
62 PERL_LDOPTS
= `${PERL5} -MExtUtils::Embed -e ldopts`
63 PERL_CFLAGS
= ${CCFLAGS} `${PERL5} -MExtUtils::Embed -e ccopts`
65 SRC
= bperl.c iperl.c perlxsi.c
66 OBJ
= bperl.o iperl.o perlxsi.o
70 INC
= -I.
-I..
-I
$(topdir
) -I
$(topdir
)/lib
-I
$(topdir
)/builtins \
71 -I
$(topdir
)/include -I
$(BUILD_DIR
) -I
$(BUILD_DIR
)/lib \
72 -I
$(BUILD_DIR
)/builtins
77 ${SHOBJ_LD} ${SHOBJ_LDFLAGS} ${SHOBJ_XLDFLAGS} -o
$@
${OBJ} ${PERL_LDOPTS} ${SHOBJ_LIBS}
81 $(SHOBJ_CC
) $(SHOBJ_CFLAGS
) $(CFLAGS
) $(INC
) -c
-o
$@
${srcdir}/bperl.c
85 $(SHOBJ_CC
) ${SHOBJ_CFLAGS} $(PERL_CFLAGS
) -c
-o
$@
${srcdir}/iperl.c
88 ${PERL5} -MExtUtils
::Embed
-e xsinit
-- -o
$@
92 ${SHOBJ_CC} ${SHOBJ_CFLAGS} $(PERL_CFLAGS
) -c
-o
$@ perlxsi.c
98 distclean maintainer-clean
: clean