|
root / base / usr / src / cmd / rsync
rsync Plain Text 65 lines 1.4 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# 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