1 #############################################################
5 #############################################################
7 RSYNC_SOURCE
:=rsync-
$(RSYNC_VER
).
tar.gz
8 RSYNC_SITE
:=http
://rsync.samba.org
/ftp
/rsync
/
9 RSYNC_DIR
:=$(BUILD_DIR
)/rsync-
$(RSYNC_VER
)
12 RSYNC_TARGET_BINARY
:=usr
/bin
/rsync
14 $(DL_DIR
)/$(RSYNC_SOURCE
):
15 $(WGET
) -P
$(DL_DIR
) $(RSYNC_SITE
)/$(RSYNC_SOURCE
)
17 $(RSYNC_DIR
)/.unpacked
: $(DL_DIR
)/$(RSYNC_SOURCE
)
18 $(RSYNC_CAT
) $(DL_DIR
)/$(RSYNC_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
19 toolchain
/patch-kernel.sh
$(RSYNC_DIR
) package
/rsync
/ rsync\
*.patch
20 touch
$(RSYNC_DIR
)/.unpacked
22 $(RSYNC_DIR
)/.configured
: $(RSYNC_DIR
)/.unpacked
23 (cd
$(RSYNC_DIR
); rm -rf config.cache
; \
24 $(TARGET_CONFIGURE_OPTS
) CC_FOR_BUILD
=$(HOSTCC
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
27 --target
=$(GNU_TARGET_NAME
) \
28 --host
=$(GNU_TARGET_NAME
) \
29 --build
=$(GNU_HOST_NAME
) \
31 --with-included-popt \
33 touch
$(RSYNC_DIR
)/.configured
35 $(RSYNC_DIR
)/$(RSYNC_BINARY
): $(RSYNC_DIR
)/.configured
36 $(TARGET_CONFIGURE_OPTS
) $(MAKE
) CC
=$(TARGET_CC
) -C
$(RSYNC_DIR
)
38 $(TARGET_DIR
)/$(RSYNC_TARGET_BINARY
): $(RSYNC_DIR
)/$(RSYNC_BINARY
)
39 install -D
$(RSYNC_DIR
)/$(RSYNC_BINARY
) $(TARGET_DIR
)/$(RSYNC_TARGET_BINARY
)
41 rsync
: uclibc
$(TARGET_DIR
)/$(RSYNC_TARGET_BINARY
)
44 rm -f
$(TARGET_DIR
)/$(RSYNC_TARGET_BINARY
)
45 -$(MAKE
) -C
$(RSYNC_DIR
) clean
49 #############################################################
51 # Toplevel Makefile options
53 #############################################################
54 ifeq ($(strip $(BR2_PACKAGE_RSYNC
)),y
)