mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:39:00 +08:00
2f56fdad4b
* [libpq] Install msys2 autoconf-archive * Install msys2 zic tool * Fix zstd patching * Always build as if cross compiling * Enable feature client for non-windows * Cleanup (WIP) * Cleanup (WIP) * Update portfile.cmake * WIP * WIP * WIP * WIP * [libxslt] Fix pc files * WIP * WIP: Test libpq[all] * WIP * Update to 15.3 * Move patches * Revert "WIP: Test libpq[all]" * Fix install * Skip import libs for plugins * Full CI
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
subdir = .
|
|
top_builddir = .
|
|
include src/Makefile.global
|
|
|
|
ifeq ($(LIBPQ_LIBRARY_TYPE), static)
|
|
LIBPQ_INSTALL_LIBS = install-stlib
|
|
endif
|
|
|
|
ifeq ($(LIBPQ_LIBRARY_TYPE), shared)
|
|
ifeq ($(LIBPQ_USING_MINGW), yes)
|
|
# The import library name is the same as the static library name
|
|
EXTRA_TARGET = install-lib-static
|
|
endif
|
|
endif
|
|
|
|
.PHONY: all
|
|
all:
|
|
$(MAKE) -C src/include
|
|
$(MAKE) -C src/common
|
|
$(MAKE) -C src/port
|
|
$(MAKE) -C src/interfaces/libpq all-$(LIBPQ_LIBRARY_TYPE)-lib
|
|
$(MAKE) -C src/interfaces/ecpg/include
|
|
$(MAKE) -C src/interfaces/ecpg/pgtypeslib
|
|
$(MAKE) -C src/interfaces/ecpg/ecpglib
|
|
$(MAKE) -C src/interfaces/ecpg/compatlib
|
|
ifeq ($(LIBPQ_ENABLE_TOOLS), yes)
|
|
$(MAKE) -C src/interfaces/ecpg/preproc
|
|
$(MAKE) -C src/fe_utils
|
|
$(MAKE) -C src/bin
|
|
else
|
|
$(MAKE) -C src/bin/pg_config
|
|
endif
|
|
|
|
.PHONY: install-stlib
|
|
install-stlib:
|
|
$(MAKE) -C src/common install -o all
|
|
rm -f '$(DESTDIR)$(libdir)/libpgcommon_shlib.a'
|
|
$(MAKE) -C src/port install -o all
|
|
rm -f '$(DESTDIR)$(libdir)/libpgport_shlib.a'
|
|
|
|
.PHONY: install
|
|
install: $(LIBPQ_INSTALL_LIBS)
|
|
$(MAKE) -C src/include install
|
|
$(MAKE) -C src/interfaces/libpq $(EXTRA_TARGET) install-lib-$(LIBPQ_LIBRARY_TYPE) install-lib-pc install -o all -o install-lib
|
|
$(MAKE) -C src/interfaces/ecpg/include install
|
|
$(MAKE) -C src/interfaces/ecpg/pgtypeslib install
|
|
$(MAKE) -C src/interfaces/ecpg/ecpglib install
|
|
$(MAKE) -C src/interfaces/ecpg/compatlib install
|
|
ifeq ($(LIBPQ_ENABLE_TOOLS), yes)
|
|
$(MAKE) -C src/interfaces/ecpg/preproc install
|
|
$(MAKE) -C src/bin install
|
|
else
|
|
$(MAKE) -C src/bin/pg_config install
|
|
endif
|