# # Copyright 2026 Zygaena Project # # Hammerhead: rsync 3.4.1 autotools wrapper # Installs to /usr/bin (system utility, required by Coral package manager) # include ../Makefile.cmd unexport LD_ALTEXEC unexport VERSION CONTRIBDIR = $(CONTRIB)/rsync BUILDDIR = $(CURDIR)/build CC = $(GNUC_ROOT)/bin/gcc CONFIGURE = $(CONTRIBDIR)/configure.sh CONFIGURE_FLAGS = \ --build=x86_64-pc-solaris2.11 \ --host=x86_64-pc-solaris2.11 \ --prefix=/usr \ --bindir=/usr/bin \ --mandir=/usr/share/man \ --with-included-popt \ --with-included-zlib \ --disable-openssl \ --disable-xxhash \ --disable-zstd \ --disable-lz4 \ --disable-acl-support \ --disable-xattr-support \ --disable-md2man \ --disable-debug \ --disable-locale CONFIGURE_ENV = \ CC="$(CC)" \ CFLAGS="-m64 -O2" \ LDFLAGS="-m64" all: $(BUILDDIR)/Makefile $(MAKE) -C $(BUILDDIR) -j4 $(BUILDDIR)/Makefile: $(CONFIGURE) mkdir -p $(BUILDDIR) cd $(BUILDDIR) && $(CONFIGURE_ENV) $(CONFIGURE) --srcdir=$(CONTRIBDIR) $(CONFIGURE_FLAGS) @# Remove autotools regen rules from generated Makefile — we consume a @# fixed release tarball and never modify configure.ac or m4 macros sed -i '/^aclocal\.m4:/,/^$$/d; /^configure\.sh config\.h\.in:/,/^$$/d' \ $(BUILDDIR)/Makefile install: all DESTDIR=$(ROOT) $(MAKE) -C $(BUILDDIR) install clean: $(RM) -r $(BUILDDIR) clobber: clean _msg: .PHONY: all install clean clobber _msg