| |
| |
| |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| |
| |
| |
|
|
| standard_targets = all install installdirs uninstall clean distclean coverage check checkprep installcheck init-po update-po |
| |
| standard_always_targets = clean distclean |
|
|
| .PHONY: $(standard_targets) maintainer-clean install-strip html man installcheck-parallel update-unicode |
|
|
| |
| all: |
|
|
| |
| |
| .DELETE_ON_ERROR: |
|
|
| |
| .SECONDARY: |
|
|
| maintainer-clean: distclean |
|
|
| |
| VERSION = 17.4 |
| MAJORVERSION = 17 |
| VERSION_NUM = 170004 |
|
|
| PACKAGE_URL = https://www.postgresql.org/ |
|
|
| |
| ifdef PGXS |
| top_srcdir = $(top_builddir) |
|
|
| |
| |
| ifdef VPATH |
| srcdir = $(VPATH) |
| else |
| ifeq ($(CURDIR),$(dir $(firstword $(MAKEFILE_LIST)))) |
| srcdir = . |
|
|
| else |
| srcdir = $(dir $(firstword $(MAKEFILE_LIST))) |
|
|
| endif |
| endif |
| else |
| vpath_build = no |
| abs_top_builddir = /tmp/tmp.mT97zPULvY/postgresql-17.4 |
| abs_top_srcdir = /tmp/tmp.mT97zPULvY/postgresql-17.4 |
|
|
| ifneq ($(vpath_build),yes) |
| top_srcdir = $(top_builddir) |
| srcdir = . |
| else |
| top_srcdir = $(abs_top_srcdir) |
| srcdir = $(top_srcdir)/$(subdir) |
|
|
| endif |
| endif |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| ifndef PGXS |
|
|
| |
| |
|
|
| prefix := /data/adaptai/platform/dbops/binaries/postgres |
| exec_prefix := ${prefix} |
| datarootdir := ${prefix}/share |
|
|
| bindir := ${exec_prefix}/bin |
|
|
| datadir := ${datarootdir} |
| ifeq "$(findstring pgsql, $(datadir))" "" |
| ifeq "$(findstring postgres, $(datadir))" "" |
| override datadir := $(datadir)/postgresql |
| endif |
| endif |
|
|
| sysconfdir := ${prefix}/etc |
| ifeq "$(findstring pgsql, $(sysconfdir))" "" |
| ifeq "$(findstring postgres, $(sysconfdir))" "" |
| override sysconfdir := $(sysconfdir)/postgresql |
| endif |
| endif |
|
|
| libdir := ${exec_prefix}/lib |
|
|
| pkglibdir = $(libdir) |
| ifeq "$(findstring pgsql, $(pkglibdir))" "" |
| ifeq "$(findstring postgres, $(pkglibdir))" "" |
| override pkglibdir := $(pkglibdir)/postgresql |
| endif |
| endif |
|
|
| includedir := ${prefix}/include |
|
|
| pkgincludedir = $(includedir) |
| ifeq "$(findstring pgsql, $(pkgincludedir))" "" |
| ifeq "$(findstring postgres, $(pkgincludedir))" "" |
| override pkgincludedir := $(pkgincludedir)/postgresql |
| endif |
| endif |
|
|
| mandir := ${datarootdir}/man |
|
|
| docdir := ${datarootdir}/doc/${PACKAGE_TARNAME} |
| ifeq "$(findstring pgsql, $(docdir))" "" |
| ifeq "$(findstring postgres, $(docdir))" "" |
| override docdir := $(docdir)/postgresql |
| endif |
| endif |
|
|
| htmldir := ${docdir} |
|
|
| localedir := ${datarootdir}/locale |
|
|
| else |
|
|
| |
| ifndef PG_CONFIG |
| PG_CONFIG = pg_config |
| endif |
|
|
| bindir := $(shell $(PG_CONFIG) --bindir) |
| datadir := $(shell $(PG_CONFIG) --sharedir) |
| sysconfdir := $(shell $(PG_CONFIG) --sysconfdir) |
| libdir := $(shell $(PG_CONFIG) --libdir) |
| pkglibdir := $(shell $(PG_CONFIG) --pkglibdir) |
| includedir := $(shell $(PG_CONFIG) --includedir) |
| pkgincludedir := $(shell $(PG_CONFIG) --pkgincludedir) |
| mandir := $(shell $(PG_CONFIG) --mandir) |
| docdir := $(shell $(PG_CONFIG) --docdir) |
| localedir := $(shell $(PG_CONFIG) --localedir) |
|
|
| endif |
|
|
| |
|
|
| includedir_server = $(pkgincludedir)/server |
| includedir_internal = $(pkgincludedir)/internal |
| pgxsdir = $(pkglibdir)/pgxs |
| bitcodedir = $(pkglibdir)/bitcode |
|
|
|
|
| |
| |
| |
| |
| |
|
|
| with_icu = no |
| with_perl = no |
| with_python = no |
| with_tcl = no |
| with_ssl = no |
| with_readline = no |
| with_selinux = no |
| with_systemd = no |
| with_gssapi = no |
| with_krb_srvnam = postgres |
| with_ldap = no |
| with_libxml = no |
| with_libxslt = no |
| with_llvm = no |
| with_system_tzdata = |
| with_uuid = no |
| with_zlib = no |
| enable_rpath = yes |
| enable_nls = no |
| enable_debug = no |
| enable_dtrace = no |
| enable_coverage = no |
| enable_injection_points = no |
| enable_tap_tests = no |
|
|
| python_includespec = |
| python_libdir = |
| python_libspec = |
| python_additional_libs = |
| python_majorversion = |
| python_version = |
|
|
| krb_srvtab = |
|
|
| ICU_CFLAGS = |
| ICU_LIBS = |
|
|
| TCLSH = |
| TCL_LIBS = |
| TCL_LIB_SPEC = |
| TCL_INCLUDE_SPEC = |
| TCL_SHARED_BUILD = |
|
|
| PTHREAD_CFLAGS = -pthread -D_REENTRANT -D_THREAD_SAFE |
| PTHREAD_LIBS = |
|
|
| LLVM_BINPATH = |
| CLANG = |
| BITCODE_CFLAGS = -O2 |
| BITCODE_CXXFLAGS = -O2 |
|
|
| |
| |
| |
|
|
| |
|
|
| CPP = gcc -E |
| CPPFLAGS = -D_GNU_SOURCE |
| PG_SYSROOT = |
|
|
| override CPPFLAGS := $(ICU_CFLAGS) $(CPPFLAGS) |
|
|
| ifdef PGXS |
| override CPPFLAGS := -I$(includedir_server) -I$(includedir_internal) $(CPPFLAGS) |
| else |
| override CPPFLAGS := -I$(top_srcdir)/src/include $(CPPFLAGS) |
| ifdef VPATH |
| override CPPFLAGS := -I$(top_builddir)/src/include $(CPPFLAGS) |
| endif |
| endif |
|
|
| CC = gcc |
| GCC = yes |
| SUN_STUDIO_CC = no |
| CXX = g++ |
| CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 |
| CFLAGS_SL = -fPIC |
| |
| CFLAGS_SL_MODULE = -fvisibility=hidden |
| CXXFLAGS_SL_MODULE = -fvisibility=hidden -fvisibility-inlines-hidden |
| CFLAGS_UNROLL_LOOPS = -funroll-loops |
| CFLAGS_VECTORIZE = -ftree-vectorize |
| CFLAGS_POPCNT = -mavx512vpopcntdq -mavx512bw |
| CFLAGS_CRC = -msse4.2 |
| CFLAGS_XSAVE = -mxsave |
| PERMIT_DECLARATION_AFTER_STATEMENT = -Wno-declaration-after-statement |
| CXXFLAGS = -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 |
|
|
| LLVM_CPPFLAGS = |
| LLVM_CFLAGS = |
| LLVM_CXXFLAGS = |
|
|
| |
|
|
| BISON = /data/adaptai/platform/dbops/binaries/build/bin/bison |
| BISONFLAGS = -Wno-deprecated $(YFLAGS) |
| FLEX = /data/adaptai/platform/dbops/binaries/build/bin/flex |
| FLEXFLAGS = $(LFLAGS) |
| DTRACE = |
| DTRACEFLAGS = |
| ZIC = |
|
|
| |
|
|
| AR = ar |
| AROPT = crs |
| LIBS = -lm |
| LDAP_LIBS_FE = |
| LDAP_LIBS_BE = |
| UUID_LIBS = |
| LLVM_LIBS= |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| ifdef PGXS |
| LDFLAGS_INTERNAL = -L$(libdir) |
| else |
| LDFLAGS_INTERNAL = -L$(top_builddir)/src/port -L$(top_builddir)/src/common |
| endif |
| LDFLAGS = $(LDFLAGS_INTERNAL) -Wl,--as-needed |
|
|
| LDFLAGS_EX = |
| LDFLAGS_EX_BE = -Wl,--export-dynamic |
| |
| LDFLAGS_SL += |
| WINDRES = |
| X = |
|
|
| |
|
|
| |
| PERL = '/usr/bin/perl' |
| perl_archlibexp = |
| perl_privlibexp = |
| perl_includespec = |
| perl_embed_ccflags = |
| perl_embed_ldflags = |
|
|
| |
|
|
| AWK = mawk |
| LN_S = ln -s |
| MSGFMT = |
| MSGFMT_FLAGS = |
| MSGMERGE = |
| OPENSSL = /usr/bin/openssl |
| PYTHON = |
| TAR = /usr/bin/tar |
| XGETTEXT = |
|
|
| GZIP = gzip |
| BZIP2 = bzip2 |
| LZ4 = |
| ZSTD = /usr/bin/zstd |
|
|
| DOWNLOAD = wget -O $@ --no-use-server-timestamps |
| |
|
|
|
|
| |
|
|
| |
|
|
| |
| |
| |
| UNICODE_VERSION = 15.1.0 |
|
|
| |
| CLDR_VERSION = 45 |
|
|
|
|
| |
|
|
| |
| |
| |
| |
| |
| |
| |
|
|
| all install check installcheck: submake-generated-headers |
|
|
| .PHONY: submake-generated-headers |
|
|
| submake-generated-headers: |
| ifndef NO_GENERATED_HEADERS |
| ifeq ($(MAKELEVEL),0) |
| $(MAKE) -C $(top_builddir)/src/backend generated-headers |
| endif |
| endif |
|
|
|
|
| |
|
|
| |
| |
| |
|
|
| check: temp-install |
|
|
| .PHONY: temp-install |
|
|
|
|
| |
| define add_to_path |
| $(1)="$(if $($(1)),$(2):$$$(1),$(2))" |
| endef |
|
|
| |
| |
| ld_library_path_var = LD_LIBRARY_PATH |
|
|
| |
| |
| |
| with_temp_install = \ |
| PATH="$(abs_top_builddir)/tmp_install$(bindir):$(CURDIR):$$PATH" \ |
| $(call add_to_path,$(strip $(ld_library_path_var)),$(abs_top_builddir)/tmp_install$(libdir)) \ |
| INITDB_TEMPLATE='$(abs_top_builddir)'/tmp_install/initdb-template \ |
| $(with_temp_install_extra) |
|
|
| temp-install: | submake-generated-headers |
| ifndef NO_TEMP_INSTALL |
| ifneq ($(abs_top_builddir),) |
| ifeq ($(MAKELEVEL),0) |
| rm -rf '$(abs_top_builddir)'/tmp_install |
| $(MKDIR_P) '$(abs_top_builddir)'/tmp_install/log |
| $(MAKE) -C '$(top_builddir)' DESTDIR='$(abs_top_builddir)'/tmp_install install >'$(abs_top_builddir)'/tmp_install/log/install.log 2>&1 |
| $(MAKE) -j1 $(if $(CHECKPREP_TOP),-C $(CHECKPREP_TOP),) checkprep >>'$(abs_top_builddir)'/tmp_install/log/install.log 2>&1 |
|
|
| $(with_temp_install) initdb --auth trust --no-sync --no-instructions --lc-messages=C --no-clean '$(abs_top_builddir)'/tmp_install/initdb-template >>'$(abs_top_builddir)'/tmp_install/log/initdb-template.log 2>&1 |
| endif |
| endif |
| endif |
|
|
| |
| |
| |
| checkprep: |
| $(if $(EXTRA_INSTALL),for extra in $(EXTRA_INSTALL); do $(MAKE) -C '$(top_builddir)'/$$extra DESTDIR='$(abs_top_builddir)'/tmp_install install || exit; done) |
|
|
| PROVE = |
| |
| |
| PG_PROVE_FLAGS = -I $(top_srcdir)/src/test/perl/ -I $(srcdir) |
| |
| PROVE_FLAGS = |
|
|
| ifeq ($(enable_tap_tests),yes) |
|
|
| ifndef PGXS |
| define prove_installcheck |
| echo "# +++ tap install-check in $(subdir) +++" && \ |
| rm -rf '$(CURDIR)'/tmp_check && \ |
| $(MKDIR_P) '$(CURDIR)'/tmp_check && \ |
| cd $(srcdir) && \ |
| TESTLOGDIR='$(CURDIR)/tmp_check/log' \ |
| TESTDATADIR='$(CURDIR)/tmp_check' \ |
| PATH="$(bindir):$(CURDIR):$$PATH" \ |
| PGPORT='6$(DEF_PGPORT)' top_builddir='$(CURDIR)/$(top_builddir)' \ |
| PG_REGRESS='$(CURDIR)/$(top_builddir)/src/test/regress/pg_regress' \ |
| $(PROVE) $(PG_PROVE_FLAGS) $(PROVE_FLAGS) $(if $(PROVE_TESTS),$(PROVE_TESTS),t/*.pl) |
| endef |
| else |
| define prove_installcheck |
| echo "# +++ tap install-check in $(subdir) +++" && \ |
| rm -rf '$(CURDIR)'/tmp_check && \ |
| $(MKDIR_P) '$(CURDIR)'/tmp_check && \ |
| cd $(srcdir) && \ |
| TESTLOGDIR='$(CURDIR)/tmp_check/log' \ |
| TESTDATADIR='$(CURDIR)/tmp_check' \ |
| PATH="$(bindir):$(CURDIR):$$PATH" \ |
| PGPORT='6$(DEF_PGPORT)' \ |
| PG_REGRESS='$(top_builddir)/src/test/regress/pg_regress' \ |
| $(PROVE) $(PG_PROVE_FLAGS) $(PROVE_FLAGS) $(if $(PROVE_TESTS),$(PROVE_TESTS),t/*.pl) |
| endef |
| endif |
|
|
| define prove_check |
| echo "# +++ tap check in $(subdir) +++" && \ |
| rm -rf '$(CURDIR)'/tmp_check && \ |
| $(MKDIR_P) '$(CURDIR)'/tmp_check && \ |
| cd $(srcdir) && \ |
| TESTLOGDIR='$(CURDIR)/tmp_check/log' \ |
| TESTDATADIR='$(CURDIR)/tmp_check' \ |
| $(with_temp_install) \ |
| PGPORT='6$(DEF_PGPORT)' top_builddir='$(CURDIR)/$(top_builddir)' \ |
| PG_REGRESS='$(CURDIR)/$(top_builddir)/src/test/regress/pg_regress' \ |
| $(PROVE) $(PG_PROVE_FLAGS) $(PROVE_FLAGS) $(if $(PROVE_TESTS),$(PROVE_TESTS),t/*.pl) |
| endef |
|
|
| else |
| prove_installcheck = @echo "TAP tests not enabled. Try configuring with --enable-tap-tests" |
| prove_check = $(prove_installcheck) |
| endif |
|
|
| |
|
|
| install_bin = /usr/bin/install -c |
| install_sh = $(SHELL) $(top_srcdir)/config/install-sh -c |
| INSTALL = $(if $(use_install_sh),$(install_sh),$(if $(install_bin),$(install_bin),$(install_sh))) |
|
|
| INSTALL_SCRIPT_MODE = 755 |
| INSTALL_DATA_MODE = 644 |
| INSTALL_PROGRAM = $(INSTALL_PROGRAM_ENV) $(INSTALL) $(INSTALL_STRIP_FLAG) |
| INSTALL_SCRIPT = $(INSTALL) -m $(INSTALL_SCRIPT_MODE) |
| INSTALL_DATA = $(INSTALL) -m $(INSTALL_DATA_MODE) |
| INSTALL_STLIB = $(INSTALL_STLIB_ENV) $(INSTALL_DATA) $(INSTALL_STRIP_FLAG) |
| INSTALL_SHLIB = $(INSTALL_SHLIB_ENV) $(INSTALL) $(INSTALL_SHLIB_OPTS) $(INSTALL_STRIP_FLAG) |
| |
| INSTALL_SHLIB_OPTS = -m 755 |
|
|
| MKDIR_P = /usr/bin/mkdir -p |
|
|
| missing = $(SHELL) $(top_srcdir)/config/missing |
|
|
| STRIP = strip |
| STRIP_STATIC_LIB = strip --strip-unneeded |
| STRIP_SHARED_LIB = strip --strip-unneeded |
|
|
| |
|
|
| DBTOEPUB = |
| FOP = |
| XMLLINT = |
| XSLTPROC = |
|
|
| |
|
|
| GCOV = |
| LCOV = |
| GENHTML = |
|
|
| |
|
|
| DEF_PGPORT = 5432 |
| WANTED_LANGUAGES = |
|
|
|
|
| |
| |
| |
| |
|
|
| |
| PORTNAME= linux |
|
|
| build_os = linux-gnu |
|
|
| host_tuple = x86_64-pc-linux-gnu |
| host_os = linux-gnu |
| host_cpu = x86_64 |
|
|
| |
| WIN32_STACK_RLIMIT=4194304 |
|
|
| DLSUFFIX = .so |
|
|
| |
| include $(top_builddir)/src/Makefile.port |
|
|
| |
| |
| rpathdir = $(libdir) |
|
|
| ifeq ($(enable_rpath), yes) |
| LDFLAGS += $(rpath) |
| endif |
|
|
| |
| .PHONY: show_dl_suffix |
| show_dl_suffix: |
| @echo $(DLSUFFIX) |
|
|
|
|
| |
| |
| |
|
|
| ifdef PGXS |
| |
| libpq_srcdir = $(includedir) |
| libpq_builddir = $(libdir) |
| else |
| libpq_srcdir = $(top_srcdir)/src/interfaces/libpq |
| libpq_builddir = $(top_builddir)/src/interfaces/libpq |
| endif |
|
|
| |
| |
| |
| libpq = -L$(libpq_builddir) -lpq |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| libpq_pgport = $(libpq) |
|
|
| |
| |
| |
| |
| |
| ifdef PGXS |
| libpq_pgport_shlib = -L$(libdir) -lpgcommon_shlib -lpgport_shlib $(libpq) |
| else |
| libpq_pgport_shlib = -L$(top_builddir)/src/common -lpgcommon_shlib -L$(top_builddir)/src/port -lpgport_shlib $(libpq) |
| endif |
|
|
| |
| ifeq ($(PORTNAME),cygwin) |
| libpq_pgport += $(LDAP_LIBS_FE) |
| endif |
|
|
|
|
| |
| |
| |
|
|
| submake-libpq: | submake-generated-headers |
| $(MAKE) -C $(libpq_builddir) all |
|
|
| submake-libpgport: | submake-generated-headers |
| $(MAKE) -C $(top_builddir)/src/port all |
| $(MAKE) -C $(top_builddir)/src/common all |
|
|
| submake-libpgfeutils: | submake-generated-headers |
| $(MAKE) -C $(top_builddir)/src/port all |
| $(MAKE) -C $(top_builddir)/src/common all |
| $(MAKE) -C $(top_builddir)/src/fe_utils all |
|
|
| .PHONY: submake-libpq submake-libpgport submake-libpgfeutils |
|
|
|
|
| |
| |
| |
|
|
| ifneq ($(USE_MODULE_DB),) |
| PL_TESTDB = pl_regression_$(NAME) |
| ifneq ($(MODULE_big),) |
| CONTRIB_TESTDB=contrib_regression_$(MODULE_big) |
| ISOLATION_TESTDB=isolation_regression_$(MODULE_big) |
| else |
| ifneq ($(MODULES),) |
| CONTRIB_TESTDB=contrib_regression_$(word 1,$(MODULES)) |
| ISOLATION_TESTDB=isolation_regression_$(word 1,$(MODULES)) |
| else |
| CONTRIB_TESTDB=contrib_regression_$(word 1,$(REGRESS)) |
| ISOLATION_TESTDB=isolation_regression_$(word 1,$(ISOLATION)) |
| endif |
| endif |
| else |
| PL_TESTDB = pl_regression |
| CONTRIB_TESTDB = contrib_regression |
| ISOLATION_TESTDB = isolation_regression |
| endif |
|
|
| ifdef NO_LOCALE |
| NOLOCALE += --no-locale |
| endif |
|
|
| |
| TEMP_CONF = |
| ifdef TEMP_CONFIG |
| TEMP_CONF += --temp-config=$(TEMP_CONFIG) |
| endif |
|
|
| pg_regress_locale_flags = $(if $(ENCODING),--encoding=$(ENCODING)) $(NOLOCALE) |
| pg_regress_clean_files = results/ regression.diffs regression.out tmp_check/ tmp_check_iso/ log/ output_iso/ |
|
|
| pg_regress_check = \ |
| echo "\# +++ regress check in $(subdir) +++" && \ |
| $(with_temp_install) \ |
| $(top_builddir)/src/test/regress/pg_regress \ |
| --temp-instance=./tmp_check \ |
| --inputdir=$(srcdir) \ |
| --bindir= \ |
| $(TEMP_CONF) \ |
| $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS) |
| pg_regress_installcheck = \ |
| echo "\# +++ regress install-check in $(subdir) +++" && \ |
| $(top_builddir)/src/test/regress/pg_regress \ |
| --inputdir=$(srcdir) \ |
| --bindir='$(bindir)' \ |
| $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS) |
|
|
| pg_isolation_regress_check = \ |
| echo "\# +++ isolation check in $(subdir) +++" && \ |
| $(with_temp_install) \ |
| $(top_builddir)/src/test/isolation/pg_isolation_regress \ |
| --temp-instance=./tmp_check_iso \ |
| --inputdir=$(srcdir) --outputdir=output_iso \ |
| --bindir= \ |
| $(TEMP_CONF) \ |
| $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS) |
| pg_isolation_regress_installcheck = \ |
| echo "\# +++ isolation install-check in $(subdir) +++" && \ |
| $(top_builddir)/src/test/isolation/pg_isolation_regress \ |
| --inputdir=$(srcdir) --outputdir=output_iso \ |
| --bindir='$(bindir)' \ |
| $(pg_regress_locale_flags) $(EXTRA_REGRESS_OPTS) |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| -include $(top_srcdir)/src/Makefile.custom |
|
|
| ifneq ($(CUSTOM_INSTALL),) |
| INSTALL= $(CUSTOM_INSTALL) |
| endif |
|
|
| ifneq ($(CUSTOM_CC),) |
| CC= $(CUSTOM_CC) |
| endif |
|
|
| ifneq ($(CUSTOM_COPT),) |
| COPT= $(CUSTOM_COPT) |
| endif |
|
|
| |
| |
| |
| |
| |
| ifdef COPT |
| CFLAGS += $(COPT) |
| LDFLAGS += $(COPT) |
| endif |
|
|
| ifdef PROFILE |
| CFLAGS += $(PROFILE) |
| LDFLAGS += $(PROFILE) |
| endif |
|
|
|
|
| |
| |
| |
| |
|
|
| LIBOBJS = ${LIBOBJDIR}getpeereid$U.o |
|
|
| |
| PG_CRC32C_OBJS = pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o |
|
|
| |
| PG_POPCNT_OBJS = pg_popcount_avx512.o pg_popcount_avx512_choose.o |
|
|
| LIBS := -lpgcommon -lpgport $(LIBS) |
|
|
| |
| ifeq ($(PORTNAME),win32) |
| LIBS += -lws2_32 |
| endif |
|
|
| |
| TAS = |
|
|
|
|
| |
| |
| |
|
|
| %.c: %.l |
| $(FLEX) $(if $(FLEX_NO_BACKUP),-b) $(FLEXFLAGS) -o'$@' $< |
| @$(if $(FLEX_NO_BACKUP),if [ `wc -l <lex.backup` -eq 1 ]; then rm lex.backup; else echo "Scanner requires backup; see lex.backup." 1>&2; exit 1; fi) |
| $(if $(FLEX_FIX_WARNING),$(PERL) $(top_srcdir)/src/tools/fix-old-flex-code.pl '$@') |
|
|
| %.c: %.y |
| $(if $(BISON_CHECK_CMD),$(BISON_CHECK_CMD)) |
| $(BISON) $(BISONFLAGS) -o $@ $< |
|
|
| %.i: %.c |
| $(CPP) $(CPPFLAGS) -o $@ $< |
|
|
| %.gz: % |
| $(GZIP) --best -c $< >$@ |
|
|
| %.bz2: % |
| $(BZIP2) -c $< >$@ |
|
|
| |
| |
| |
| |
| %: %.c |
|
|
| |
| |
| |
| |
| %: %.o |
| $(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X) |
|
|
| ifndef PGXS |
|
|
| |
| |
| |
| |
| $(top_builddir)/src/Makefile.global: $(top_srcdir)/src/Makefile.global.in $(top_builddir)/config.status |
| cd $(top_builddir) && ./config.status src/Makefile.global |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| $(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 |
|
|
| |
| $(top_builddir)/src/include/pg_config_ext.h: $(top_builddir)/src/include/stamp-ext-h ; |
|
|
| $(top_builddir)/src/include/stamp-ext-h: $(top_srcdir)/src/include/pg_config_ext.h.in $(top_builddir)/config.status |
| cd $(top_builddir) && ./config.status src/include/pg_config_ext.h |
|
|
| |
| |
| $(top_builddir)/src/interfaces/ecpg/include/ecpg_config.h: $(top_builddir)/src/interfaces/ecpg/include/stamp-h ; |
|
|
| $(top_builddir)/src/interfaces/ecpg/include/stamp-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 |
|
|
| |
| |
| $(top_builddir)/config.status: $(top_srcdir)/configure |
| cd $(top_builddir) && ./config.status --recheck |
|
|
| endif |
|
|
|
|
| install-strip: |
| |
| |
| $(MAKE) use_install_sh=yes \ |
| INSTALL_PROGRAM_ENV="STRIPPROG='$(STRIP)'" \ |
| INSTALL_STLIB_ENV="STRIPPROG='$(STRIP_STATIC_LIB)'" \ |
| INSTALL_SHLIB_ENV="STRIPPROG='$(STRIP_SHARED_LIB)'" \ |
| INSTALL_STRIP_FLAG=-s \ |
| install |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
| |
| |
| ifndef .FEATURES |
| $(error GNU make 3.81 or newer is required. You are using version $(MAKE_VERSION)) |
| endif |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| define _create_recursive_target |
| .PHONY: $(1)-$(2)-recurse |
| $(1): $(1)-$(2)-recurse |
| $(1)-$(2)-recurse: $(if $(filter all install check installcheck, $(3)), submake-generated-headers) $(if $(filter check, $(3)), temp-install) |
| $$(MAKE) -C $(2) $(3) |
| endef |
| |
| |
| |
|
|
| |
| |
| |
| |
| |
| recurse = $(foreach target,$(if $1,$1,$(standard_targets)),$(foreach subdir,$(if $2,$2,$(SUBDIRS)),$(eval $(call _create_recursive_target,$(target),$(subdir),$(if $3,$3,$(target)))))) |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| recurse_always = $(foreach target,$(if $1,$1,$(standard_always_targets)),$(foreach subdir,$(if $2,$2,$(ALWAYS_SUBDIRS)),$(eval $(call _create_recursive_target,$(target),$(subdir),$(if $3,$3,$(target)))))) |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| autodepend = |
|
|
| ifeq ($(autodepend), yes) |
|
|
| ifndef COMPILE.c |
| COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c |
| endif |
|
|
| ifndef COMPILE.cc |
| COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c |
| endif |
|
|
| DEPDIR = .deps |
|
|
| ifeq ($(GCC), yes) |
|
|
| |
| %.o : %.c |
| @if test ! -d $(DEPDIR); then mkdir -p $(DEPDIR); fi |
| $(COMPILE.c) -o $@ $< -MMD -MP -MF $(DEPDIR)/$(*F).Po |
|
|
| %.o : %.cpp |
| @if test ! -d $(DEPDIR); then mkdir -p $(DEPDIR); fi |
| $(COMPILE.cc) -o $@ $< -MMD -MP -MF $(DEPDIR)/$(*F).Po |
|
|
| endif |
|
|
| |
| |
| |
| Po_files := $(wildcard $(DEPDIR)/*.Po) |
| ifneq (,$(Po_files)) |
| include $(Po_files) |
| endif |
|
|
| |
| clean distclean: clean-deps |
|
|
| .PHONY: clean-deps |
| clean-deps: |
| @rm -rf $(DEPDIR) |
|
|
| endif |
|
|
|
|
| |
| |
| |
|
|
| ifeq ($(enable_nls), yes) |
| ifneq (,$(wildcard $(srcdir)/nls.mk)) |
|
|
| include $(top_srcdir)/src/nls-global.mk |
|
|
| endif |
| endif |
|
|
|
|
| |
| |
| |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| ifeq ($(enable_coverage), yes) |
|
|
| |
|
|
| local_gcda_files = $(wildcard *.gcda) |
|
|
| coverage: $(local_gcda_files:.gcda=.c.gcov) |
|
|
| %.c.gcov: %.gcda |
| $(GCOV) -b -f -p -o . $(GCOVFLAGS) $*.c >$*.c.gcov.out |
|
|
| |
|
|
| .PHONY: coverage-html |
| coverage-html: coverage-html-stamp |
|
|
| GENHTML_FLAGS = -q --legend |
| GENHTML_TITLE = PostgreSQL $(VERSION) |
|
|
| coverage-html-stamp: lcov_base.info lcov_test.info |
| rm -rf coverage |
| $(GENHTML) $(GENHTML_FLAGS) -o coverage --title='$(GENHTML_TITLE)' --num-spaces=4 $(if $(filter no,$(vpath_build)),--prefix='$(abs_top_srcdir)') $^ |
| touch $@ |
|
|
| LCOV += --gcov-tool $(GCOV) |
| LCOVFLAGS = -q --no-external |
|
|
| all_gcno_files = $(shell find . -name '*.gcno' -print) |
|
|
| lcov_base.info: $(all_gcno_files) |
| $(LCOV) $(LCOVFLAGS) -c -i -d . -d $(srcdir) -o $@ |
|
|
| all_gcda_files = $(shell find . -name '*.gcda' -print) |
|
|
| lcov_test.info: $(all_gcda_files) |
| $(LCOV) $(LCOVFLAGS) -c -d . -d $(srcdir) -o $@ |
|
|
|
|
| |
| clean distclean: clean-coverage |
|
|
| .PHONY: clean-coverage |
| clean-coverage: |
| rm -rf coverage coverage-html-stamp |
| rm -f *.gcda *.gcno lcov*.info *.gcov .*.gcov *.gcov.out |
|
|
|
|
| |
| coverage-clean: |
| rm -f `find . -name '*.gcda' -print` |
|
|
| endif |
|
|
| |
| |
| |
| |
|
|
| ifndef COMPILE.c.bc |
| |
| |
| COMPILE.c.bc = $(CLANG) -Wno-ignored-attributes $(BITCODE_CFLAGS) $(CPPFLAGS) -flto=thin -emit-llvm -c |
| endif |
|
|
| ifndef COMPILE.cxx.bc |
| COMPILE.cxx.bc = $(CLANG) -xc++ -Wno-ignored-attributes $(BITCODE_CXXFLAGS) $(CPPFLAGS) -flto=thin -emit-llvm -c |
| endif |
|
|
| %.bc : %.c |
| $(COMPILE.c.bc) -o $@ $< |
|
|
| %.bc : %.cpp |
| $(COMPILE.cxx.bc) -o $@ $< |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| define install_llvm_module |
| $(MKDIR_P) '$(DESTDIR)${bitcodedir}/$(1)' |
| $(MKDIR_P) $(sort $(dir $(addprefix '$(DESTDIR)${bitcodedir}'/$(1)/, $(2)))) |
| $(foreach obj, ${2}, $(INSTALL_DATA) $(patsubst %.o,%.bc, $(obj)) '$(DESTDIR)${bitcodedir}'/$(1)/$(dir $(obj)) |
| ) |
| cd '$(DESTDIR)${bitcodedir}' && $(LLVM_BINPATH)/llvm-lto -thinlto -thinlto-action=thinlink -o $(1).index.bc $(addprefix $(1)/,$(patsubst %.o,%.bc, $(2))) |
|
|
| endef |
|
|
| |
| |
| |
| |
| |
| |
| |
| define uninstall_llvm_module |
| rm -rf '$(DESTDIR)${bitcodedir}/$(1)/' |
| rm -f '$(DESTDIR)${bitcodedir}/$(1).index.bc' |
|
|
| endef |
|
|