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. 22prefix = @prefix@ 23exec_prefix = @exec_prefix@ 24 25bindir = @bindir@ 26libdir = @libdir@ 27infodir = @infodir@ 28includedir = @includedir@ 29 30datarootdir = @datarootdir@ 31 32topdir = @top_srcdir@ 33BUILD_DIR = @BUILD_DIR@ 34srcdir = @srcdir@ 35VPATH = @srcdir@ 36 37@SET_MAKE@ 38CC = @CC@ 39RM = rm -f 40 41SHELL = @MAKE_SHELL@ 42 43PERL5 = perl5 44 45CFLAGS = @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# 53SHOBJ_CC = @SHOBJ_CC@ 54SHOBJ_CFLAGS = @SHOBJ_CFLAGS@ 55SHOBJ_LD = @SHOBJ_LD@ 56SHOBJ_LDFLAGS = @SHOBJ_LDFLAGS@ 57SHOBJ_XLDFLAGS = @SHOBJ_XLDFLAGS@ 58SHOBJ_LIBS = @SHOBJ_LIBS@ 59SHOBJ_STATUS = @SHOBJ_STATUS@ 60 61# Values used for compiling the perl files 62PERL_LDOPTS = `${PERL5} -MExtUtils::Embed -e ldopts` 63PERL_CFLAGS = ${CCFLAGS} `${PERL5} -MExtUtils::Embed -e ccopts` 64 65SRC = bperl.c iperl.c perlxsi.c 66OBJ = bperl.o iperl.o perlxsi.o 67 68BUILTIN = bperl5 69 70INC = -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 79bperl.o: bperl.c 80 ${RM} $@ 81 $(SHOBJ_CC) $(SHOBJ_CFLAGS) $(CFLAGS) $(INC) -c -o $@ ${srcdir}/bperl.c 82 83iperl.o: iperl.c 84 ${RM} $@ 85 $(SHOBJ_CC) ${SHOBJ_CFLAGS} $(PERL_CFLAGS) -c -o $@ ${srcdir}/iperl.c 86 87perlxsi.c: 88 ${PERL5} -MExtUtils::Embed -e xsinit -- -o $@ 89 90perlxsi.o: perlxsi.c 91 ${RM} $@ 92 ${SHOBJ_CC} ${SHOBJ_CFLAGS} $(PERL_CFLAGS) -c -o $@ perlxsi.c 93 94clean mostlyclean: 95 ${RM} ${OBJ} 96 ${RM} ${BUILTIN} 97 98distclean maintainer-clean: clean 99 ${RM} perlxsi.c 100