Upload Tizen:Base source
[external/bash.git] / examples / loadables / perl / Makefile.in
1 #
2 # Makefile for builtin perl interpreter
3 #
4 #
5 #   Copyright (C) 1998 Free Software Foundation, Inc.     
6 #
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.
11 #
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.
16 #
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/>.
19 #
20
21 # Include some boilerplate Gnu makefile definitions.
22 prefix = @prefix@
23 exec_prefix = @exec_prefix@
24
25 bindir = @bindir@
26 libdir = @libdir@
27 infodir = @infodir@
28 includedir = @includedir@
29
30 datarootdir = @datarootdir@
31
32 topdir = @top_srcdir@
33 BUILD_DIR = @BUILD_DIR@
34 srcdir = @srcdir@
35 VPATH = .:@srcdir@
36
37 @SET_MAKE@
38 CC = @CC@
39 RM = rm -f
40
41 SHELL = @MAKE_SHELL@
42
43 PERL5 = perl5
44
45 CFLAGS = @CFLAGS@
46
47 #
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.
52 #
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@
60
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`
64
65 SRC = bperl.c iperl.c perlxsi.c
66 OBJ = bperl.o iperl.o perlxsi.o
67
68 BUILTIN = bperl5
69
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
73
74
75 ${BUILTIN}:     ${OBJ}
76         ${RM} $@
77         ${SHOBJ_LD} ${SHOBJ_LDFLAGS} ${SHOBJ_XLDFLAGS} -o $@ ${OBJ} ${PERL_LDOPTS} ${SHOBJ_LIBS}
78
79 bperl.o:        bperl.c
80         ${RM} $@
81         $(SHOBJ_CC) $(SHOBJ_CFLAGS) $(CFLAGS) $(INC) -c -o $@ ${srcdir}/bperl.c
82
83 iperl.o:        iperl.c
84         ${RM} $@
85         $(SHOBJ_CC) ${SHOBJ_CFLAGS} $(PERL_CFLAGS) -c -o $@ ${srcdir}/iperl.c
86
87 perlxsi.c:
88         ${PERL5} -MExtUtils::Embed -e xsinit -- -o $@
89
90 perlxsi.o:      perlxsi.c
91         ${RM} $@
92         ${SHOBJ_CC} ${SHOBJ_CFLAGS} $(PERL_CFLAGS) -c -o $@ perlxsi.c
93
94 clean mostlyclean:
95         ${RM} ${OBJ}
96         ${RM} ${BUILTIN}
97
98 distclean maintainer-clean: clean
99         ${RM} perlxsi.c