1 #############################################################
5 #############################################################
7 DISTCC_SOURCE
:=distcc-
$(DISTCC_VER
).
tar.bz2
8 DISTCC_SITE
:=http
://distcc.samba.org
/ftp
/distcc
/
9 DISTCC_DIR
:=$(BUILD_DIR
)/distcc-
$(DISTCC_VER
)
11 DISTCC_TARGET_BINARY
:=usr
/bin
/distcc
13 $(DL_DIR
)/$(DISTCC_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(DISTCC_SITE
)/$(DISTCC_SOURCE
)
16 $(DISTCC_DIR
)/.unpacked
: $(DL_DIR
)/$(DISTCC_SOURCE
)
17 bzcat
$(DL_DIR
)/$(DISTCC_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
18 touch
$(DISTCC_DIR
)/.unpacked
20 $(DISTCC_DIR
)/.configured
: $(DISTCC_DIR
)/.unpacked
21 (cd
$(DISTCC_DIR
); rm -rf config.cache
; \
22 $(TARGET_CONFIGURE_OPTS
) CC_FOR_BUILD
=$(HOSTCC
) \
23 CFLAGS
="$(TARGET_CFLAGS)" \
25 --target
=$(GNU_TARGET_NAME
) \
26 --host
=$(GNU_TARGET_NAME
) \
27 --build
=$(GNU_HOST_NAME
) \
31 --libexecdir
=/usr
/lib \
33 --datadir=/usr
/share \
34 --localstatedir
=/var \
37 --with-included-popt \
41 touch
$(DISTCC_DIR
)/.configured
43 $(DISTCC_DIR
)/$(DISTCC_BINARY
): $(DISTCC_DIR
)/.configured
44 $(TARGET_CONFIGURE_OPTS
) $(MAKE
) CC
=$(TARGET_CC
) -C
$(DISTCC_DIR
)
46 $(TARGET_DIR
)/$(DISTCC_TARGET_BINARY
): $(DISTCC_DIR
)/$(DISTCC_BINARY
)
47 install -D
$(DISTCC_DIR
)/$(DISTCC_BINARY
)d
$(TARGET_DIR
)/$(DISTCC_TARGET_BINARY
)d
48 install -D
$(DISTCC_DIR
)/$(DISTCC_BINARY
) $(TARGET_DIR
)/$(DISTCC_TARGET_BINARY
)
50 distcc
: uclibc
$(TARGET_DIR
)/$(DISTCC_TARGET_BINARY
)
53 rm -f
$(TARGET_DIR
)/$(DISTCC_TARGET_BINARY
)
54 rm -f
$(TARGET_DIR
)/$(DISTCC_TARGET_BINARY
)d
55 -$(MAKE
) -C
$(DISTCC_DIR
) clean
59 #############################################################
61 # Toplevel Makefile options
63 #############################################################
64 ifeq ($(strip $(BR2_PACKAGE_DISTCC
)),y
)