add oleg's fix for ethtool
[openwrt.git] / obsolete-buildroot / make / autoconf.mk
1 #############################################################
2 #
3 # autoconf
4 #
5 #############################################################
6 AUTOCONF_SOURCE:=autoconf-2.57.tar.bz2
7 AUTOCONF_SITE:=ftp://ftp.gnu.org/gnu/autoconf
8 AUTOCONF_CAT:=bzcat
9 AUTOCONF_DIR:=$(BUILD_DIR)/autoconf-2.57
10 AUTOCONF_BINARY:=autoconf
11 AUTOCONF_TARGET_BINARY:=usr/bin/autoconf
12
13 $(DL_DIR)/$(AUTOCONF_SOURCE):
14 $(WGET) -P $(DL_DIR) $(AUTOCONF_SITE)/$(AUTOCONF_SOURCE)
15
16 autoconf-source: $(DL_DIR)/$(AUTOCONF_SOURCE)
17
18 $(AUTOCONF_DIR)/.unpacked: $(DL_DIR)/$(AUTOCONF_SOURCE)
19 $(AUTOCONF_CAT) $(DL_DIR)/$(AUTOCONF_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 touch $(AUTOCONF_DIR)/.unpacked
21
22 $(AUTOCONF_DIR)/.configured: $(AUTOCONF_DIR)/.unpacked
23 (cd $(AUTOCONF_DIR); rm -rf config.cache; \
24 $(TARGET_CONFIGURE_OPTS) EMACS="no" \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --prefix=/usr \
31 --exec-prefix=/usr \
32 --bindir=/usr/bin \
33 --sbindir=/usr/sbin \
34 --libexecdir=/usr/lib \
35 --sysconfdir=/etc \
36 --datadir=/usr/share \
37 --localstatedir=/var \
38 --mandir=/usr/man \
39 --infodir=/usr/info \
40 );
41 touch $(AUTOCONF_DIR)/.configured
42
43 $(AUTOCONF_DIR)/bin/$(AUTOCONF_BINARY): $(AUTOCONF_DIR)/.configured
44 $(MAKE) CC=$(TARGET_CC) -C $(AUTOCONF_DIR)
45
46 $(TARGET_DIR)/$(AUTOCONF_TARGET_BINARY): $(AUTOCONF_DIR)/bin/$(AUTOCONF_BINARY)
47 $(MAKE) \
48 prefix=$(TARGET_DIR)/usr \
49 exec_prefix=$(TARGET_DIR)/usr \
50 bindir=$(TARGET_DIR)/usr/bin \
51 sbindir=$(TARGET_DIR)/usr/sbin \
52 libexecdir=$(TARGET_DIR)/usr/lib \
53 datadir=$(TARGET_DIR)/usr/share \
54 sysconfdir=$(TARGET_DIR)/etc \
55 localstatedir=$(TARGET_DIR)/var \
56 libdir=$(TARGET_DIR)/usr/lib \
57 infodir=$(TARGET_DIR)/usr/info \
58 mandir=$(TARGET_DIR)/usr/man \
59 includedir=$(TARGET_DIR)/usr/include \
60 -C $(AUTOCONF_DIR) install;
61 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
62 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
63
64 autoconf: uclibc $(TARGET_DIR)/$(AUTOCONF_TARGET_BINARY)
65
66 autoconf-clean:
67 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(AUTOCONF_DIR) uninstall
68 -$(MAKE) -C $(AUTOCONF_DIR) clean
69
70 autoconf-dirclean:
71 rm -rf $(AUTOCONF_DIR)
72
This page took 0.04941 seconds and 5 git commands to generate.