diff options
Diffstat (limited to 'tools/depends/native/pugixml/Makefile')
-rw-r--r-- | tools/depends/native/pugixml/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tools/depends/native/pugixml/Makefile b/tools/depends/native/pugixml/Makefile new file mode 100644 index 0000000..03ef707 --- /dev/null +++ b/tools/depends/native/pugixml/Makefile @@ -0,0 +1,43 @@ +include ../../Makefile.include +PREFIX=$(NATIVEPREFIX) +PLATFORM=$(NATIVEPLATFORM) +DEPS =../../Makefile.include Makefile ../../download-files.include + +# lib name, version +LIBNAME=pugixml +VERSION=1.10 +SOURCE=$(LIBNAME)-$(VERSION) +ARCHIVE=$(SOURCE).tar.gz +SHA512=bfc80661005d0a0fb82ca6d5299e5efdd1bb468e11ee52d7ee9367e15776d28efb60266ce03842715cd43aae023afc2b369797bb3cbecd6d6a65c3ae3903e469 +include ../../download-files.include + +LIBDYLIB=$(PLATFORM)/build/libpugixml.a + +CMAKE_OPTIONS := -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_PREFIX=$(NATIVEPREFIX) \ + $(CMAKE_OPTIONS) + +BUILDDIR = $(PLATFORM)/build + +all: .installed-$(PLATFORM) + + +$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) + rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) + cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) + mkdir -p $(BUILDDIR) + cd $(BUILDDIR); $(NATIVEPREFIX)/bin/cmake $(CMAKE_OPTIONS) .. + +$(LIBDYLIB): $(PLATFORM) + $(MAKE) -C $(BUILDDIR) + +.installed-$(PLATFORM): $(LIBDYLIB) + $(MAKE) -C $(BUILDDIR) install + touch $@ + +clean: + $(MAKE) -C $(BUILDDIR) clean + rm -f .installed-$(PLATFORM) + +distclean: + rm -rf $(PLATFORM) .installed-$(PLATFORM) |