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 2, or (at your option)
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, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
21 # Include some boilerplate Gnu makefile definitions.
24 exec_prefix = @exec_prefix@
28 includedir = @includedir@
31 BUILD_DIR = @BUILD_DIR@
46 # These values are generated for configure by ${topdir}/support/shobj-conf.
47 # If your system is not supported by that script, but includes facilities for
48 # dynamic loading of shared objects, please update the script and send the
49 # changes to bash-maintainers@gnu.org.
52 SHOBJ_CFLAGS = @SHOBJ_CFLAGS@
54 SHOBJ_LDFLAGS = @SHOBJ_LDFLAGS@
55 SHOBJ_XLDFLAGS = @SHOBJ_XLDFLAGS@
56 SHOBJ_LIBS = @SHOBJ_LIBS@
57 SHOBJ_STATUS = @SHOBJ_STATUS@
59 # Values used for compiling the perl files
60 PERL_LDOPTS = `${PERL5} -MExtUtils::Embed -e ldopts`
61 PERL_CFLAGS = ${CCFLAGS} `${PERL5} -MExtUtils::Embed -e ccopts`
63 SRC = bperl.c iperl.c perlxsi.c
64 OBJ = bperl.o iperl.o perlxsi.o
68 INC = -I. -I.. -I$(topdir) -I$(topdir)/lib -I$(topdir)/builtins \
69 -I$(topdir)/include -I$(BUILD_DIR) -I$(BUILD_DIR)/lib \
70 -I$(BUILD_DIR)/builtins
75 ${SHOBJ_LD} ${SHOBJ_LDFLAGS} ${SHOBJ_XLDFLAGS} -o $@ ${OBJ} ${PERL_LDOPTS} ${SHOBJ_LIBS}
79 $(SHOBJ_CC) $(SHOBJ_CFLAGS) $(CFLAGS) $(INC) -c -o $@ ${srcdir}/bperl.c
83 $(SHOBJ_CC) ${SHOBJ_CFLAGS} $(PERL_CFLAGS) -c -o $@ ${srcdir}/iperl.c
86 ${PERL5} -MExtUtils::Embed -e xsinit -- -o $@
90 ${SHOBJ_CC} ${SHOBJ_CFLAGS} $(PERL_CFLAGS) -c -o $@ perlxsi.c
96 distclean maintainer-clean: clean