File indexing completed on 2025-01-05 05:12:56
0001 first: all 0002 0003 include ../Makefile.include 0004 include Makefile.include 0005 0006 PRODUCT_NAME = libmodbus 0007 PRODUCT_VERSION = 3.1.2 0008 PRODUCT_DIRNAME = $(PRODUCT_NAME)-$(PRODUCT_VERSION) 0009 PRODUCT_PORT_SUFFIX = $(TARGET_MACHINE) 0010 0011 PRODUCT_ARCHIVE = $(PRODUCT_NAME)-$(PRODUCT_VERSION).tar.gz 0012 PRODUCT_ARCHIVE_URL = http://libmodbus.org/releases/$(PRODUCT_ARCHIVE) 0013 PRODUCT_ARCHIVE_DIR = $(ARCHIVE_DIR) 0014 PRODUCT_ARCHIVE_PATH = $(PRODUCT_ARCHIVE_DIR)/$(PRODUCT_ARCHIVE) 0015 0016 PRODUCT_SOURCE_DIR = $(SOURCE_DIR)/$(PRODUCT_DIRNAME) 0017 0018 PRODUCT_PORT_DIR = $(PORT_DIR)/$(PRODUCT_DIRNAME)-$(PRODUCT_PORT_SUFFIX) 0019 0020 PRODUCT_BUILD_DIR = $(BUILD_DIR)/$(PRODUCT_DIRNAME)-$(PRODUCT_PORT_SUFFIX) 0021 0022 PRODUCT_INSTALL_DIR = $(LIBMODBUS_INSTALL_DIR) 0023 PRODUCT_INSTALL_INCLUDE_DIR = $(PRODUCT_INSTALL_DIR)/include 0024 PRODUCT_INSTALL_LIB_DIR = $(PRODUCT_INSTALL_DIR)/bin 0025 0026 PRODUCT_DEPLOY_DIR = $(LIBMODBUS_DEPLOY_DIR) 0027 PRODUCT_DEPLOY_INCLUDE_DIR = $(PRODUCT_DEPLOY_DIR)/include 0028 PRODUCT_DEPLOY_LIB_DIR = $(PRODUCT_DEPLOY_DIR)/lib 0029 0030 PRODUCT_CONFIGURE_TXT_PATH = $(BUILD_DIR)/$(PRODUCT_NAME)-$(PRODUCT_VERSION)-$(PRODUCT_PORT_SUFFIX).configure.txt 0031 PRODUCT_README_PORT_MD_PATH = $(PRODUCT_PORT_DIR)/README.$(PRODUCT_PORT_SUFFIX).md 0032 PRODUCT_BUILD_TXT_PATH = $(BUILD_DIR)/$(PRODUCT_NAME)-$(PRODUCT_VERSION)-$(PRODUCT_PORT_SUFFIX).build.txt 0033 0034 PRODUCT_INCLUDE_FILES = modbus 0035 PRODUCT_INCLUDE_FILES_INSTALL = $(addprefix $(PRODUCT_INSTALL_INCLUDE_DIR)/, $(PRODUCT_INCLUDE_FILES)) 0036 PRODUCT_INCLUDE_FILES_DEPLOY = $(addprefix $(PRODUCT_DEPLOY_INCLUDE_DIR)/, $(PRODUCT_INCLUDE_FILES)) 0037 0038 PRODUCT_LIB_FILES = libmodbus-5.dll 0039 PRODUCT_LIB_FILES_INSTALL = $(addprefix $(PRODUCT_INSTALL_LIB_DIR)/, $(PRODUCT_LIB_FILES)) 0040 PRODUCT_LIB_FILES_DEPLOY = $(addprefix $(PRODUCT_DEPLOY_LIB_DIR)/, $(PRODUCT_LIB_FILES)) 0041 0042 export PATH MAKE 0043 0044 include ../Makefile.phony 0045 0046 all: deploy 0047 0048 include ../Makefile.deploy 0049 0050 include ../Makefile.buildinstall 0051 0052 include ../Makefile.build 0053 0054 buildconfigure $(PRODUCT_BUILD_DIR)/Makefile: $(PRODUCT_BUILD_DIR)/configure | $(CD) $(SH) $(TEE) $(AWK) $(SED) $(CMD) 0055 $(CD) $(PRODUCT_BUILD_DIR) && $(SH) configure --host=$(HOST_MACHINE) --build=$(BUILD_MACHINE) \ 0056 --prefix=$(PRODUCT_INSTALL_DIR) \ 0057 2>&1 | $(TEE) $(PRODUCT_CONFIGURE_TXT_PATH) 0058 0059 include ../Makefile.builddir 0060 0061 include ../Makefile.port 0062 0063 include ../Makefile.portdir 0064 0065 include ../Makefile.sourcedir 0066 0067 include ../Makefile.archive 0068 0069 include ../Makefile.clean 0070