diff options
Diffstat (limited to 'tools/depends/target/zlib/Makefile')
-rw-r--r-- | tools/depends/target/zlib/Makefile | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/tools/depends/target/zlib/Makefile b/tools/depends/target/zlib/Makefile index 9e0b5e7bb5..b7f6d41e6e 100644 --- a/tools/depends/target/zlib/Makefile +++ b/tools/depends/target/zlib/Makefile @@ -1,38 +1,32 @@ -include ../../Makefile.include -DEPS = ../../Makefile.include Makefile visibility.patch remove_fixe_ar_osx.patch ../../download-files.include - -# lib name, version -LIBNAME=zlib -VERSION=1.2.11 -SOURCE=$(LIBNAME)-$(VERSION) -ARCHIVE=$(SOURCE).tar.gz -SHA512=73fd3fff4adeccd4894084c15ddac89890cd10ef105dd5e1835e1e9bbb6a49ff229713bd197d203edfa17c2727700fce65a2a235f07568212d820dca88b528ae -include ../../download-files.include +include ../../Makefile.include ZLIB-VERSION ../../download-files.include +DEPS = ../../Makefile.include Makefile ZLIB-VERSION ../../download-files.include \ + 01-all-disable_tests.patch \ + 02-all-static_only.patch # configuration settings -CONFIGURE= RANLIB="$(RANLIB)" LD="$(LD)" AR="$(AR)" CC="$(CC)" CFLAGS="$(CFLAGS)" ./configure --prefix=$(PREFIX) --static +CMAKE_OPTIONS=-DCMAKE_INSTALL_PREFIX=$(PREFIX) \ + -DINSTALL_PKGCONFIG_DIR=$(PREFIX)/lib/pkgconfig -LIBDYLIB=$(PLATFORM)/$(LIBNAME).a +LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT) all: .installed-$(PLATFORM) $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS) - rm -rf $(PLATFORM); mkdir -p $(PLATFORM) + rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) - cd $(PLATFORM); patch -p1 -i ../visibility.patch - cd $(PLATFORM); patch -p1 -i ../remove_fixe_ar_osx.patch - cd $(PLATFORM); $(CONFIGURE) + cd $(PLATFORM); patch -p1 -i ../01-all-disable_tests.patch + cd $(PLATFORM); patch -p1 -i ../02-all-static_only.patch + cd $(PLATFORM)/build; $(CMAKE) $(CMAKE_OPTIONS) .. $(LIBDYLIB): $(PLATFORM) - $(MAKE) -C $(PLATFORM) + $(MAKE) -C $(PLATFORM)/build .installed-$(PLATFORM): $(LIBDYLIB) - $(MAKE) -C $(PLATFORM) install - touch $(LIBDYLIB) + $(MAKE) -C $(PLATFORM)/build install touch $@ clean: - $(MAKE) -C $(PLATFORM) clean + $(MAKE) -C $(PLATFORM)/build clean rm -f .installed-$(PLATFORM) distclean:: |