2003-02-12 11:40:28 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# bison
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
BISON_VERSION:=2.3
|
|
|
|
BISON_SOURCE:=bison-$(BISON_VERSION).tar.bz2
|
2008-03-26 04:28:09 +01:00
|
|
|
BISON_SITE:=$(BR2_GNU_MIRROR)/bison
|
2007-07-11 16:06:06 +02:00
|
|
|
BISON_DIR:=$(BUILD_DIR)/bison-$(BISON_VERSION)
|
2006-11-17 16:43:51 +01:00
|
|
|
BISON_CAT:=$(BZCAT)
|
2003-02-12 11:40:28 +01:00
|
|
|
BISON_BINARY:=src/bison
|
|
|
|
BISON_TARGET_BINARY:=usr/bin/bison
|
|
|
|
|
|
|
|
$(DL_DIR)/$(BISON_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(BISON_SITE),$(BISON_SOURCE))
|
2003-02-12 11:40:28 +01:00
|
|
|
|
|
|
|
bison-source: $(DL_DIR)/$(BISON_SOURCE)
|
|
|
|
|
|
|
|
$(BISON_DIR)/.unpacked: $(DL_DIR)/$(BISON_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(BISON_CAT) $(DL_DIR)/$(BISON_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-03-07 15:32:22 +01:00
|
|
|
$(CONFIG_UPDATE) $(BISON_DIR)/build-aux
|
2007-09-17 14:30:31 +02:00
|
|
|
touch $@
|
2003-02-12 11:40:28 +01:00
|
|
|
|
|
|
|
$(BISON_DIR)/.configured: $(BISON_DIR)/.unpacked
|
|
|
|
(cd $(BISON_DIR); rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2003-09-03 09:18:18 +02:00
|
|
|
gt_cv_func_gnugettext2_libintl=yes \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2003-02-12 11:40:28 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
2003-03-04 20:16:19 +01:00
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2003-02-12 11:40:28 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2003-02-12 11:40:28 +01:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
2007-09-17 14:30:31 +02:00
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--includedir=/usr/include \
|
2003-09-03 09:18:18 +02:00
|
|
|
$(DISABLE_NLS) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2005-09-22 08:45:10 +02:00
|
|
|
echo 'all install:' > $(BISON_DIR)/examples/Makefile
|
2007-09-17 14:30:31 +02:00
|
|
|
touch $@
|
2003-02-12 11:40:28 +01:00
|
|
|
|
|
|
|
$(BISON_DIR)/$(BISON_BINARY): $(BISON_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(BISON_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(BISON_TARGET_BINARY): $(BISON_DIR)/$(BISON_BINARY)
|
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BISON_DIR) install
|
2007-09-17 14:30:31 +02:00
|
|
|
rm -rf $(TARGET_DIR)/share/locale
|
2004-10-09 04:49:33 +02:00
|
|
|
cp -a package/bison/yacc $(TARGET_DIR)/usr/bin/yacc
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
bison: $(TARGET_DIR)/$(BISON_TARGET_BINARY)
|
2003-02-12 11:40:28 +01:00
|
|
|
|
|
|
|
bison-clean:
|
2007-06-28 16:07:13 +02:00
|
|
|
-$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BISON_DIR) uninstall
|
|
|
|
rm -f $(TARGET_DIR)/$(BISON_TARGET_BINARY)
|
2003-02-12 11:40:28 +01:00
|
|
|
-$(MAKE) -C $(BISON_DIR) clean
|
|
|
|
|
|
|
|
bison-dirclean:
|
|
|
|
rm -rf $(BISON_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BISON),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=bison
|
|
|
|
endif
|