File indexing completed on 2025-01-05 05:12:56
0001 first: all 0002 0003 include ../Makefile.include 0004 0005 include ../libgcrypt/Makefile.include 0006 include ../zlib/Makefile.include 0007 0008 include Makefile.include 0009 0010 PRODUCT_NAME = libssh2 0011 PRODUCT_VERSION = 1.8.0 0012 PRODUCT_DIRNAME = $(PRODUCT_NAME)-$(PRODUCT_VERSION) 0013 PRODUCT_PORT_SUFFIX = $(TARGET_MACHINE) 0014 0015 PRODUCT_ARCHIVE = $(PRODUCT_NAME)-$(PRODUCT_VERSION).tar.gz 0016 PRODUCT_ARCHIVE_URL = https://www.libssh2.org/download/$(PRODUCT_ARCHIVE) 0017 PRODUCT_ARCHIVE_DIR = $(ARCHIVE_DIR) 0018 PRODUCT_ARCHIVE_PATH = $(PRODUCT_ARCHIVE_DIR)/$(PRODUCT_ARCHIVE) 0019 0020 PRODUCT_SOURCE_DIR = $(SOURCE_DIR)/$(PRODUCT_DIRNAME) 0021 0022 PRODUCT_PORT_DIR = $(PORT_DIR)/$(PRODUCT_DIRNAME)-$(PRODUCT_PORT_SUFFIX) 0023 0024 PRODUCT_BUILD_DIR = $(BUILD_DIR)/$(PRODUCT_DIRNAME)-$(PRODUCT_PORT_SUFFIX) 0025 0026 PRODUCT_INSTALL_DIR = $(LIBSSH2_INSTALL_DIR) 0027 PRODUCT_INSTALL_INCLUDE_DIR = $(PRODUCT_INSTALL_DIR)/include 0028 PRODUCT_INSTALL_LIB_DIR = $(PRODUCT_INSTALL_DIR)/bin 0029 0030 PRODUCT_DEPLOY_DIR = $(LIBSSH2_DEPLOY_DIR) 0031 PRODUCT_DEPLOY_INCLUDE_DIR = $(PRODUCT_DEPLOY_DIR)/include 0032 PRODUCT_DEPLOY_LIB_DIR = $(PRODUCT_DEPLOY_DIR)/lib 0033 0034 PRODUCT_CONFIGURE_TXT_PATH = $(BUILD_DIR)/$(PRODUCT_NAME)-$(PRODUCT_VERSION)-$(PRODUCT_PORT_SUFFIX).configure.txt 0035 PRODUCT_README_PORT_MD_PATH = $(PRODUCT_PORT_DIR)/README.$(PRODUCT_PORT_SUFFIX).md 0036 PRODUCT_BUILD_TXT_PATH = $(BUILD_DIR)/$(PRODUCT_NAME)-$(PRODUCT_VERSION)-$(PRODUCT_PORT_SUFFIX).build.txt 0037 0038 PRODUCT_INCLUDE_FILES = libssh2.h libssh2_publickey.h libssh2_sftp.h 0039 PRODUCT_INCLUDE_FILES_INSTALL := $(addprefix $(PRODUCT_INSTALL_INCLUDE_DIR)/, $(PRODUCT_INCLUDE_FILES)) 0040 PRODUCT_INCLUDE_FILES_DEPLOY := $(addprefix $(PRODUCT_DEPLOY_INCLUDE_DIR)/, $(PRODUCT_INCLUDE_FILES)) 0041 0042 PRODUCT_LIB_FILES = libssh2-1.dll 0043 PRODUCT_LIB_FILES_INSTALL = $(addprefix $(PRODUCT_INSTALL_LIB_DIR)/, $(PRODUCT_LIB_FILES)) 0044 PRODUCT_LIB_FILES_DEPLOY = $(addprefix $(PRODUCT_DEPLOY_LIB_DIR)/, $(PRODUCT_LIB_FILES)) 0045 0046 export PATH MAKE 0047 0048 include ../Makefile.phony 0049 0050 all: deploy 0051 0052 include ../Makefile.deploy 0053 0054 buildinstall $(PRODUCT_LIB_FILES_INSTALL) $(PRODUCT_INCLUDE_FILES_INSTALL): $(PRODUCT_BUILD_TXT_PATH) | $(CD) $(MAKE) 0055 $(CD) $(PRODUCT_BUILD_DIR) && $(MAKE) -j 1 install 0056 0057 build $(PRODUCT_BUILD_TXT_PATH): $(PRODUCT_BUILD_DIR)/Makefile | $(CD) $(MAKE) $(TEE) $(CMD) $(PERL) 0058 $(CD) $(PRODUCT_BUILD_DIR) && $(MAKE) -j $(MAKE_BUILD_JOBS) 2>&1 | $(TEE) $(PRODUCT_BUILD_TXT_PATH) 0059 0060 buildconfigure $(PRODUCT_BUILD_DIR)/Makefile: $(PRODUCT_BUILD_DIR)/configure \ 0061 $(LIBGCRYPT_INSTALL_DIR) \ 0062 $(ZLIB_INSTALL_DIR) | $(CD) $(SH) $(TEE) $(AWK) $(SED) $(CMD) $(PERL) $(EXPR) 0063 $(CD) $(PRODUCT_BUILD_DIR) && $(SH) configure --host=$(HOST_MACHINE) --build=$(BUILD_MACHINE) \ 0064 --prefix=$(PRODUCT_INSTALL_DIR) \ 0065 --with-libz-prefix=$(ZLIB_INSTALL_DIR) \ 0066 --with-libgcrypt=$(LIBGCRYPT_INSTALL_DIR) \ 0067 --disable-rpath \ 0068 --disable-examples-build \ 0069 2>&1 | $(TEE) $(PRODUCT_CONFIGURE_TXT_PATH) 0070 0071 include ../Makefile.builddir 0072 0073 include ../Makefile.port 0074 0075 include ../Makefile.portdir 0076 0077 include ../Makefile.sourcedir 0078 0079 include ../Makefile.archive 0080 0081 include ../Makefile.clean 0082