Patch-ID: bash41-003
[bash.git] / examples / loadables / perl / Makefile.in
blobd8860bd4d2b9fe9c3f0c73c568f81ce5f45af864
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.
22 prefix = @prefix@
23 exec_prefix = @exec_prefix@
25 bindir = @bindir@
26 libdir = @libdir@
27 infodir = @infodir@
28 includedir = @includedir@
30 datarootdir = @datarootdir@
32 topdir = @top_srcdir@
33 BUILD_DIR = @BUILD_DIR@
34 srcdir = @srcdir@
35 VPATH = .:@srcdir@
37 @SET_MAKE@
38 CC = @CC@
39 RM = rm -f
41 SHELL = @MAKE_SHELL@
43 PERL5 = perl5
45 CFLAGS = @CFLAGS@
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.
53 SHOBJ_CC = @SHOBJ_CC@
54 SHOBJ_CFLAGS = @SHOBJ_CFLAGS@
55 SHOBJ_LD = @SHOBJ_LD@
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
68 BUILTIN = bperl5
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
75 ${BUILTIN}: ${OBJ}
76 ${RM} $@
77 ${SHOBJ_LD} ${SHOBJ_LDFLAGS} ${SHOBJ_XLDFLAGS} -o $@ ${OBJ} ${PERL_LDOPTS} ${SHOBJ_LIBS}
79 bperl.o: bperl.c
80 ${RM} $@
81 $(SHOBJ_CC) $(SHOBJ_CFLAGS) $(CFLAGS) $(INC) -c -o $@ ${srcdir}/bperl.c
83 iperl.o: iperl.c
84 ${RM} $@
85 $(SHOBJ_CC) ${SHOBJ_CFLAGS} $(PERL_CFLAGS) -c -o $@ ${srcdir}/iperl.c
87 perlxsi.c:
88 ${PERL5} -MExtUtils::Embed -e xsinit -- -o $@
90 perlxsi.o: perlxsi.c
91 ${RM} $@
92 ${SHOBJ_CC} ${SHOBJ_CFLAGS} $(PERL_CFLAGS) -c -o $@ perlxsi.c
94 clean mostlyclean:
95 ${RM} ${OBJ}
96 ${RM} ${BUILTIN}
98 distclean maintainer-clean: clean
99 ${RM} perlxsi.c