diff options
author | Rosen Penev <rosenp@gmail.com> | 2022-09-25 00:22:24 -0700 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2022-09-29 19:33:13 +0200 |
commit | d602e7a969922121800e8f24d81cecdaab3aae75 (patch) | |
tree | ed2f0c7992c4d2722727f5fa15b0d9bce5a207c6 /tools/zlib | |
parent | ec8fb542ec3e4f584444a97de5ac05dbc2a9cde5 (diff) | |
download | upstream-d602e7a969922121800e8f24d81cecdaab3aae75.tar.gz upstream-d602e7a969922121800e8f24d81cecdaab3aae75.tar.bz2 upstream-d602e7a969922121800e8f24d81cecdaab3aae75.zip |
tools/zlib: switch to configure script
A future commit will make tools/cmake use this.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'tools/zlib')
-rw-r--r-- | tools/zlib/Makefile | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/zlib/Makefile b/tools/zlib/Makefile index 58315b8083..974de38154 100644 --- a/tools/zlib/Makefile +++ b/tools/zlib/Makefile @@ -20,23 +20,23 @@ PKG_LICENSE:=Zlib PKG_LICENSE_FILES:=README PKG_CPE_ID:=cpe:/a:gnu:zlib +HOST_BUILD_PARALLEL:=1 + include $(INCLUDE_DIR)/host-build.mk -include $(INCLUDE_DIR)/cmake.mk -HOST_CFLAGS +=-fPIC +HOSTCC := $(HOSTCC_NOCACHE) +HOST_CFLAGS += $(HOST_FPIC) -define Host/Install - $(CP) $(HOST_BUILD_DIR)/libz.a $(STAGING_DIR_HOST)/lib/ - $(CP) $(HOST_BUILD_DIR)/zconf.h $(STAGING_DIR_HOST)/include/ - $(CP) $(HOST_BUILD_DIR)/zlib.h $(STAGING_DIR_HOST)/include/ - $(CP) $(HOST_BUILD_DIR)/zlib.pc $(STAGING_DIR_HOST)/lib/pkgconfig/ -endef +HOST_CONFIGURE_ARGS = \ + --prefix=$(STAGING_DIR_HOST) \ + --sysconfdir=$(STAGING_DIR_HOST)/etc \ + --localstatedir=$(STAGING_DIR_HOST)/var \ + --libdir=$(STAGING_DIR_HOST)/lib \ + --includedir=$(STAGING_DIR_HOST)/include \ + --static -define Host/Clean - rm -f $(STAGING_DIR_HOST)/lib/libz.a - rm -f $(STAGING_DIR_HOST)/include/zconf.h - rm -f $(STAGING_DIR_HOST)/include/zlib.h - rm -f $(STAGING_DIR_HOST)/lib/pkgconfig//zlib.pc +define Host/Uninstall + -$(call Host/Compile/Default,uninstall) endef $(eval $(call HostBuild)) |