fix uClibc strip
[openwrt.git] / obsolete-buildroot / make / bison.mk
1 #############################################################
2 #
3 # bison
4 #
5 #############################################################
6 BISON_SOURCE:=bison-1.35.tar.bz2
7 BISON_SITE:=ftp://ftp.gnu.org/gnu/bison
8 BISON_DIR:=$(BUILD_DIR)/bison-1.35
9 BISON_CAT:=bzcat
10 BISON_BINARY:=src/bison
11 BISON_TARGET_BINARY:=usr/bin/bison
12
13 $(DL_DIR)/$(BISON_SOURCE):
14 $(WGET) -P $(DL_DIR) $(BISON_SITE)/$(BISON_SOURCE)
15
16 bison-source: $(DL_DIR)/$(BISON_SOURCE)
17
18 $(BISON_DIR)/.unpacked: $(DL_DIR)/$(BISON_SOURCE)
19 $(BISON_CAT) $(DL_DIR)/$(BISON_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 touch $(BISON_DIR)/.unpacked
21
22 $(BISON_DIR)/.configured: $(BISON_DIR)/.unpacked
23 (cd $(BISON_DIR); rm -rf config.cache; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 gt_cv_func_gnugettext2_libintl=yes \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --sbindir=/usr/sbin \
35 --libexecdir=/usr/lib \
36 --sysconfdir=/etc \
37 --datadir=/usr/share \
38 --localstatedir=/var \
39 --mandir=/usr/man \
40 --infodir=/usr/info \
41 $(DISABLE_NLS) \
42 );
43 touch $(BISON_DIR)/.configured
44
45 $(BISON_DIR)/$(BISON_BINARY): $(BISON_DIR)/.configured
46 $(MAKE) CC=$(TARGET_CC) -C $(BISON_DIR)
47
48 $(TARGET_DIR)/$(BISON_TARGET_BINARY): $(BISON_DIR)/$(BISON_BINARY)
49 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BISON_DIR) install
50 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
51 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
52 cp -a $(SOURCE_DIR)/yacc $(TARGET_DIR)/usr/bin/yacc
53
54 bison: uclibc $(TARGET_DIR)/$(BISON_TARGET_BINARY)
55
56 bison-clean:
57 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BISON_DIR) uninstall
58 -$(MAKE) -C $(BISON_DIR) clean
59
60 bison-dirclean:
61 rm -rf $(BISON_DIR)
62
This page took 0.043966 seconds and 5 git commands to generate.