⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.global

📁 PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开发团队说,该版本将加速更多企业向该数据库移植.核心开发成员之一Bruce Momjian表示,在新版PostgreSQL
💻 GLOBAL
📖 第 1 页 / 共 2 页
字号:
# Feature settingsDEF_PGPORT = 5432WANTED_LANGUAGES = ############################################################################ Additional platform-specific settings## Name of the "template"PORTNAME= win32host_tuple = i686-pc-mingw32host_os = mingw32host_cpu = i686# Make HAVE_IPV6 available for initdb script creationHAVE_IPV6= yes# The HP-UX port makefile, for one, needs access to this symbolHAVE_POSIX_SIGNALS= # This is mainly for use on FreeBSD, where we have both a.out and elf# systems now.  May be applicable to other systems to?ELF_SYSTEM= # Backend stack size limit has to be hard-wired on Windows (it's in bytes)WIN32_STACK_RLIMIT=4194304# Pull in platform-specific magicinclude $(top_builddir)/src/Makefile.port# Set up rpath if enabled.  By default it will point to our libdir,# but individual Makefiles can force other rpath paths if needed.rpathdir = $(libdir)ifeq ($(enable_rpath), yes)LDFLAGS += $(rpath)endif############################################################################ Some variables needed to find some client interfacesifdef PGXS# some contribs assumes headers and libs are in the source tree...libpq_srcdir = $(includedir)libpq_builddir = $(libdir)elselibpq_srcdir = $(top_srcdir)/src/interfaces/libpqlibpq_builddir = $(top_builddir)/src/interfaces/libpqendif# This macro is for use by libraries linking to libpq.  (Because libpgport# isn't created with the same link flags as libpq, it can't be used.)libpq := -L$(libpq_builddir) -lpq  # If doing static linking, shared library dependency info isn't available,# so add in the libraries that libpq depends on.ifeq ($(enable_shared), no)libpq += $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt, $(LIBS)) \	$(LDAP_LIBS_FE) $(PTHREAD_LIBS)endif# This macro is for use by client executables (not libraries) that use libpq.# We force clients to pull symbols from the non-shared library libpgport # rather than pulling some libpgport symbols from libpq just because # libpq uses those functions too.  This makes applications less # dependent on changes in libpq's usage of pgport.  To do this we link to# pgport before libpq.  This does cause duplicate -lpgport's to appear# on client link lines.ifdef PGXSlibpq_pgport = -L$(libdir) -lpgport $(libpq)elselibpq_pgport = -L$(top_builddir)/src/port -lpgport $(libpq)endifsubmake-libpq:	$(MAKE) -C $(libpq_builddir) allsubmake-libpgport:	$(MAKE) -C $(top_builddir)/src/port all.PHONY: submake-libpq submake-libpgport############################################################################ Customization## This includes your local customizations if Makefile.custom exists# in the source directory.  This file doesn't exist in the original# distribution so that it doesn't get overwritten when you upgrade.## NOTE:  Makefile.custom is from the pre-Autoconf days of PostgreSQL.# You are liable to shoot yourself in the foot if you use it without# knowing exactly what you're doing.  The preferred (and more# reliable) method is to communicate what you want to do to the# configure script, and leave the makefiles alone.-include $(top_srcdir)/src/Makefile.customifneq ($(CUSTOM_INSTALL),)INSTALL= $(CUSTOM_INSTALL)endififneq ($(CUSTOM_CC),)  CC= $(CUSTOM_CC)endififneq ($(CUSTOM_COPT),)  COPT= $(CUSTOM_COPT)endififdef COPT   CFLAGS += $(COPT)   LDFLAGS += $(COPT)endififdef PROFILE   CFLAGS += $(PROFILE)   LDFLAGS += $(PROFILE)endif############################################################################ substitute implementations of C library routines (see src/port/)LIBOBJS =  crypt$U.o fseeko$U.o getrusage$U.o inet_aton$U.o random$U.o srandom$U.o strlcpy$U.o unsetenv$U.o getaddrinfo$U.o gettimeofday$U.o kill$U.o open$U.o rand$U.o win32error$U.o snprintf$U.o copydir.o dirmod.o exec.o noblock.o path.o pipe.o pgsleep.o pgstrcasecmp.o qsort.o qsort_arg.o sprompt.o thread.oLIBS := -lpgport $(LIBS)# add location of libpgport.a to LDFLAGSifdef PGXSoverride LDFLAGS := -L$(libdir) $(LDFLAGS)elseoverride LDFLAGS := -L$(top_builddir)/src/port $(LDFLAGS)endif# to make ws2_32.lib the last library, and always link with shfolder,# so SHGetFolderName isn't picked up from shell32.dllifeq ($(PORTNAME),win32)LIBS += -lws2_32 -lshfolderendif# Not really standard libc functions, used by the backend.TAS         = ############################################################################ Global targets and rules%.gz: %	$(GZIP) -f --best $<%.bz2: %	$(BZIP2) -f $<ifeq ($(PORTNAME),win32)# Build rules to add versioninfo resources to win32 binariesWIN32RES += win32ver.oifeq ($(PGFILESHLIB),1)PGFTYPE=VFT_DLLelsePGFTYPE=VFT_APPendififneq (,$(PGAPPICON))PGICOSTR=$(subst /,\/,IDI_ICON ICON \"$(top_builddir)/src/port/$(PGAPPICON).ico\")endifwin32ver.rc: $(top_builddir)/src/port/win32ver.rc	sed -e 's;FILEDESC;$(PGFILEDESC);' -e 's;VFT_APP;$(PGFTYPE);' -e 's;_ICO_;$(PGICOSTR);' -e 's;\(VERSION.*\),0 *$$;\1,'`date '+%y%j' | sed 's/^0*//'`';' $(top_builddir)/src/port/win32ver.rc > win32ver.rcwin32ver.o: $(top_builddir)/src/port/win32ver.rc	sed -e 's;FILEDESC;$(PGFILEDESC);' -e 's;VFT_APP;$(PGFTYPE);' -e 's;_ICO_;$(PGICOSTR);' -e 's;\(VERSION.*\),0 *$$;\1,'`date '+%y%j' | sed 's/^0*//'`';' $(top_builddir)/src/port/win32ver.rc > win32ver.rc	windres -i win32ver.rc -o win32ver.o --include-dir=$(top_builddir)/src/include	rm -f win32ver.rcendififndef PGXS# Remake Makefile.global from Makefile.global.in if the latter# changed. In order to trigger this rule, the including file must# write `include $(top_builddir)/src/Makefile.global', not some# shortcut thereof.$(top_builddir)/src/Makefile.global: $(top_srcdir)/src/Makefile.global.in $(top_builddir)/config.status	cd $(top_builddir) && ./config.status src/Makefile.global# Remake pg_config.h from pg_config.h.in if the latter changed.# config.status will not change the timestamp on pg_config.h if it# doesn't change, so as to avoid recompiling the entire tree# unnecessarily. Therefore we make config.status update a timestamp file# stamp-h everytime it runs, so that we don't trigger this rule everytime.# (We do trigger the null rule for stamp-h to pg_config.h everytime; so it's# important for that rule to be null!)## Of course you need to turn on dependency tracking to get any# dependencies on pg_config.h.$(top_builddir)/src/include/pg_config.h: $(top_builddir)/src/include/stamp-h$(top_builddir)/src/include/stamp-h: $(top_srcdir)/src/include/pg_config.h.in $(top_builddir)/config.status	cd $(top_builddir) && ./config.status src/include/pg_config.h# Also remake ecpg_config.h from ecpg_config.h.in if the latter changed. Values in it can# only change if pg_config.h has changed, so include this file to its dependencies.$(top_builddir)/src/interfaces/ecpg/include/ecpg_config.h: $(top_builddir)/src/include/pg_config.h $(top_builddir)/src/interfaces/ecpg/include/ecpg_config.h.in $(top_builddir)/config.status	cd $(top_builddir) && ./config.status src/interfaces/ecpg/include/ecpg_config.h# When configure changes, rerun configure with the same options as# last time. To change configure, you need to run autoconf manually.$(top_builddir)/config.status: $(top_srcdir)/configure	cd $(top_builddir) && ./config.status --recheckendif # not PGXSinstall-strip:	@$(MAKE) INSTALL_PROGRAM_ENV="STRIPPROG='$(STRIP)'" \	    INSTALL_STLIB_ENV="STRIPPROG='$(STRIP_STATIC_LIB)'" \	    INSTALL_SHLIB_ENV="STRIPPROG='$(STRIP_SHARED_LIB)'" \	    INSTALL_STRIP_FLAG=-s \	    install############################################################################ Automatic dependency generation# -------------------------------# When we configure with --enable-depend then we override the default# compilation rule with the magic below. While or after creating the# actual output file we also create a dependency list for the .c file.# Next time we invoke make we will have top-notch information about# whether this file needs to be updated. The dependency files are kept# in the .deps subdirectory of each directory.autodepend = ifeq ($(autodepend), yes)ifndef COMPILE.cCOMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -cendifDEPDIR = .depsifeq ($(GCC), yes)# GCC allows us to create object and dependency file in one invocation.%.o : %.c	@if test ! -d $(DEPDIR); then mkdir -p $(DEPDIR); fi	$(COMPILE.c) -o $@ $< -MMD -MP -MF $(DEPDIR)/$(*F).Poendif # GCC# Include all the dependency files generated for the current# directory. List /dev/null as dummy because if the wildcard expands# to nothing then make would complain.-include $(wildcard $(DEPDIR)/*.Po) /dev/null# hook for clean-upclean distclean maintainer-clean: clean-deps.PHONY: clean-depsclean-deps:	@rm -rf $(DEPDIR)endif # autodepend############################################################################ Native language supportifeq ($(enable_nls), yes)ifneq (,$(wildcard $(srcdir)/nls.mk))include $(top_srcdir)/src/nls-global.mkendif # nls.mkendif # enable_nls

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -