# # Copyright 2026 Zygaena Project # # Hammerhead: libxml2 2.13.5 autotools wrapper # include ../../Makefile.master unexport LD_ALTEXEC CONTRIBDIR = $(CONTRIB)/libxml2 BUILDDIR = $(CURDIR)/build CC = $(GNUC_ROOT)/bin/gcc CONFIGURE_FLAGS = \ --prefix=/usr \ --libdir=/usr/lib \ --includedir=/usr/include \ --without-python \ --without-lzma \ --without-zlib \ --without-icu \ --without-http \ --without-ftp \ --without-legacy \ --without-history \ --without-readline \ --disable-static \ --enable-shared CONFIGURE_ENV = \ CC="$(CC)" \ CFLAGS="-m64 -O2" \ LDFLAGS="-m64" all: $(BUILDDIR)/Makefile $(MAKE) -C $(BUILDDIR) -j4 $(BUILDDIR)/Makefile: $(CONTRIBDIR)/configure mkdir -p $(BUILDDIR) cd $(BUILDDIR) && $(CONFIGURE_ENV) $(CONTRIBDIR)/configure \ --build=x86_64-pc-solaris2.11 --host=x86_64-pc-solaris2.11 \ --disable-maintainer-mode \ $(CONFIGURE_FLAGS) install: all DESTDIR=$(ROOT) $(MAKE) -C $(BUILDDIR) install clean: $(RM) -r $(BUILDDIR) clobber: clean install_h: .PHONY: all install clean clobber install_h