📄 makefile
字号:
#-------------------------------------------------------------------------## Makefile for the pltcl shared object## $PostgreSQL: pgsql/src/pl/tcl/Makefile,v 1.47 2005/05/24 17:07:41 tgl Exp $##-------------------------------------------------------------------------subdir = src/pl/tcltop_builddir = ../../..include $(top_builddir)/src/Makefile.globaloverride CPPFLAGS := $(TCL_INCLUDE_SPEC) $(CPPFLAGS)# Find out whether Tcl was built as a shared library --- if not, we# can't link a shared library that depends on it, and have to forget# about building pltcl. In Tcl 8, tclConfig.sh sets TCL_SHARED_BUILD# for us, but in older Tcl releases it doesn't. In that case we guess# based on the name of the Tcl library.ifndef TCL_SHARED_BUILDifneq (,$(findstring $(DLSUFFIX),$(TCL_LIB_FILE)))TCL_SHARED_BUILD=1elseTCL_SHARED_BUILD=0endifendififneq ($(PORTNAME), win32)SHLIB_LINK = $(BE_DLLLIBS) $(TCL_LIB_SPEC) $(TCL_LIBS) -lcelseSHLIB_LINK = $(TCL_LIB_SPEC) $(BE_DLLLIBS)endifNAME = pltclSO_MAJOR_VERSION = 2SO_MINOR_VERSION = 0OBJS = pltcl.oREGRESS_OPTS = --dbname=$(PL_TESTDB) --load-language=pltclREGRESS = pltcl_setup pltcl_queriesinclude $(top_srcdir)/src/Makefile.shlibifeq ($(TCL_SHARED_BUILD), 1)all: all-lib $(MAKE) -C modules $@# 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)/$(NAME)$(DLSUFFIX)else @echo "*****"; \ echo "* PL/Tcl was not installed due to lack of shared library support."; \ echo "*****"endif $(MAKE) -C modules $@installdirs: $(mkinstalldirs) $(DESTDIR)$(pkglibdir) $(MAKE) -C modules $@uninstall: rm -f $(DESTDIR)$(pkglibdir)/$(NAME)$(DLSUFFIX) $(MAKE) -C modules $@installcheck: submake $(SHELL) $(top_builddir)/src/test/regress/pg_regress $(REGRESS_OPTS) $(REGRESS).PHONY: submakesubmake: $(MAKE) -C $(top_builddir)/src/test/regress pg_regresselse # TCL_SHARED_BUILD = 0# Provide dummy targets for the case where we can't build the shared library.all: @echo "*****"; \ echo "* Cannot build PL/Tcl because Tcl is not a shared library; skipping it."; \ echo "*****"endif # TCL_SHARED_BUILD = 0clean distclean maintainer-clean: clean-lib rm -f $(OBJS) rm -rf results rm -f regression.diffs regression.out $(MAKE) -C modules $@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -