File indexing completed on 2025-01-05 05:12:56
0001 first: all 0002 0003 include ../Makefile.include 0004 0005 include Makefile.include 0006 0007 include ../libiconv/Makefile.include 0008 include ../gettext/Makefile.include 0009 0010 PRODUCT_NAME = zlib 0011 PRODUCT_VERSION = 1.2.11 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://zlib.net/$(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 = $(ZLIB_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 = $(ZLIB_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 = zconf.h zlib.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 = zlib1.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 PATH := $(GETTEXT_INSTALL_DIR)/bin:$(LIBICONV_INSTALL_DIR)/bin:$(PATH) 0047 0048 export PATH MAKE 0049 0050 include ../Makefile.phony 0051 0052 all: deploy 0053 0054 include ../Makefile.deploy 0055 0056 buildinstall $(PRODUCT_LIB_FILES_INSTALL) $(PRODUCT_INCLUDE_FILES_INSTALL): $(PRODUCT_BUILD_TXT_PATH) | $(CD) $(MAKE) $(TOUCH) 0057 $(CD) $(PRODUCT_BUILD_DIR) && $(MAKE) -j $(MAKE_BUILD_JOBS) -f win32/Makefile.gcc install \ 0058 BINARY_PATH=$(PRODUCT_INSTALL_DIR)/bin \ 0059 LIBRARY_PATH=$(PRODUCT_INSTALL_DIR)/lib \ 0060 INCLUDE_PATH=$(PRODUCT_INSTALL_DIR)/include \ 0061 SHARED_MODE=1 0062 $(TOUCH) $(PRODUCT_INCLUDE_FILES_INSTALL) 0063 $(TOUCH) $(PRODUCT_LIB_FILES_INSTALL) 0064 0065 build $(PRODUCT_BUILD_TXT_PATH): $(PRODUCT_BUILD_DIR)/win32/Makefile.gcc | $(CD) $(MAKE) $(TEE) $(CMD) 0066 $(CD) $(PRODUCT_BUILD_DIR) && $(MAKE) -j $(MAKE_BUILD_JOBS) CFLAGS+='-g0' -f win32/Makefile.gcc \ 0067 BINARY_PATH=$(PRODUCT_INSTALL_DIR)/bin \ 0068 LIBRARY_PATH=$(PRODUCT_INSTALL_DIR)/lib \ 0069 INCLUDE_PATH=$(PRODUCT_INSTALL_DIR)/include \ 0070 SHARED_MODE=1 \ 0071 2>&1 | $(TEE) $(PRODUCT_BUILD_TXT_PATH) 0072 0073 buildconfigure $(PRODUCT_BUILD_DIR)/win32/Makefile.gcc: $(PRODUCT_BUILD_DIR)/configure | $(CD) $(SH) $(TEE) $(AWK) $(CMD) $(TOUCH) 0074 $(CD) $(PRODUCT_BUILD_DIR) && $(SH) configure 2>&1 | $(TEE) $(PRODUCT_CONFIGURE_TXT_PATH) 0075 $(TOUCH) $(PRODUCT_BUILD_DIR)/win32/Makefile.gcc 0076 0077 include ../Makefile.builddir 0078 0079 include ../Makefile.port 0080 0081 include ../Makefile.portdir 0082 0083 include ../Makefile.sourcedir 0084 0085 include ../Makefile.archive 0086 0087 include ../Makefile.clean 0088