aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/expat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/depends/target/expat/Makefile')
-rw-r--r--tools/depends/target/expat/Makefile27
1 files changed, 13 insertions, 14 deletions
diff --git a/tools/depends/target/expat/Makefile b/tools/depends/target/expat/Makefile
index 4e0ee9d875..a36631b05a 100644
--- a/tools/depends/target/expat/Makefile
+++ b/tools/depends/target/expat/Makefile
@@ -2,33 +2,32 @@ include ../../Makefile.include EXPAT-VERSION ../../download-files.include
DEPS= ../../Makefile.include Makefile EXPAT-VERSION ../../download-files.include
# configuration settings
-CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) ./conftools; \
- ./configure --prefix=$(PREFIX) \
- --disable-shared \
- --without-examples \
- --without-tests \
- --without-xmlwf \
- --without-docbook
+CMAKE_OPTIONS=-DEXPAT_BUILD_TOOLS=OFF \
+ -DEXPAT_BUILD_EXAMPLES=OFF \
+ -DEXPAT_BUILD_TESTS=OFF \
+ -DEXPAT_SHARED_LIBS=OFF \
+ -DEXPAT_BUILD_DOCS=OFF \
+ -DEXPAT_BUILD_PKGCONFIG=ON
-LIBDYLIB=$(PLATFORM)/lib/.libs/lib$(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)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
- cd $(PLATFORM); $(CONFIGURE)
+ cd $(PLATFORM); mkdir -p build
+ cd $(PLATFORM)/build; $(CMAKE) $(CMAKE_OPTIONS) ..
$(LIBDYLIB): $(PLATFORM)
- $(MAKE) -C $(PLATFORM)
+ $(MAKE) -C $(PLATFORM)/build
.installed-$(PLATFORM): $(LIBDYLIB)
- $(MAKE) -C $(PLATFORM) install
+ $(MAKE) -C $(PLATFORM)/build install
touch $@
clean:
- $(MAKE) -C $(PLATFORM) clean
+ $(MAKE) -C $(PLATFORM)/build clean
rm -f .installed-$(PLATFORM)
distclean::