📄 gnumakefile
字号:
# Makefile for PL/Perl# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.25 2005/07/13 17:12:56 tgl Exp $subdir = src/pl/plperltop_builddir = ../../..include $(top_builddir)/src/Makefile.globalifeq ($(perl_useshrplib),true)shared_libperl = yesendififeq ($(perl_useshrplib),yes)shared_libperl = yesendif# If we don't have a shared library and the platform doesn't allow it# to work without, we have to skip it.ifneq (,$(findstring yes, $(shared_libperl)$(allow_nonpic_in_shlib)))ifeq ($(PORTNAME), win32)perl_archlibexp := $(subst \,/,$(perl_archlibexp))perl_privlibexp := $(subst \,/,$(perl_privlibexp))perl_embed_ldflags := -L$(perl_archlibexp)/CORE -lperl58override CPPFLAGS += -DPLPERL_HAVE_UID_GIDendifoverride CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORErpathdir = $(perl_archlibexp)/CORENAME = plperlSO_MAJOR_VERSION = 0SO_MINOR_VERSION = 0OBJS = plperl.o spi_internal.o SPI.oSHLIB_LINK = $(perl_embed_ldflags) $(BE_DLLLIBS)REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-language=plperlREGRESS = plperl plperl_trigger plperl_shared plperl_eloginclude $(top_srcdir)/src/Makefile.shliball: all-libSPI.c: SPI.xs $(PERL) $(perl_privlibexp)/ExtUtils/xsubpp -typemap $(perl_privlibexp)/ExtUtils/typemap $< >$@# When doing a VPATH build, copy over the .sql and .out files so that the# test script can find them. See comments in src/test/regress/GNUmakefile.ifdef VPATHifneq ($(PORTNAME),win32)abs_srcdir := $(shell cd $(srcdir) && pwd)abs_builddir := $(shell pwd)elseabs_srcdir := $(shell cd $(srcdir) && pwd -W)abs_builddir := $(shell pwd -W)endiftest_files_src := $(wildcard $(srcdir)/sql/*.sql) $(wildcard $(srcdir)/expected/*.out)test_files_build := $(patsubst $(srcdir)/%, $(abs_builddir)/%, $(test_files_src))all: $(test_files_build)$(test_files_build): $(abs_builddir)/%: $(srcdir)/% ln -s $< $@endifinstall: all installdirsifeq ($(enable_shared), yes) $(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/plperl$(DLSUFFIX)else @echo "*****"; \ echo "* PL/Perl was not installed due to lack of shared library support."; \ echo "*****"endifinstalldirs: $(mkinstalldirs) $(DESTDIR)$(pkglibdir)uninstall: rm -f $(DESTDIR)$(pkglibdir)/plperl$(DLSUFFIX)installcheck: submake $(SHELL) $(top_builddir)/src/test/regress/pg_regress $(REGRESS_OPTS) $(REGRESS).PHONY: submakesubmake: $(MAKE) -C $(top_builddir)/src/test/regress pg_regressclean distclean maintainer-clean: clean-lib rm -f SPI.c $(OBJS) rm -rf results rm -f regression.diffs regression.outelse # can't buildall: @echo ""; \ echo "*** Cannot build PL/Perl because libperl is not a shared library."; \ echo "*** You might have to rebuild your Perl installation. Refer to"; \ echo "*** the documentation for details."; \ echo ""endif # can't build
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -