diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2009-11-06 19:17:10 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2009-12-15 19:57:39 +0100 |
commit | adc8542d95c5cd6bbc02fcf1da0bb82e940e796c (patch) | |
tree | 66ef94461ed9b5d59e650ae98fd704541305adbe /package | |
parent | e99f7cacef6becaabed74c07bfe5a05f52830ddb (diff) | |
download | buildroot-novena-adc8542d95c5cd6bbc02fcf1da0bb82e940e796c.tar.gz buildroot-novena-adc8542d95c5cd6bbc02fcf1da0bb82e940e796c.zip |
m4: convert to autotools infrastructure for host package
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/m4/m4.mk | 46 |
1 files changed, 3 insertions, 43 deletions
diff --git a/package/m4/m4.mk b/package/m4/m4.mk index b7721859c..a0b56c42a 100644 --- a/package/m4/m4.mk +++ b/package/m4/m4.mk @@ -17,47 +17,7 @@ ifneq ($(BR2_USE_WCHAR),y) M4_CONF_ENV += gt_cv_c_wchar_t=no gl_cv_absolute_wchar_h=__fpending.h endif -$(eval $(call AUTOTARGETS,package,m4)) - -# m4 for the host -M4_HOST_DIR:=$(BUILD_DIR)/m4-$(M4_VERSION)-host - -$(DL_DIR)/$(M4_SOURCE): - $(call DOWNLOAD,$(M4_SITE),$(M4_SOURCE)) - -$(STAMP_DIR)/host_m4_unpacked: $(DL_DIR)/$(M4_SOURCE) - mkdir -p $(M4_HOST_DIR) - $(INFLATE$(suffix $(M4_SOURCE))) $< | \ - $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(M4_HOST_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(M4_HOST_DIR) package/m4/ \*.patch - touch $@ - -$(STAMP_DIR)/host_m4_configured: $(STAMP_DIR)/host_m4_unpacked - (cd $(M4_HOST_DIR); rm -rf config.cache; \ - $(HOST_CONFIGURE_OPTS) \ - CFLAGS="$(HOST_CFLAGS)" \ - LDFLAGS="$(HOST_LDFLAGS)" \ - ./configure $(QUIET) \ - --prefix="$(HOST_DIR)/usr" \ - --sysconfdir="$(HOST_DIR)/etc" \ - --disable-static \ - ) - touch $@ +HOST_M4_CONF_OPT = --disable-static -$(STAMP_DIR)/host_m4_compiled: $(STAMP_DIR)/host_m4_configured - $(MAKE) -C $(M4_HOST_DIR) - touch $@ - -$(STAMP_DIR)/host_m4_installed: $(STAMP_DIR)/host_m4_compiled - $(MAKE) -C $(M4_HOST_DIR) install - touch $@ - -host-m4: $(STAMP_DIR)/host_m4_installed - -host-m4-clean: - rm -f $(addprefix $(STAMP_DIR)/host_m4_,unpacked configured compiled installed) - -$(MAKE) -C $(M4_HOST_DIR) uninstall - -$(MAKE) -C $(M4_HOST_DIR) clean - -host-m4-dirclean: - rm -rf $(M4_HOST_DIR) +$(eval $(call AUTOTARGETS,package,m4)) +$(eval $(call AUTOTARGETS,package,m4,host)) |