diff options
34 files changed, 267 insertions, 1082 deletions
@@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.4 2003/05/13 11:40:10 robert Exp $ +# $Id: Makefile,v 1.5 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Robert Schwebel <r.schwebel@pengutronix.de> # (c) 2002 by Jochen Striepe <ptxdist@tolot.escape.de> @@ -34,6 +34,7 @@ export TAR TOPDIR BUILDDIR ROOTDIR SRCDIR PTXSRCDIR STATEDIR PACKAGES all: help -include .config + include $(wildcard rules/*.make) # install targets @@ -75,7 +76,17 @@ prepare: $(PACKAGES_PREPARE) compile: $(PACKAGES_COMPILE) install: $(PACKAGES_INSTALL) -world: $(PACKAGES_TARGETINSTALL) +dep_output_clean: + if [ -e $(DEP_OUTPUT) ]; then rm -f $(DEP_OUTPUT); fi + touch $(DEP_OUTPUT) + +dep_tree: + scripts/makedeptree $(DEP_OUTPUT) | $(DOT) -Tps > $(DEP_TREE_PS) + +dep_world: $(PACKAGES_TARGETINSTALL) + echo $@ : $^ | sed -e "s/_/./g" >> $(DEP_OUTPUT) + +world: dep_output_clean dep_world dep_tree # menuconfig: # CONFIGDIR=$(TOPDIR)/config make -C config/config_system menuconfig @@ -129,6 +140,9 @@ clean: rootclean @echo -n "cleaning bootdisk dir............ " @for i in $$(ls -I CVS $(BOOTDISKDIR)); do echo -n $$i' '; rm -rf $(BOOTDISKDIR)/"$$i"; done @echo "done." + @echo -n "cleaning dependency tree ........ " + @rm -f $(DEP_OUTPUT) $(DEP_TREE_PS) + @echo "done." @echo rootclean: @@ -157,4 +171,5 @@ archive: $(INSTALL_LOG): make -C $(TOPDIR)/tools/install-log-1.9 +.PHONY: dep_output_clean dep_tree dep_world # vim600:set foldmethod=marker: diff --git a/rules/Rules.make b/rules/Rules.make index a2fe9c1d1..de4dc232c 100644 --- a/rules/Rules.make +++ b/rules/Rules.make @@ -5,6 +5,9 @@ PTXUSER = $(shell echo $$USER) GNU_HOST = $(shell uname -m)-linux HOSTCC = gcc CROSSSTRIP = $(PTXCONF_PREFIX)/bin/$(PTXCONF_GNU_TARGET)-strip +DOT = dot +DEP_OUTPUT = depend.out +DEP_TREE_PS = deptree.ps # # some convenience functions @@ -12,6 +15,13 @@ CROSSSTRIP = $(PTXCONF_PREFIX)/bin/$(PTXCONF_GNU_TARGET)-strip # FIXME: missing +targetinfo=echo ; \ +echo `echo target: $(1) |sed -e "s/./-/g"` ; \ +echo target: $(1) ; \ +echo `echo target: $(1) |sed -e "s/./-/g"` ; \ +echo ; \ +echo $@ : $^ | sed -e "s@$(TOPDIR)@@g" -e "s@/src/@@g" -e "s@/state/@@g" >> $(DEP_OUTPUT) + # vim: syntax=make diff --git a/rules/autoconf-2.13.make b/rules/autoconf-2.13.make index 6113fe9bb..f798d7b13 100644 --- a/rules/autoconf-2.13.make +++ b/rules/autoconf-2.13.make @@ -1,4 +1,4 @@ -# $Id: autoconf-2.13.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: autoconf-2.13.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -28,14 +28,10 @@ AUTOCONF213_EXTRACT = gzip -dc autoconf213_get: $(STATEDIR)/autoconf213.get $(STATEDIR)/autoconf213.get: $(AUTOCONF213_SOURCE) + @$(call targetinfo, autoconf213.get) touch $@ $(AUTOCONF213_SOURCE): - @echo - @echo ----------------------- - @echo target: autoconf213.get - @echo ----------------------- - @echo wget -P $(SRCDIR) $(PASSIVEFTP) $(AUTOCONF213_URL) # ---------------------------------------------------------------------------- @@ -45,11 +41,7 @@ $(AUTOCONF213_SOURCE): autoconf213_extract: $(STATEDIR)/autoconf213.extract $(STATEDIR)/autoconf213.extract: $(STATEDIR)/autoconf213.get - @echo - @echo --------------------------- - @echo target: autoconf213.extract - @echo --------------------------- - @echo + @$(call targetinfo, autoconf213.extract) $(AUTOCONF213_EXTRACT) $(AUTOCONF213_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -60,11 +52,7 @@ $(STATEDIR)/autoconf213.extract: $(STATEDIR)/autoconf213.get autoconf213_prepare: $(STATEDIR)/autoconf213.prepare $(STATEDIR)/autoconf213.prepare: $(STATEDIR)/autoconf213.extract - @echo - @echo --------------------------- - @echo target: autoconf213.prepare - @echo --------------------------- - @echo + @$(call targetinfo, autoconf213.prepare) cd $(AUTOCONF213_DIR) && \ CFLAGS=$(CFLAGS) ./configure --prefix=$(PTXCONF_PREFIX)/$(AUTOCONF213) touch $@ @@ -76,11 +64,7 @@ $(STATEDIR)/autoconf213.prepare: $(STATEDIR)/autoconf213.extract autoconf213_compile: $(STATEDIR)/autoconf213.compile $(STATEDIR)/autoconf213.compile: $(STATEDIR)/autoconf213.prepare - @echo - @echo ------------------- - @echo target: autoconf213.compile - @echo ------------------- - @echo + @$(call targetinfo, autoconf213.compile) make -C $(AUTOCONF213_DIR) $(MAKEPARMS) touch $@ @@ -91,11 +75,7 @@ $(STATEDIR)/autoconf213.compile: $(STATEDIR)/autoconf213.prepare autoconf213_install: $(STATEDIR)/autoconf213.install $(STATEDIR)/autoconf213.install: $(STATEDIR)/autoconf213.compile - @echo - @echo ------------------- - @echo target: autoconf213.install - @echo ------------------- - @echo + @$(call targetinfo, autoconf213.install) make -C $(AUTOCONF213_DIR) install touch $@ @@ -106,11 +86,7 @@ $(STATEDIR)/autoconf213.install: $(STATEDIR)/autoconf213.compile autoconf213_targetinstall: $(STATEDIR)/autoconf213.targetinstall $(STATEDIR)/autoconf213.targetinstall: $(STATEDIR)/autoconf213.install - @echo - @echo ------------------------- - @echo target: autoconf213.targetinstall - @echo ------------------------- - @echo + @$(call targetinfo, autoconf213.targetinstall) touch $@ # ---------------------------------------------------------------------------- diff --git a/rules/autoconf-2.57.make b/rules/autoconf-2.57.make index 65e2497dc..4edb64f64 100644 --- a/rules/autoconf-2.57.make +++ b/rules/autoconf-2.57.make @@ -1,4 +1,4 @@ -# $Id: autoconf-2.57.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: autoconf-2.57.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -31,11 +31,7 @@ $(STATEDIR)/autoconf257.get: $(AUTOCONF257_SOURCE) touch $@ $(AUTOCONF257_SOURCE): - @echo - @echo ----------------------- - @echo target: autoconf257.get - @echo ----------------------- - @echo + @$(call targetinfo, autoconf257.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(AUTOCONF257_URL) # ---------------------------------------------------------------------------- @@ -45,11 +41,7 @@ $(AUTOCONF257_SOURCE): autoconf257_extract: $(STATEDIR)/autoconf257.extract $(STATEDIR)/autoconf257.extract: $(STATEDIR)/autoconf257.get - @echo - @echo --------------------------- - @echo target: autoconf257.extract - @echo --------------------------- - @echo + @$(call targetinfo, autoconf257.extract) $(AUTOCONF257_EXTRACT) $(AUTOCONF257_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -60,11 +52,7 @@ $(STATEDIR)/autoconf257.extract: $(STATEDIR)/autoconf257.get autoconf257_prepare: $(STATEDIR)/autoconf257.prepare $(STATEDIR)/autoconf257.prepare: $(STATEDIR)/autoconf257.extract - @echo - @echo --------------------------- - @echo target: autoconf257.prepare - @echo --------------------------- - @echo + @$(call targetinfo, autoconf257.prepare) cd $(AUTOCONF257_DIR) && \ CFLAGS=$(CFLAGS) ./configure --prefix=$(PTXCONF_PREFIX)/$(AUTOCONF257) touch $@ @@ -76,11 +64,7 @@ $(STATEDIR)/autoconf257.prepare: $(STATEDIR)/autoconf257.extract autoconf257_compile: $(STATEDIR)/autoconf257.compile $(STATEDIR)/autoconf257.compile: $(STATEDIR)/autoconf257.prepare - @echo - @echo --------------------------- - @echo target: autoconf257.compile - @echo --------------------------- - @echo + @$(call targetinfo, autoconf257.compile) make -C $(AUTOCONF257_DIR) $(MAKEPARMS) touch $@ @@ -91,11 +75,7 @@ $(STATEDIR)/autoconf257.compile: $(STATEDIR)/autoconf257.prepare autoconf257_install: $(STATEDIR)/autoconf257.install $(STATEDIR)/autoconf257.install: $(STATEDIR)/autoconf257.compile - @echo - @echo --------------------------- - @echo target: autoconf257.install - @echo --------------------------- - @echo + @$(call targetinfo, autoconf257.install) make -C $(AUTOCONF257_DIR) install touch $@ @@ -106,11 +86,7 @@ $(STATEDIR)/autoconf257.install: $(STATEDIR)/autoconf257.compile autoconf257_targetinstall: $(STATEDIR)/autoconf257.targetinstall $(STATEDIR)/autoconf257.targetinstall: $(STATEDIR)/autoconf257.install - @echo - @echo --------------------------------- - @echo target: autoconf257.targetinstall - @echo --------------------------------- - @echo + @$(call targetinfo, autoconf257.targetinstall) touch $@ # ---------------------------------------------------------------------------- diff --git a/rules/bash.make b/rules/bash.make index e3fb93de0..8b618dd3b 100644 --- a/rules/bash.make +++ b/rules/bash.make @@ -1,5 +1,5 @@ # -*-makefile-*- -# $Id: bash.make,v 1.2 2003/05/13 11:46:42 robert Exp $ +# $Id: bash.make,v 1.3 2003/06/16 12:05:16 bsp Exp $ # # (c) 2003 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -34,11 +34,7 @@ $(STATEDIR)/bash.get: $(BASH_SOURCE) touch $@ $(BASH_SOURCE): - @echo - @echo ---------------- - @echo target: bash.get - @echo ---------------- - @echo + @$(call targetinfo, bash.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(BASH_URL) # ---------------------------------------------------------------------------- @@ -48,11 +44,7 @@ $(BASH_SOURCE): bash_extract: $(STATEDIR)/bash.extract $(STATEDIR)/bash.extract: $(STATEDIR)/bash.get - @echo - @echo -------------------- - @echo target: bash.extract - @echo -------------------- - @echo + @$(call targetinfo, bash.extract) $(BASH_EXTRACT) $(BASH_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -205,11 +197,7 @@ endif $(STATEDIR)/bash.prepare: $(bash_prepare_deps) - @echo - @echo -------------------- - @echo target: bash.prepare - @echo -------------------- - @echo + @$(call targetinfo, bash.prepare) mkdir -p $(BUILDDIR)/$(BASH) cd $(BUILDDIR)/$(BASH) && \ $(BASH_ENVIRONMENT) \ @@ -223,11 +211,7 @@ $(STATEDIR)/bash.prepare: $(bash_prepare_deps) bash_compile: $(STATEDIR)/bash.compile $(STATEDIR)/bash.compile: $(STATEDIR)/bash.prepare - @echo - @echo -------------------- - @echo target: bash.compile - @echo -------------------- - @echo + @$(call targetinfo, bash.compile) make -C $(BASH_DIR) $(MAKEPARMS) touch $@ @@ -238,11 +222,7 @@ $(STATEDIR)/bash.compile: $(STATEDIR)/bash.prepare bash_install: $(STATEDIR)/bash.install $(STATEDIR)/bash.install: $(STATEDIR)/bash.compile - @echo - @echo -------------------- - @echo target: bash.install - @echo -------------------- - @echo + @$(call targetinfo, bash.install) make -C $(BASH_DIR) install touch $@ @@ -253,11 +233,7 @@ $(STATEDIR)/bash.install: $(STATEDIR)/bash.compile bash_targetinstall: $(STATEDIR)/bash.targetinstall $(STATEDIR)/bash.targetinstall: $(STATEDIR)/bash.install - @echo - @echo -------------------------- - @echo target: bash.targetinstall - @echo -------------------------- - @echo + @$(call targetinfo, bash.targetinstall) # don't forget to $(CROSSSTRIP) -S your source! touch $@ diff --git a/rules/bootdisk.make b/rules/bootdisk.make index 4b1c06510..55508cf6c 100644 --- a/rules/bootdisk.make +++ b/rules/bootdisk.make @@ -1,5 +1,5 @@ # -*-makefile-*- -# $Id: bootdisk.make,v 1.2 2003/05/13 11:47:55 robert Exp $ +# $Id: bootdisk.make,v 1.3 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -40,11 +40,7 @@ $(STATEDIR)/bootdisk.get: bootdisk_extract: $(STATEDIR)/bootdisk.extract $(STATEDIR)/bootdisk.extract: $(STATEDIR)/bootdisk.get - @echo - @echo ------------------------ - @echo target: bootdisk.extract - @echo ------------------------ - @echo + @$(call targetinfo, bootdisk.extract) touch $@ # ---------------------------------------------------------------------------- @@ -54,11 +50,7 @@ $(STATEDIR)/bootdisk.extract: $(STATEDIR)/bootdisk.get bootdisk_prepare: $(STATEDIR)/bootdisk.prepare $(STATEDIR)/bootdisk.prepare: $(STATEDIR)/bootdisk.extract - @echo - @echo ------------------------ - @echo target: bootdisk.prepare - @echo ------------------------ - @echo + @$(call targetinfo, bootdisk.prepare) touch $@ # ---------------------------------------------------------------------------- @@ -68,11 +60,7 @@ $(STATEDIR)/bootdisk.prepare: $(STATEDIR)/bootdisk.extract bootdisk_compile: $(STATEDIR)/bootdisk.compile $(STATEDIR)/bootdisk.compile: $(STATEDIR)/bootdisk.prepare - @echo - @echo ------------------------ - @echo target: bootdisk.compile - @echo ------------------------ - @echo + @$(call targetinfo, bootdisk.compile) touch $@ # ---------------------------------------------------------------------------- @@ -82,11 +70,7 @@ $(STATEDIR)/bootdisk.compile: $(STATEDIR)/bootdisk.prepare bootdisk_install: $(STATEDIR)/bootdisk.install $(STATEDIR)/bootdisk.install: $(STATEDIR)/bootdisk.compile - @echo - @echo ------------------------ - @echo target: bootdisk.install - @echo ------------------------ - @echo + @$(call targetinfo, bootdisk.install) touch $@ # ---------------------------------------------------------------------------- @@ -102,11 +86,7 @@ bootdisk_targetinstall_deps += $(STATEDIR)/e2fsprogs.compile bootdisk_targetinstall_deps += $(STATEDIR)/ncurses.compile $(STATEDIR)/bootdisk.targetinstall: $(bootdisk_targetinstall_deps) - @echo - @echo ------------------------------ - @echo target: bootdisk.targetinstall - @echo ------------------------------ - @echo + @$(call targetinfo, bootdisk.targetinstall) ifeq (y, $(PTXCONF_GRUB_BOOTDISK)) mkdir -p $(BOOTDISK_DIR) mkdir -p $(BOOTDISK_DIR)/boot diff --git a/rules/busybox.make b/rules/busybox.make index ea3d4d35e..4567a158e 100644 --- a/rules/busybox.make +++ b/rules/busybox.make @@ -1,5 +1,5 @@ # -*-makefile-*- -# $Id: busybox.make,v 1.2 2003/05/13 11:37:14 robert Exp $ +# $Id: busybox.make,v 1.3 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -36,11 +36,7 @@ $(STATEDIR)/busybox.get: $(busybox_get_deps) touch $@ $(BUSYBOX_SOURCE): - @echo - @echo ------------------- - @echo target: busybox.get - @echo ------------------- - @echo + @$(call targetinfo, busybox.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(BUSYBOX_URL) @exit @@ -51,11 +47,7 @@ $(BUSYBOX_SOURCE): busybox_extract: $(STATEDIR)/busybox.extract $(STATEDIR)/busybox.extract: $(STATEDIR)/busybox.get - @echo - @echo ----------------------- - @echo target: busybox.extract - @echo ----------------------- - @echo + @$(call targetinfo, busybox.extract) $(BUSYBOX_EXTRACT) $(BUSYBOX_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - # # # # fix: turn off debugging in init.c @@ -84,11 +76,7 @@ busybox_prepare_deps += $(STATEDIR)/xchain-gccstage2.install endif $(STATEDIR)/busybox.prepare: $(busybox_prepare_deps) - @echo - @echo ----------------------- - @echo target: busybox.prepare - @echo ----------------------- - @echo + @$(call targetinfo, busybox.prepare) # FIXME: is this necessary? touch $(BUSYBOX_DIR)/busybox.links $(BUSYBOX_ENVIRONMENT) make -C $(BUSYBOX_DIR) distclean $(BUSYBOX_MAKEVARS) @@ -113,11 +101,7 @@ endif busybox_compile: $(STATEDIR)/busybox.compile $(STATEDIR)/busybox.compile: $(busybox_compile_deps) - @echo - @echo ----------------------- - @echo target: busybox.compile - @echo ----------------------- - @echo + @$(call targetinfo, busybox.compile) $(BUSYBOX_ENVIRONMENT) make -C $(BUSYBOX_DIR) $(BUSYBOX_MAKEVARS) touch $@ @@ -128,11 +112,7 @@ $(STATEDIR)/busybox.compile: $(busybox_compile_deps) busybox_install: $(STATEDIR)/busybox.install $(STATEDIR)/busybox.install: $(STATEDIR)/busybox.compile - @echo - @echo ----------------------- - @echo target: busybox.install - @echo ----------------------- - @echo + @$(call targetinfo, busybox.install) touch $@ # ---------------------------------------------------------------------------- @@ -142,11 +122,7 @@ $(STATEDIR)/busybox.install: $(STATEDIR)/busybox.compile busybox_targetinstall: $(STATEDIR)/busybox.targetinstall $(STATEDIR)/busybox.targetinstall: $(STATEDIR)/busybox.install - @echo - @echo ----------------------------- - @echo target: busybox.targetinstall - @echo ----------------------------- - @echo + @$(call targetinfo, busybox.targetinstall) rm -f $(BUSYBOX_DIR)/busybox.links $(BUSYBOX_ENVIRONMENT) make -C $(BUSYBOX_DIR) install \ PREFIX=$(ROOTDIR) $(BUSYBOX_MAKEVARS) diff --git a/rules/e2fsprogs.make b/rules/e2fsprogs.make index 9ae9f8ea6..13d816207 100644 --- a/rules/e2fsprogs.make +++ b/rules/e2fsprogs.make @@ -34,11 +34,7 @@ $(STATEDIR)/e2fsprogs.get: $(E2FSPROGS_SOURCE) touch $@ $(E2FSPROGS_SOURCE): - @echo - @echo --------------------- - @echo target: e2fsprogs.get - @echo --------------------- - @echo + @$(call targetinfo, e2fsprogs.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(E2FSPROGS_URL) # ---------------------------------------------------------------------------- @@ -48,11 +44,7 @@ $(E2FSPROGS_SOURCE): e2fsprogs_extract: $(STATEDIR)/e2fsprogs.extract $(STATEDIR)/e2fsprogs.extract: $(STATEDIR)/e2fsprogs.get - @echo - @echo ------------------------- - @echo target: e2fsprogs.extract - @echo ------------------------- - @echo + @$(call targetinfo, e2fsprogs.extract) $(E2FSPROGS_EXTRACT) $(E2FSPROGS_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -73,11 +65,7 @@ E2FSPROGS_MAKEVARS += RANLIB=$(PTXCONF_GNU_TARGET)-ranlib E2FSPROGS_MAKEVARS += CC=$(PTXCONF_GNU_TARGET)-gcc $(STATEDIR)/e2fsprogs.prepare: $(STATEDIR)/e2fsprogs.extract - @echo - @echo ------------------------- - @echo target: e2fsprogs.prepare - @echo ------------------------- - @echo + @$(call targetinfo, e2fsprogs.prepare) cd $(E2FSPROGS_DIR) && \ ./configure $(E2FSPROGS_AUTOCONF) touch $@ @@ -97,11 +85,7 @@ e2fsprogs_compile_deps += $(STATEDIR)/uclibc.install endif $(STATEDIR)/e2fsprogs.compile: $(e2fsprogs_compile_deps) - @echo - @echo ------------------------- - @echo target: e2fsprogs.compile - @echo ------------------------- - @echo + @$(call targetinfo, e2fsprogs.compile) # FIXME: not tested on non-x86 $(E2FSPROGS_ENVIRONMENT) make -C $(E2FSPROGS_DIR) $(E2FSPROGS_MAKEVARS) touch $@ @@ -113,11 +97,7 @@ $(STATEDIR)/e2fsprogs.compile: $(e2fsprogs_compile_deps) e2fsprogs_install: $(STATEDIR)/e2fsprogs.install $(STATEDIR)/e2fsprogs.install: $(STATEDIR)/e2fsprogs.compile - @echo - @echo ------------------------- - @echo target: e2fsprogs.install - @echo ------------------------- - @echo + @$(call targetinfo, e2fsprogs.install) make -C $(E2FSPROGS_DIR) install touch $@ @@ -128,11 +108,7 @@ $(STATEDIR)/e2fsprogs.install: $(STATEDIR)/e2fsprogs.compile e2fsprogs_targetinstall: $(STATEDIR)/e2fsprogs.targetinstall $(STATEDIR)/e2fsprogs.targetinstall: $(STATEDIR)/e2fsprogs.install - @echo - @echo ------------------------------- - @echo target: e2fsprogs.targetinstall - @echo ------------------------------- - @echo + @$(call targetinfo, e2fsprogs.targetinstall) ifeq (y, $(PTXCONF_E2FSPROGS_MKFS)) install $(E2FSPROGS_DIR)/misc/mke2fs $(ROOTDIR)/sbin/ $(CROSSSTRIP) -S $(ROOTDIR)/sbin/mke2fs diff --git a/rules/gmp.make b/rules/gmp.make index 60d2629b0..641668d00 100644 --- a/rules/gmp.make +++ b/rules/gmp.make @@ -1,4 +1,4 @@ -# $Id: gmp.make,v 1.2 2003/05/13 11:17:58 robert Exp $ +# $Id: gmp.make,v 1.3 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -36,11 +36,7 @@ $(STATEDIR)/gmp.get: $(GMP_SOURCE) touch $@ $(GMP_SOURCE): - @echo - @echo ------- - @echo target: gmp.get - @echo ------- - @echo + @$(call targetinfo, gmp.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(GMP_URL) # ---------------------------------------------------------------------------- @@ -50,11 +46,7 @@ $(GMP_SOURCE): gmp_extract: $(STATEDIR)/gmp.extract $(STATEDIR)/gmp.extract: $(STATEDIR)/gmp.get - @echo - @echo ----------- - @echo target: gmp.extract - @echo ----------- - @echo + @$(call targetinfo, gmp.extract) $(GMP_EXTRACT) $(GMP_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -70,11 +62,7 @@ GMP_AUTOCONF += --host=$(PTXCONF_GNU_TARGET) GMP_AUTOCONF += --prefix=$(PTXCONF_PREFIX) $(STATEDIR)/gmp.prepare: $(STATEDIR)/gmp.extract - @echo - @echo ----------- - @echo target: gmp.prepare - @echo ----------- - @echo + @$(call targetinfo, gmp.prepare) cd $(GMP_DIR) && \ PATH=$(PTXCONF_PREFIX)/bin:$$PATH ./configure $(GMP_AUTOCONF) touch $@ @@ -86,11 +74,7 @@ $(STATEDIR)/gmp.prepare: $(STATEDIR)/gmp.extract gmp_compile: $(STATEDIR)/gmp.compile $(STATEDIR)/gmp.compile: $(STATEDIR)/gmp.prepare - @echo - @echo ----------- - @echo target: gmp.compile - @echo ----------- - @echo + @$(call targetinfo, gmp.compile) PATH=$(PTXCONF_PREFIX)/bin:$$PATH make -C $(GMP_DIR) touch $@ @@ -101,11 +85,7 @@ $(STATEDIR)/gmp.compile: $(STATEDIR)/gmp.prepare gmp_install: $(STATEDIR)/gmp.install $(STATEDIR)/gmp.install: $(STATEDIR)/gmp.compile - @echo - @echo ----------- - @echo target: gmp.install - @echo ----------- - @echo + @$(call targetinfo, gmp.install) # FIXME: doesn't work when using local bin dir make -C $(GMP_DIR) install touch $@ @@ -117,11 +97,7 @@ $(STATEDIR)/gmp.install: $(STATEDIR)/gmp.compile gmp_targetinstall: $(STATEDIR)/gmp.targetinstall $(STATEDIR)/gmp.targetinstall: $(STATEDIR)/gmp.install - @echo - @echo ----------------- - @echo target: gmp.targetinstall - @echo ----------------- - @echo + @$(call targetinfo, gmp.targetinstall) mkdir -p $(ROOTDIR)/lib # preserve links -> we cannot use install cp -d $(PTXCONF_PREFIX)/lib/libgmp.so* $(ROOTDIR)/lib diff --git a/rules/grub.make b/rules/grub.make index 17f01f39b..44232d7ab 100644 --- a/rules/grub.make +++ b/rules/grub.make @@ -1,5 +1,5 @@ # -*-makefile-*- -# $Id: grub.make,v 1.2 2003/05/13 11:19:44 robert Exp $ +# $Id: grub.make,v 1.3 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -34,11 +34,7 @@ $(STATEDIR)/grub.get: $(GRUB_SOURCE) touch $@ $(GRUB_SOURCE): - @echo - @echo ---------------- - @echo target: grub.get - @echo ---------------- - @echo + @$(call targetinfo, grub.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(GRUB_URL) # ---------------------------------------------------------------------------- @@ -48,11 +44,7 @@ $(GRUB_SOURCE): grub_extract: $(STATEDIR)/grub.extract $(STATEDIR)/grub.extract: $(STATEDIR)/grub.get - @echo - @echo -------------------- - @echo target: grub.extract - @echo -------------------- - @echo + @$(call targetinfo, grub.extract) $(GRUB_EXTRACT) $(GRUB_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -105,11 +97,7 @@ GRUB_AUTOCONF += --disable-cs89x0 endif $(STATEDIR)/grub.prepare: $(STATEDIR)/grub.extract - @echo - @echo -------------------- - @echo target: grub.prepare - @echo -------------------- - @echo + @$(call targetinfo, grub.prepare) cd $(GRUB_DIR) && ./configure $(GRUB_AUTOCONF) touch $@ @@ -120,11 +108,7 @@ $(STATEDIR)/grub.prepare: $(STATEDIR)/grub.extract grub_compile: $(STATEDIR)/grub.compile $(STATEDIR)/grub.compile: $(STATEDIR)/grub.prepare - @echo - @echo -------------------- - @echo target: grub.compile - @echo -------------------- - @echo + @$(call targetinfo, grub.compile) make -C $(GRUB_DIR) touch $@ @@ -135,11 +119,7 @@ $(STATEDIR)/grub.compile: $(STATEDIR)/grub.prepare grub_install: $(STATEDIR)/grub.install $(STATEDIR)/grub.install: $(STATEDIR)/grub.compile - @echo - @echo -------------------- - @echo target: grub.install - @echo -------------------- - @echo + @$(call targetinfo, grub.install) # make -C $(GRUB_DIR) install touch $@ @@ -150,11 +130,7 @@ $(STATEDIR)/grub.install: $(STATEDIR)/grub.compile grub_targetinstall: $(STATEDIR)/grub.targetinstall $(STATEDIR)/grub.targetinstall: $(STATEDIR)/grub.install - @echo - @echo -------------------------- - @echo target: grub.targetinstall - @echo -------------------------- - @echo + @$(call targetinfo, grub.targetinstall) mkdir -p $(ROOTDIR)/boot/grub install $(GRUB_DIR)/stage1/stage1 $(ROOTDIR)/boot/grub/ touch $@ diff --git a/rules/ksymoops.make b/rules/ksymoops.make index d550eb6e9..6419bbb31 100644 --- a/rules/ksymoops.make +++ b/rules/ksymoops.make @@ -1,4 +1,4 @@ -# $Id: ksymoops.make,v 1.2 2003/04/24 16:07:09 jst Exp $ +# $Id: ksymoops.make,v 1.3 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -33,11 +33,7 @@ $(STATEDIR)/ksymoops.get: $(KSYMOOPS_SOURCE) touch $@ $(KSYMOOPS_SOURCE): - @echo - @echo -------------------- - @echo target: ksymoops.get - @echo -------------------- - @echo + @$(call targetinfo, ksymoops.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(KSYMOOPS_URL) # ---------------------------------------------------------------------------- @@ -47,11 +43,7 @@ $(KSYMOOPS_SOURCE): ksymoops_extract: $(STATEDIR)/ksymoops.extract $(STATEDIR)/ksymoops.extract: $(STATEDIR)/ksymoops.get - @echo - @echo ------------------------ - @echo target: ksymoops.extract - @echo ------------------------ - @echo + @$(call targetinfo, ksymoops.extract) $(KSYMOOPS_EXTRACT) $(KSYMOOPS_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -62,11 +54,7 @@ $(STATEDIR)/ksymoops.extract: $(STATEDIR)/ksymoops.get ksymoops_prepare: $(STATEDIR)/ksymoops.prepare $(STATEDIR)/ksymoops.prepare: $(STATEDIR)/ksymoops.extract - @echo - @echo ------------------------ - @echo target: ksymoops.prepare - @echo ------------------------ - @echo + @$(call targetinfo, ksymoops.prepare) touch $@ # ---------------------------------------------------------------------------- @@ -76,11 +64,7 @@ $(STATEDIR)/ksymoops.prepare: $(STATEDIR)/ksymoops.extract ksymoops_compile: $(STATEDIR)/ksymoops.compile $(STATEDIR)/ksymoops.compile: $(STATEDIR)/ksymoops.prepare - @echo - @echo ------------------------ - @echo target: ksymoops.compile - @echo ------------------------ - @echo + @$(call targetinfo, ksymoops.compile) CFLAGS="-I$(PTXCONF_PREFIX)/include" make -C $(KSYMOOPS_DIR) touch $@ @@ -91,11 +75,7 @@ $(STATEDIR)/ksymoops.compile: $(STATEDIR)/ksymoops.prepare ksymoops_install: $(STATEDIR)/ksymoops.install $(STATEDIR)/ksymoops.install: $(STATEDIR)/ksymoops.compile - @echo - @echo ------------------------ - @echo target: ksymoops.install - @echo ------------------------ - @echo + @$(call targetinfo, ksymoops.install) make -C $(KSYMOOPS_DIR) install INSTALL_PREFIX=$(PTXCONF_PREFIX) touch $@ @@ -106,11 +86,7 @@ $(STATEDIR)/ksymoops.install: $(STATEDIR)/ksymoops.compile ksymoops_targetinstall: $(STATEDIR)/ksymoops.targetinstall $(STATEDIR)/ksymoops.targetinstall: $(STATEDIR)/ksymoops.install - @echo - @echo ------------------------------ - @echo target: ksymoops.targetinstall - @echo ------------------------------ - @echo + @$(call targetinfo, ksymoops.targetinstall) touch $@ # ---------------------------------------------------------------------------- diff --git a/rules/liboop.make b/rules/liboop.make index 4b33309b9..46435f65a 100644 --- a/rules/liboop.make +++ b/rules/liboop.make @@ -1,4 +1,4 @@ -# $Id: liboop.make,v 1.2 2003/05/13 11:23:13 robert Exp $ +# $Id: liboop.make,v 1.3 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -33,11 +33,7 @@ $(STATEDIR)/liboop.get: $(LIBOOP_SOURCE) touch $@ $(LIBOOP_SOURCE): - @echo - @echo ---------- - @echo target: liboop.get - @echo ---------- - @echo + @$(call targetinfo, liboop.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(LIBOOP_URL) # ---------------------------------------------------------------------------- @@ -52,18 +48,11 @@ LIBOOP_USE_AUTOCONF = autoconf LIBOOP_USE_AUTOMAKE = automake $(STATEDIR)/liboop.extract: $(STATEDIR)/liboop.get - @echo - @echo -------------- - @echo target: liboop.extract - @echo -------------- - @echo + @$(call targetinfo, liboop.extract) $(LIBOOP_EXTRACT) $(LIBOOP_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - # # we have to add a switch to disable tcl # - @echo "I the next step is not successful you should try to use" - @echo "libtool-1.4, automake-1.7 and autoconf-2.54. You can specify" - @echo "the paths with LIBOOP_USE_[LIBTOOLIZE|ACLOCAL|AUTOCONF|AUTOMAKE]." # cd $(LIBOOP_DIR) && cat $(SRCDIR)/liboop-0.8-ptx1.diff | patch -p1 rm -f $(LIBOOP_DIR)/missing @@ -91,11 +80,7 @@ LIBOOP_AUTOCONF += --prefix=$(PTXCONF_PREFIX) LIBOOP_AUTOCONF += --without-tcl $(STATEDIR)/liboop.prepare: $(STATEDIR)/liboop.extract - @echo - @echo -------------- - @echo target: liboop.prepare - @echo -------------- - @echo + @$(call targetinfo, liboop.prepare) cd $(LIBOOP_DIR) && \ PATH=$(PTXCONF_PREFIX)/bin:$$PATH ./configure $(LIBOOP_AUTOCONF) touch $@ @@ -107,11 +92,7 @@ $(STATEDIR)/liboop.prepare: $(STATEDIR)/liboop.extract liboop_compile: $(STATEDIR)/liboop.compile $(STATEDIR)/liboop.compile: $(STATEDIR)/liboop.prepare - @echo - @echo -------------- - @echo target: liboop.compile - @echo -------------- - @echo + @$(call targetinfo, liboop.compile) PATH=$(PTXCONF_PREFIX)/bin:$$PATH make -C $(LIBOOP_DIR) touch $@ @@ -122,11 +103,7 @@ $(STATEDIR)/liboop.compile: $(STATEDIR)/liboop.prepare liboop_install: $(STATEDIR)/liboop.install $(STATEDIR)/liboop.install: $(STATEDIR)/liboop.compile - @echo - @echo -------------- - @echo target: liboop.install - @echo -------------- - @echo + @$(call targetinfo, liboop.install) # FIXME: this doesn't work when using local bin dir make -C $(LIBOOP_DIR) install touch $@ @@ -138,11 +115,7 @@ $(STATEDIR)/liboop.install: $(STATEDIR)/liboop.compile liboop_targetinstall: $(STATEDIR)/liboop.targetinstall $(STATEDIR)/liboop.targetinstall: $(STATEDIR)/liboop.install - @echo - @echo -------------------- - @echo target: liboop.targetinstall - @echo -------------------- - @echo + @$(call targetinfo, liboop.targetinstall) # FIXME: the other liboop libraries should optionally be installed # we want to preserve links, so we cannot use install cp -d $(PTXCONF_PREFIX)/lib/liboop.so* $(ROOTDIR)/lib/ diff --git a/rules/lsh.make b/rules/lsh.make index b9a446207..bde39e29c 100644 --- a/rules/lsh.make +++ b/rules/lsh.make @@ -1,4 +1,4 @@ -# $Id: lsh.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: lsh.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -33,11 +33,7 @@ $(STATEDIR)/lsh.get: $(LSH_SOURCE) touch $@ $(LSH_SOURCE): - @echo - @echo ------- - @echo target: lsh.get - @echo ------- - @echo + @$(call targetinfo, lsh.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(LSH_URL) # ---------------------------------------------------------------------------- @@ -47,11 +43,7 @@ $(LSH_SOURCE): lsh_extract: $(STATEDIR)/lsh.extract $(STATEDIR)/lsh.extract: $(STATEDIR)/lsh.get - @echo - @echo ----------- - @echo target: lsh.extract - @echo ----------- - @echo + @$(call targetinfo, lsh.extract) $(LSH_EXTRACT) $(LSH_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - cd $(LSH_DIR) && patch -p0 < $(SRCDIR)/lsh-1.5-ptx1.diff touch $@ @@ -84,11 +76,7 @@ LSH_AUTOCONF += --with-lib-path=$(PTXCONF_PREFIX)/lib LSH_AUTOCONF += --with-include-path=$(PTXCONF_PREFIX)/include $(STATEDIR)/lsh.prepare: $(lsh_prepare_deps) - @echo - @echo ----------- - @echo target: lsh.prepare - @echo ----------- - @echo + @$(call targetinfo, lsh.prepare) cd $(LSH_DIR) && ./configure $(LSH_AUTOCONF) touch $@ @@ -99,11 +87,7 @@ $(STATEDIR)/lsh.prepare: $(lsh_prepare_deps) lsh_compile: $(STATEDIR)/lsh.compile $(STATEDIR)/lsh.compile: $(STATEDIR)/lsh.prepare - @echo - @echo ----------- - @echo target: lsh.compile - @echo ----------- - @echo + @$(call targetinfo, lsh.compile) PATH=$(PTXCONF_PREFIX)/bin:$$PATH make -C $(LSH_DIR) touch $@ @@ -114,11 +98,7 @@ $(STATEDIR)/lsh.compile: $(STATEDIR)/lsh.prepare lsh_install: $(STATEDIR)/lsh.install $(STATEDIR)/lsh.install: $(STATEDIR)/lsh.compile - @echo - @echo ----------- - @echo target: lsh.install - @echo ----------- - @echo + @$(call targetinfo, lsh.install) touch $@ # ---------------------------------------------------------------------------- @@ -133,11 +113,7 @@ lsh_targetinstall_deps += $(STATEDIR)/liboop.targetinstall lsh_targetinstall_deps += $(STATEDIR)/zlib.targetinstall $(STATEDIR)/lsh.targetinstall: $(lsh_targetinstall_deps) - @echo - @echo ----------------- - @echo target: lsh.targetinstall - @echo ----------------- - @echo + @$(call targetinfo, lsh.targetinstall) ifeq (y, $(PTXCONF_LSH_EXECUV)) mkdir -p $(ROOTDIR)/sbin install $(PTXCONF_PREFIX)/sbin/lsh-execuv $(ROOTDIR)/sbin/ diff --git a/rules/mtd.make b/rules/mtd.make index 73408ac08..231baaa8f 100644 --- a/rules/mtd.make +++ b/rules/mtd.make @@ -1,4 +1,4 @@ -# $Id: mtd.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: mtd.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2003 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -40,19 +40,11 @@ $(STATEDIR)/mtd.get: $(MTD_SOURCE) mtdutil_get: $(STATEDIR)/mtdutil.get $(STATEDIR)/mtdutil.get: $(MTD_SOURCE) - @echo - @echo ------------------- - @echo target: mtdutil.get - @echo ------------------- - @echo + @$(call targetinfo, mtdutil.get) touch $@ $(MTD_SOURCE): - @echo - @echo --------------- - @echo target: mtd.get - @echo --------------- - @echo + @$(call targetinfo, mtd.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(MTD_URL) # ---------------------------------------------------------------------------- @@ -62,22 +54,14 @@ $(MTD_SOURCE): mtd_extract: $(STATEDIR)/mtd.extract $(STATEDIR)/mtd.extract: $(STATEDIR)/mtd.get - @echo - @echo ------------------- - @echo target: mtd.extract - @echo ------------------- - @echo + @$(call targetinfo, mtd.extract) $(MTD_EXTRACT) $(MTD_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ mtdutil_extract: $(STATEDIR)/mtdutil.extract $(STATEDIR)/mtdutil.extract: $(STATEDIR)/mtdutil.get - @echo - @echo ----------------------- - @echo target: mtdutil.extract - @echo ----------------------- - @echo + @$(call targetinfo, mtdutil.extract) rm -fr $(BUILDDIR)/mtdutil mkdir -p $(BUILDDIR)/mtdutil $(MTD_EXTRACT) $(MTD_SOURCE) | $(TAR) -C $(BUILDDIR)/mtdutil -xf - $(MTD)/util @@ -92,11 +76,7 @@ $(STATEDIR)/mtdutil.extract: $(STATEDIR)/mtdutil.get mtd_prepare: $(STATEDIR)/mtd.prepare $(STATEDIR)/mtd.prepare: $(STATEDIR)/mtd.extract - @echo - @echo ------------------- - @echo target: mtd.prepare - @echo ------------------- - @echo + @$(call targetinfo, mtd.prepare) # Makefile is currently fucked up... @#*$ # FIXME: patch sent to maintainer, remove this for fixed version perl -i -p -e 's/\(CFLAGS\) -o/\(LDFLAGS\) -o/g' $(MTD_DIR)/util/Makefile @@ -106,11 +86,7 @@ $(STATEDIR)/mtd.prepare: $(STATEDIR)/mtd.extract mtdutil_prepare: $(STATEDIR)/mtdutil.prepare $(STATEDIR)/mtdutil.prepare: $(STATEDIR)/mtdutil.extract - @echo - @echo ----------------------- - @echo target: mtdutil.prepare - @echo ----------------------- - @echo + @$(call targetinfo, mtdutil.prepare) # Makefile is currently fucked up... @#*$ # FIXME: patch sent to maintainer, remove this for fixed version perl -i -p -e 's/\(CFLAGS\) -o/\(LDFLAGS\) -o/g' $(BUILDDIR)/mtdutil/$(MTD)/util/Makefile @@ -128,11 +104,7 @@ MTD_MAKEVARS = CFLAGS=-I$(PTXCONF_PREFIX)/include MTD_MAKEVARS += LDFLAGS=-L$(PTXCONF_PREFIX)/lib $(STATEDIR)/mtd.compile: $(STATEDIR)/mtd.prepare $(STATEDIR)/xchain-zlib.install - @echo - @echo ------------------- - @echo target: mtd.compile - @echo ------------------- - @echo + @$(call targetinfo, mtd.compile) $(MTD_ENVIRONMENT) make -C $(MTD_DIR)/util mkfs.jffs mkfs.jffs2 $(MTD_MAKEVARS) touch $@ @@ -150,11 +122,7 @@ MTD-UTIL_MAKEVARS += LDFLAGS=-L$(ZLIB_DIR) mtdutil_compile: $(STATEDIR)/mtdutil.compile $(STATEDIR)/mtdutil.compile: $(mtdutil_compile_deps) - @echo - @echo ----------------------- - @echo target: mtdutil.compile - @echo ----------------------- - @echo + @$(call targetinfo, mtdutil.compile) $(MTD-UTIL_ENVIRONMENT) make -C $(BUILDDIR)/mtdutil/$(MTD)/util $(MTD-UTIL_MAKEVARS) touch $@ @@ -165,11 +133,7 @@ $(STATEDIR)/mtdutil.compile: $(mtdutil_compile_deps) mtd_install: $(STATEDIR)/mtd.install $(STATEDIR)/mtd.install: $(STATEDIR)/mtd.compile - @echo - @echo ------------------- - @echo target: mtd.install - @echo ------------------- - @echo + @$(call targetinfo, mtd.install) install $(MTD_DIR)/util/mkfs.jffs $(PTXCONF_PREFIX)/bin install $(MTD_DIR)/util/mkfs.jffs2 $(PTXCONF_PREFIX)/bin touch $@ @@ -177,11 +141,7 @@ $(STATEDIR)/mtd.install: $(STATEDIR)/mtd.compile mtdutil_install: $(STATEDIR)/mtdutil.install $(STATEDIR)/mtdutil.install: $(STATEDIR)/mtdutil.compile - @echo - @echo ----------------------- - @echo target: mtdutil.install - @echo ----------------------- - @echo + @$(call targetinfo, mtdutil.install) touch $@ # ---------------------------------------------------------------------------- @@ -191,21 +151,13 @@ $(STATEDIR)/mtdutil.install: $(STATEDIR)/mtdutil.compile mtd_targetinstall: $(STATEDIR)/mtd.targetinstall $(STATEDIR)/mtd.targetinstall: $(STATEDIR)/mtd.install - @echo - @echo ------------------------- - @echo target: mtd.targetinstall - @echo ------------------------- - @echo + @$(call targetinfo, mtd.targetinstall) touch $@ mtdutil_targetinstall: $(STATEDIR)/mtdutil.targetinstall $(STATEDIR)/mtdutil.targetinstall: $(STATEDIR)/mtdutil.install - @echo - @echo ----------------------------- - @echo target: mtdutil.targetinstall - @echo ----------------------------- - @echo + @$(call targetinfo, mtdutil.targetinstall) ifeq (y, $(PTXCONF_MTD_EINFO)) install $(BUILDDIR)/mtdutil/$(MTD)/util/einfo $(ROOTDIR)/sbin $(CROSSSTRIP) -S $(ROOTDIR)/sbin/einfo diff --git a/rules/ncurses.make b/rules/ncurses.make index 16e1795d7..90c36ec82 100644 --- a/rules/ncurses.make +++ b/rules/ncurses.make @@ -1,4 +1,4 @@ -# $Id: ncurses.make,v 1.2 2003/04/24 16:07:09 jst Exp $ +# $Id: ncurses.make,v 1.3 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -34,11 +34,7 @@ $(STATEDIR)/ncurses.get: $(NCURSES_SOURCE) touch $@ $(NCURSES_SOURCE): - @echo - @echo ----------- - @echo target: ncurses.get - @echo ----------- - @echo + @$(call targetinfo, ncurses.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(NCURSES_URL) # ---------------------------------------------------------------------------- @@ -48,11 +44,7 @@ $(NCURSES_SOURCE): ncurses_extract: $(STATEDIR)/ncurses.extract $(STATEDIR)/ncurses.extract: $(STATEDIR)/ncurses.get - @echo - @echo --------------- - @echo target: ncurses.extract - @echo --------------- - @echo + @$(call targetinfo, ncurses.extract) $(NCURSES_EXTRACT) $(NCURSES_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -76,11 +68,7 @@ NCURSES_MAKEVARS += CXX=$(PTXCONF_GNU_TARGET)-g++ # FIXME: gcc stage2 is just a workaround here: $(STATEDIR)/ncurses.prepare: $(STATEDIR)/xchain-gccstage2.install $(STATEDIR)/ncurses.extract - @echo - @echo --------------- - @echo target: ncurses.prepare - @echo --------------- - @echo + @$(call targetinfo, ncurses.prepare) cd $(NCURSES_DIR) && ./configure $(NCURSES_AUTOCONF) touch $@ @@ -91,11 +79,7 @@ $(STATEDIR)/ncurses.prepare: $(STATEDIR)/xchain-gccstage2.install $(STATEDIR)/nc ncurses_compile: $(STATEDIR)/ncurses.compile $(STATEDIR)/ncurses.compile: $(STATEDIR)/ncurses.prepare - @echo - @echo --------------- - @echo target: ncurses.compile - @echo --------------- - @echo + @$(call targetinfo, ncurses.compile) cd $(NCURSES_DIR) && $(NCURSES_ENVIRONMENT) make $(NCURSES_MAKEVARS) touch $@ @@ -106,11 +90,7 @@ $(STATEDIR)/ncurses.compile: $(STATEDIR)/ncurses.prepare ncurses_install: $(STATEDIR)/ncurses.install $(STATEDIR)/ncurses.install: $(STATEDIR)/ncurses.compile - @echo - @echo --------------- - @echo target: ncurses.install - @echo --------------- - @echo + @$(call targetinfo, ncurses.install) touch $@ # ---------------------------------------------------------------------------- @@ -120,11 +100,7 @@ $(STATEDIR)/ncurses.install: $(STATEDIR)/ncurses.compile ncurses_targetinstall: $(STATEDIR)/ncurses.targetinstall $(STATEDIR)/ncurses.targetinstall: $(STATEDIR)/ncurses.install - @echo - @echo --------------------- - @echo target: ncurses.targetinstall - @echo --------------------- - @echo + @$(call targetinfo, ncurses.targetinstall) touch $@ # ---------------------------------------------------------------------------- diff --git a/rules/nettle.make b/rules/nettle.make index 5fd361109..772a7efaf 100644 --- a/rules/nettle.make +++ b/rules/nettle.make @@ -1,4 +1,4 @@ -# $Id: nettle.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: nettle.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -33,11 +33,7 @@ $(STATEDIR)/nettle.get: $(NETTLE_SOURCE) touch $@ $(NETTLE_SOURCE): - @echo - @echo ---------- - @echo target: nettle.get - @echo ---------- - @echo + @$(call targetinfo, nettle.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(NETTLE_URL) # ---------------------------------------------------------------------------- @@ -47,11 +43,7 @@ $(NETTLE_SOURCE): nettle_extract: $(STATEDIR)/nettle.extract $(STATEDIR)/nettle.extract: $(STATEDIR)/nettle.get - @echo - @echo -------------- - @echo target: nettle.extract - @echo -------------- - @echo + @$(call targetinfo, nettle.extract) $(NETTLE_EXTRACT) $(NETTLE_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -67,11 +59,7 @@ NETTLE_AUTOCONF += --host=$(PTXCONF_GNU_TARGET) NETTLE_AUTOCONF += --prefix=$(PTXCONF_PREFIX) $(STATEDIR)/nettle.prepare: $(STATEDIR)/nettle.extract - @echo - @echo -------------- - @echo target: nettle.prepare - @echo -------------- - @echo + @$(call targetinfo, nettle.prepare) cd $(NETTLE_DIR) && \ PATH=$(PTXCONF_PREFIX)/bin:$$PATH ./configure $(NETTLE_AUTOCONF) touch $@ @@ -83,11 +71,7 @@ $(STATEDIR)/nettle.prepare: $(STATEDIR)/nettle.extract nettle_compile: $(STATEDIR)/nettle.compile $(STATEDIR)/nettle.compile: $(STATEDIR)/nettle.prepare - @echo - @echo -------------- - @echo target: nettle.compile - @echo -------------- - @echo + @$(call targetinfo, nettle.compile) PATH=$(PTXCONF_PREFIX)/bin:$$PATH make -C $(NETTLE_DIR) touch $@ @@ -98,11 +82,7 @@ $(STATEDIR)/nettle.compile: $(STATEDIR)/nettle.prepare nettle_install: $(STATEDIR)/nettle.install $(STATEDIR)/nettle.install: $(STATEDIR)/nettle.compile - @echo - @echo -------------- - @echo target: nettle.install - @echo -------------- - @echo + @$(call targetinfo, nettle.install) # FIXME: this doesn't work when using local bin directory...? make -C $(NETTLE_DIR) install touch $@ @@ -114,11 +94,7 @@ $(STATEDIR)/nettle.install: $(STATEDIR)/nettle.compile nettle_targetinstall: $(STATEDIR)/nettle.targetinstall $(STATEDIR)/nettle.targetinstall: $(STATEDIR)/nettle.install - @echo - @echo -------------------- - @echo target: nettle.targetinstall - @echo -------------------- - @echo + @$(call targetinfo, nettle.targetinstall) # nettle is only static at the moment touch $@ diff --git a/rules/nfs-utils.make b/rules/nfs-utils.make index d026859f3..75858d7d7 100644 --- a/rules/nfs-utils.make +++ b/rules/nfs-utils.make @@ -1,4 +1,4 @@ -# $Id: nfs-utils.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: nfs-utils.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2003 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -33,11 +33,7 @@ $(STATEDIR)/nfsutils.get: $(NFSUTILS_SOURCE) touch $@ $(NFSUTILS_SOURCE): - @echo - @echo -------------------- - @echo target: nfsutils.get - @echo -------------------- - @echo + @$(call targetinfo, nfsutils.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(NFSUTILS_URL) # ---------------------------------------------------------------------------- @@ -47,11 +43,7 @@ $(NFSUTILS_SOURCE): nfsutils_extract: $(STATEDIR)/nfsutils.extract $(STATEDIR)/nfsutils.extract: $(STATEDIR)/nfsutils.get $(STATEDIR)/autoconf257.targetinstall - @echo - @echo ------------------------ - @echo target: nfsutils.extract - @echo ------------------------ - @echo + @$(call targetinfo, nfsutils.extract) $(NFSUTILS_EXTRACT) $(NFSUTILS_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - # # regenerate configure script with new autoconf, to make cross compiling work @@ -94,11 +86,7 @@ NFSUTILS_AUTOCONF += --disable-rquotad endif $(STATEDIR)/nfsutils.prepare: $(STATEDIR)/nfsutils.extract - @echo - @echo ------------------------ - @echo target: nfsutils.prepare - @echo ------------------------ - @echo + @$(call targetinfo, nfsutils.prepare) cd $(NFSUTILS_DIR) && \ $(NFSUTILS_ENVIRONMENT) \ $(NFSUTILS_DIR)/configure \ @@ -112,11 +100,7 @@ $(STATEDIR)/nfsutils.prepare: $(STATEDIR)/nfsutils.extract nfsutils_compile: $(STATEDIR)/nfsutils.compile $(STATEDIR)/nfsutils.compile: $(STATEDIR)/nfsutils.prepare - @echo - @echo ------------------------ - @echo target: nfsutils.compile - @echo ------------------------ - @echo + @$(call targetinfo, nfsutils.compile) $(NFSUTILS_ENVIRONMENT) make -C $(NFSUTILS_DIR) $(NFSUTILS_MAKEVARS) touch $@ @@ -127,11 +111,7 @@ $(STATEDIR)/nfsutils.compile: $(STATEDIR)/nfsutils.prepare nfsutils_install: $(STATEDIR)/nfsutils.install $(STATEDIR)/nfsutils.install: $(STATEDIR)/nfsutils.compile - @echo - @echo ------------------------ - @echo target: nfsutils.install - @echo ------------------------ - @echo + @$(call targetinfo, nfsutils.install) # make -C $(NFSUTILS_DIR) install touch $@ @@ -142,11 +122,7 @@ $(STATEDIR)/nfsutils.install: $(STATEDIR)/nfsutils.compile nfsutils_targetinstall: $(STATEDIR)/nfsutils.targetinstall $(STATEDIR)/nfsutils.targetinstall: $(STATEDIR)/nfsutils.install - @echo - @echo ------------------------------ - @echo target: nfsutils.targetinstall - @echo ------------------------------ - @echo + @$(call targetinfo, nfsutils.targetinstall) # don't forget to $(CROSSSTRIP) -S your source! mkdir -p $(ROOTDIR)/etc/init.d ifeq (y, $(PTXCONF_NFSUTILS_INSTALL_CLIENTSCRIPT)) diff --git a/rules/openssh.make b/rules/openssh.make index 1c715234b..a26d600e3 100644 --- a/rules/openssh.make +++ b/rules/openssh.make @@ -1,4 +1,4 @@ -# $Id: openssh.make,v 1.2 2003/05/03 10:28:12 robert Exp $ +# $Id: openssh.make,v 1.3 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -33,11 +33,7 @@ $(STATEDIR)/openssh.get: $(OPENSSH_SOURCE) touch $@ $(OPENSSH_SOURCE): - @echo - @echo ------------------- - @echo target: openssh.get - @echo ------------------- - @echo + @$(call targetinfo, openssh.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(OPENSSH_URL) # ---------------------------------------------------------------------------- @@ -47,11 +43,7 @@ $(OPENSSH_SOURCE): openssh_extract: $(STATEDIR)/openssh.extract $(STATEDIR)/openssh.extract: $(STATEDIR)/openssh.get - @echo - @echo ----------------------- - @echo target: openssh.extract - @echo ----------------------- - @echo + @$(call targetinfo, openssh.extract) $(OPENSSH_EXTRACT) $(OPENSSH_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -68,11 +60,7 @@ OPENSSH_AUTOCONF += --with-zlib=$(PTXCONF_PREFIX) OPENSSH_AUTOCONF += --with-privsep-path=$(PTXCONF_PREFIX)/var/empty $(STATEDIR)/openssh.prepare: $(STATEDIR)/openssh.extract $(STATEDIR)/openssl.install - @echo - @echo ----------------------- - @echo target: openssh.prepare - @echo ----------------------- - @echo + @$(call targetinfo, openssh.prepare) cd $(OPENSSH_DIR) && LIBS=-lcrypt ./configure $(OPENSSH_AUTOCONF) touch $@ @@ -83,11 +71,7 @@ $(STATEDIR)/openssh.prepare: $(STATEDIR)/openssh.extract $(STATEDIR)/openssl.ins openssh_compile: $(STATEDIR)/openssh.compile $(STATEDIR)/openssh.compile: $(STATEDIR)/openssh.prepare - @echo - @echo ----------------------- - @echo target: openssh.compile - @echo ----------------------- - @echo + @$(call targetinfo, openssh.compile) cd $(OPENSSH_DIR) && PATH=$(PTXCONF_PREFIX)/bin:$$PATH make touch $@ @@ -98,11 +82,7 @@ $(STATEDIR)/openssh.compile: $(STATEDIR)/openssh.prepare openssh_install: $(STATEDIR)/openssh.install $(STATEDIR)/openssh.install: $(STATEDIR)/openssh.compile - @echo - @echo ----------------------- - @echo target: openssh.install - @echo ----------------------- - @echo + @$(call targetinfo, openssh.install) PATH=$(PTXCONF_PREFIX)/bin:$$PATH make -C $(OPENSSH_DIR) install PREFIX=$(PTXCONF_PREFIX) touch $@ @@ -113,11 +93,7 @@ $(STATEDIR)/openssh.install: $(STATEDIR)/openssh.compile openssh_targetinstall: $(STATEDIR)/openssh.targetinstall $(STATEDIR)/openssh.targetinstall: $(STATEDIR)/openssh.install - @echo - @echo ----------------------------- - @echo target: openssh.targetinstall - @echo ----------------------------- - @echo + @$(call targetinfo, openssh.targetinstall) echo 'TODO: install openssh files (dont forget privsep)' touch $@ diff --git a/rules/openssl.make b/rules/openssl.make index 0467b629f..88496135b 100644 --- a/rules/openssl.make +++ b/rules/openssl.make @@ -1,4 +1,4 @@ -# $Id: openssl.make,v 1.2 2003/05/04 18:15:39 robert Exp $ +# $Id: openssl.make,v 1.3 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Jochen Striepe for Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -43,11 +43,7 @@ $(STATEDIR)/openssl.get: $(OPENSSL_SOURCE) touch $@ $(OPENSSL_SOURCE): - @echo - @echo ------------------- - @echo target: openssl.get - @echo ------------------- - @echo + @$(call targetinfo, openssl.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(OPENSSL_URL) # ---------------------------------------------------------------------------- @@ -57,11 +53,7 @@ $(OPENSSL_SOURCE): openssl_extract: $(STATEDIR)/openssl.extract $(STATEDIR)/openssl.extract: $(STATEDIR)/openssl.get - @echo - @echo ----------------------- - @echo target: openssl.extract - @echo ----------------------- - @echo + @$(call targetinfo, openssl.extract) $(OPENSSL_EXTRACT) $(OPENSSL_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -76,11 +68,7 @@ openssl_prepare_deps += $(STATEDIR)/zlib.install openssl_prepare_deps += $(STATEDIR)/glibc.install $(STATEDIR)/openssl.prepare: $(openssl_prepare_deps) - @echo - @echo ----------------------- - @echo target: openssl.prepare - @echo ----------------------- - @echo + @$(call targetinfo, openssl.prepare) cd $(OPENSSL_DIR) && ./Configure $(THUD) --prefix=$(PTXCONF_PREFIX) no-shared touch $@ @@ -91,11 +79,7 @@ $(STATEDIR)/openssl.prepare: $(openssl_prepare_deps) openssl_compile: $(STATEDIR)/openssl.compile $(STATEDIR)/openssl.compile: $(STATEDIR)/openssl.prepare - @echo - @echo ----------------------- - @echo target: openssl.compile - @echo ----------------------- - @echo + @$(call targetinfo, openssl.compile) cd $(OPENSSL_DIR) && PATH=$(PTXCONF_PREFIX)/bin:$$PATH make touch $@ @@ -106,11 +90,7 @@ $(STATEDIR)/openssl.compile: $(STATEDIR)/openssl.prepare openssl_install: $(STATEDIR)/openssl.install $(STATEDIR)/openssl.install: $(STATEDIR)/openssl.compile - @echo - @echo ----------------------- - @echo target: openssl.install - @echo ----------------------- - @echo + @$(call targetinfo, openssl.install) PATH=$(PTXCONF_PREFIX)/bin:$$PATH make -C $(OPENSSL_DIR) install touch $@ @@ -121,11 +101,7 @@ $(STATEDIR)/openssl.install: $(STATEDIR)/openssl.compile openssl_targetinstall: $(STATEDIR)/openssl.targetinstall $(STATEDIR)/openssl.targetinstall: $(STATEDIR)/openssl.install - @echo - @echo ----------------------------- - @echo target: openssl.targetinstall - @echo ----------------------------- - @echo + @$(call targetinfo, openssl.targetinstall) echo NO TARGET INSTALL FOR STATIC LIBS touch $@ diff --git a/rules/portmap.make b/rules/portmap.make index 5c69c422a..e9ac3dbba 100644 --- a/rules/portmap.make +++ b/rules/portmap.make @@ -1,4 +1,4 @@ -# $Id: portmap.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: portmap.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -33,11 +33,7 @@ $(STATEDIR)/portmap.get: $(PORTMAP_SOURCE) touch $@ $(PORTMAP_SOURCE): - @echo - @echo ------------------- - @echo target: portmap.get - @echo ------------------- - @echo + @$(call targetinfo, portmap.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(PORTMAP_URL) # ---------------------------------------------------------------------------- @@ -47,11 +43,7 @@ $(PORTMAP_SOURCE): portmap_extract: $(STATEDIR)/portmap.extract $(STATEDIR)/portmap.extract: $(STATEDIR)/portmap.get - @echo - @echo ----------------------- - @echo target: portmap.extract - @echo ----------------------- - @echo + @$(call targetinfo, portmap.extract) $(PORTMAP_EXTRACT) $(PORTMAP_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - # apply some fixes perl -i -p -e 's/^HOSTS_ACCESS/#HOSTS_ACCESS/g' $(PORTMAP_DIR)/Makefile @@ -69,11 +61,7 @@ $(STATEDIR)/portmap.extract: $(STATEDIR)/portmap.get portmap_prepare: $(STATEDIR)/portmap.prepare $(STATEDIR)/portmap.prepare: $(STATEDIR)/portmap.extract - @echo - @echo ----------------------- - @echo target: portmap.prepare - @echo ----------------------- - @echo + @$(call targetinfo, portmap.prepare) touch $@ # ---------------------------------------------------------------------------- @@ -88,11 +76,7 @@ portmap_compile_deps = $(STATEDIR)/portmap.prepare portmap_compile_deps += $(STATEDIR)/tcpwrapper.compile $(STATEDIR)/portmap.compile: $(portmap_compile_deps) - @echo - @echo ----------------------- - @echo target: portmap.compile - @echo ----------------------- - @echo + @$(call targetinfo, portmap.compile) $(PORTMAP_ENVIRONMENT) make -C $(PORTMAP_DIR) $(PORTMAP_MAKEVARS) touch $@ @@ -103,11 +87,7 @@ $(STATEDIR)/portmap.compile: $(portmap_compile_deps) portmap_install: $(STATEDIR)/portmap.install $(STATEDIR)/portmap.install: $(STATEDIR)/portmap.compile - @echo - @echo ----------------------- - @echo target: portmap.install - @echo ----------------------- - @echo + @$(call targetinfo, portmap.install) #make -C $(PORTMAP_DIR) install touch $@ @@ -118,11 +98,7 @@ $(STATEDIR)/portmap.install: $(STATEDIR)/portmap.compile portmap_targetinstall: $(STATEDIR)/portmap.targetinstall $(STATEDIR)/portmap.targetinstall: $(STATEDIR)/portmap.install - @echo - @echo ----------------------------- - @echo target: portmap.targetinstall - @echo ----------------------------- - @echo + @$(call targetinfo, portmap.targetinstall) ifeq (y, $(PTXCONF_PORTMAP_INSTALL_PORTMAPPER)) mkdir -p $(ROOTDIR)/sbin install $(PORTMAP_DIR)/portmap $(ROOTDIR)/sbin diff --git a/rules/proftpd.make b/rules/proftpd.make index cce4547c3..abeacf8c1 100644 --- a/rules/proftpd.make +++ b/rules/proftpd.make @@ -1,4 +1,4 @@ -# $Id: proftpd.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: proftpd.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -34,11 +34,7 @@ $(STATEDIR)/proftpd.get: $(PROFTPD_SOURCE) touch $@ $(PROFTPD_SOURCE): - @echo - @echo ------------------- - @echo target: proftpd.get - @echo ------------------- - @echo + @$(call targetinfo, proftpd.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(PROFTPD_URL) # ---------------------------------------------------------------------------- @@ -48,11 +44,7 @@ $(PROFTPD_SOURCE): proftpd_extract: $(STATEDIR)/proftpd.extract $(STATEDIR)/proftpd.extract: $(STATEDIR)/proftpd.get - @echo - @echo ----------------------- - @echo target: proftpd.extract - @echo ----------------------- - @echo + @$(call targetinfo, proftpd.extract) $(PROFTPD_EXTRACT) $(PROFTPD_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -87,11 +79,7 @@ PROFTPD_AUTOCONF += --disable-autoshadow endif $(STATEDIR)/proftpd.prepare: $(STATEDIR)/proftpd.extract - @echo - @echo ----------------------- - @echo target: proftpd.prepare - @echo ----------------------- - @echo + @$(call targetinfo, proftpd.prepare) cd $(PROFTPD_DIR) && \ $(PROFTPD_ENVIRONMENT) ./configure $(PROFTPD_AUTOCONF) touch $@ @@ -103,11 +91,7 @@ $(STATEDIR)/proftpd.prepare: $(STATEDIR)/proftpd.extract proftpd_compile: $(STATEDIR)/proftpd.compile $(STATEDIR)/proftpd.compile: $(STATEDIR)/proftpd.prepare - @echo - @echo ----------------------- - @echo target: proftpd.compile - @echo ----------------------- - @echo + @$(call targetinfo, proftpd.compile) make -C $(PROFTPD_DIR) $(MAKEPARMS) touch $@ @@ -118,11 +102,7 @@ $(STATEDIR)/proftpd.compile: $(STATEDIR)/proftpd.prepare proftpd_install: $(STATEDIR)/proftpd.install $(STATEDIR)/proftpd.install: $(STATEDIR)/proftpd.compile - @echo - @echo ----------------------- - @echo target: proftpd.install - @echo ----------------------- - @echo + @$(call targetinfo, proftpd.install) # don't make install - would install files on development host... touch $@ @@ -133,11 +113,7 @@ $(STATEDIR)/proftpd.install: $(STATEDIR)/proftpd.compile proftpd_targetinstall: $(STATEDIR)/proftpd.targetinstall $(STATEDIR)/proftpd.targetinstall: $(STATEDIR)/proftpd.install - @echo - @echo ----------------------- - @echo target: proftpd.targetinstall - @echo ----------------------- - @echo + @$(call targetinfo, proftpd.targetinstall) install $(PROFTPD_DIR)/proftpd $(ROOTDIR)/sbin/proftpd $(CROSSSTRIP) -S $(ROOTDIR)/sbin/proftpd touch $@ diff --git a/rules/rootfs.make b/rules/rootfs.make index d5343490b..c9b856e44 100644 --- a/rules/rootfs.make +++ b/rules/rootfs.make @@ -1,4 +1,4 @@ -# $Id: rootfs.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: rootfs.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -31,11 +31,7 @@ $(STATEDIR)/rootfs.get: $(ROOTFS_SOURCE) touch $@ $(ROOTFS_SOURCE): - @echo - @echo ------------------ - @echo target: rootfs.get - @echo ------------------ - @echo + @$(call targetinfo, rootfs.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(ROOTFS_URL) # ---------------------------------------------------------------------------- @@ -45,11 +41,7 @@ $(ROOTFS_SOURCE): rootfs_extract: $(STATEDIR)/rootfs.extract $(STATEDIR)/rootfs.extract: $(STATEDIR)/rootfs.get - @echo - @echo ---------------------- - @echo target: rootfs.extract - @echo ---------------------- - @echo + @$(call targetinfo, rootfs.extract) $(ROOTFS_EXTRACT) $(ROOTFS_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -60,11 +52,7 @@ $(STATEDIR)/rootfs.extract: $(STATEDIR)/rootfs.get rootfs_prepare: $(STATEDIR)/rootfs.prepare $(STATEDIR)/rootfs.prepare: $(STATEDIR)/rootfs.extract - @echo - @echo ---------------------- - @echo target: rootfs.prepare - @echo ---------------------- - @echo + @$(call targetinfo, rootfs.prepare) touch $@ # ---------------------------------------------------------------------------- @@ -74,11 +62,7 @@ $(STATEDIR)/rootfs.prepare: $(STATEDIR)/rootfs.extract rootfs_compile: $(STATEDIR)/rootfs.compile $(STATEDIR)/rootfs.compile: $(STATEDIR)/rootfs.prepare - @echo - @echo ---------------------- - @echo target: rootfs.compile - @echo ---------------------- - @echo + @$(call targetinfo, rootfs.compile) touch $@ # ---------------------------------------------------------------------------- @@ -88,11 +72,7 @@ $(STATEDIR)/rootfs.compile: $(STATEDIR)/rootfs.prepare rootfs_install: $(STATEDIR)/rootfs.install $(STATEDIR)/rootfs.install: $(STATEDIR)/rootfs.compile - @echo - @echo ---------------------- - @echo target: rootfs.install - @echo ---------------------- - @echo + @$(call targetinfo, rootfs.install) touch $@ # ---------------------------------------------------------------------------- @@ -102,11 +82,7 @@ $(STATEDIR)/rootfs.install: $(STATEDIR)/rootfs.compile rootfs_targetinstall: $(STATEDIR)/rootfs.targetinstall $(STATEDIR)/rootfs.targetinstall: $(STATEDIR)/rootfs.install - @echo - @echo ---------------------------- - @echo target: rootfs.targetinstall - @echo ---------------------------- - @echo + @$(call targetinfo, rootfs.targetinstall) ifeq (y, $(PTXCONF_ROOTFS_PROC)) mkdir -p $(ROOTDIR)/proc endif diff --git a/rules/rtai.make b/rules/rtai.make index fc4c48eba..f4f1a0fdf 100644 --- a/rules/rtai.make +++ b/rules/rtai.make @@ -1,5 +1,5 @@ # -*-makefile-*- -# $Id: rtai.make,v 1.3 2003/05/13 11:25:11 robert Exp $ +# $Id: rtai.make,v 1.4 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -45,11 +45,7 @@ $(STATEDIR)/rtai.get: $(RTAI_SOURCE) touch $@ $(RTAI_SOURCE): - @echo - @echo ---------------- - @echo target: rtai.get - @echo ---------------- - @echo + @$(call targetinfo, rtai.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(RTAI_URL) # ---------------------------------------------------------------------------- @@ -59,11 +55,7 @@ $(RTAI_SOURCE): rtai_extract: $(STATEDIR)/rtai.extract $(STATEDIR)/rtai.extract: $(STATEDIR)/rtai.get - @echo - @echo -------------------- - @echo target: rtai.extract - @echo -------------------- - @echo + @$(call targetinfo, rtai.extract) $(RTAI_EXTRACT) $(RTAI_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -77,11 +69,7 @@ rtai_prepare_deps = $(STATEDIR)/kernel.prepare rtai_prepare_deps += $(STATEDIR)/rtai.extract $(STATEDIR)/rtai.prepare: $(rtai_prepare_deps) - @echo - @echo -------------------- - @echo target: rtai.prepare - @echo -------------------- - @echo + @$(call targetinfo, rtai.prepare) install .rtaiconfig $(RTAI_DIR) cd $(RTAI_DIR) && \ yes no | ./configure --non-interactive --linuxdir $(KERNEL_DIR) --reconf @@ -104,11 +92,7 @@ $(STATEDIR)/rtai.prepare: $(rtai_prepare_deps) rtai_compile: $(STATEDIR)/rtai.compile $(STATEDIR)/rtai.compile: $(STATEDIR)/rtai.prepare - @echo - @echo -------------------- - @echo target: rtai.compile - @echo -------------------- - @echo + @$(call targetinfo, rtai.compile) cd $(RTAI_DIR) && TOPDIR=$(RTAI_DIR) PATH=$(PTXCONF_PREFIX)/bin:$$PATH make touch $@ @@ -119,11 +103,7 @@ $(STATEDIR)/rtai.compile: $(STATEDIR)/rtai.prepare rtai_install: $(STATEDIR)/rtai.install $(STATEDIR)/rtai.install: $(STATEDIR)/rtai.compile - @echo - @echo -------------------- - @echo target: rtai.install - @echo -------------------- - @echo + @$(call targetinfo, rtai.install) touch $@ # ---------------------------------------------------------------------------- @@ -133,11 +113,7 @@ $(STATEDIR)/rtai.install: $(STATEDIR)/rtai.compile rtai_targetinstall: $(STATEDIR)/rtai.targetinstall $(STATEDIR)/rtai.targetinstall: $(STATEDIR)/rtai.install - @echo - @echo -------------------------- - @echo target: rtai.targetinstall - @echo -------------------------- - @echo + @$(call targetinfo, rtai.targetinstall) mkdir -p $(ROOTDIR)/$(RTAI_MODULEDIR) install $(RTAI_DIR)/rtaidir/rtai.o $(ROOTDIR)/$(RTAI_MODULEDIR) $(CROSSSTRIP) -S $(ROOTDIR)/$(RTAI_MODULEDIR)/rtai.o diff --git a/rules/tcpwrapper.make b/rules/tcpwrapper.make index bfa5ce963..f021e71e6 100644 --- a/rules/tcpwrapper.make +++ b/rules/tcpwrapper.make @@ -1,4 +1,4 @@ -# $Id: tcpwrapper.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: tcpwrapper.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2003 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -37,19 +37,11 @@ $(STATEDIR)/tcpwrapper.get: $(TCPWRAPPER_SOURCE) $(TCPWRAPPER_PTXPATCH_SOURCE) touch $@ $(TCPWRAPPER_SOURCE): - @echo - @echo ---------------------- - @echo target: tcpwrapper.get - @echo ---------------------- - @echo + @$(call targetinfo, tcpwrapper.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(TCPWRAPPER_URL) $(TCPWRAPPER_PTXPATCH_SOURCE): - @echo - @echo ------------------------------- - @echo target: tcpwrapper-ptxpatch.get - @echo ------------------------------- - @echo + @$(call targetinfo, tcpwrapper-ptxpatch.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(TCPWRAPPER_PTXPATCH_URL) # ---------------------------------------------------------------------------- @@ -59,11 +51,7 @@ $(TCPWRAPPER_PTXPATCH_SOURCE): tcpwrapper_extract: $(STATEDIR)/tcpwrapper.extract $(STATEDIR)/tcpwrapper.extract: $(STATEDIR)/tcpwrapper.get - @echo - @echo -------------------------- - @echo target: tcpwrapper.extract - @echo -------------------------- - @echo + @$(call targetinfo, tcpwrapper.extract) $(TCPWRAPPER_EXTRACT) $(TCPWRAPPER_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - cd $(TCPWRAPPER_DIR) && patch -p1 < $(TCPWRAPPER_PTXPATCH_SOURCE) touch $@ @@ -75,11 +63,7 @@ $(STATEDIR)/tcpwrapper.extract: $(STATEDIR)/tcpwrapper.get tcpwrapper_prepare: $(STATEDIR)/tcpwrapper.prepare $(STATEDIR)/tcpwrapper.prepare: $(STATEDIR)/tcpwrapper.extract - @echo - @echo -------------------------- - @echo target: tcpwrapper.prepare - @echo -------------------------- - @echo + @$(call targetinfo, tcpwrapper.prepare) touch $@ # ---------------------------------------------------------------------------- @@ -91,11 +75,7 @@ tcpwrapper_compile: $(STATEDIR)/tcpwrapper.compile TCPWRAPPER_ENVIRONMENT = CC=$(PTXCONF_GNU_TARGET)-gcc $(STATEDIR)/tcpwrapper.compile: $(STATEDIR)/tcpwrapper.prepare - @echo - @echo -------------------------- - @echo target: tcpwrapper.compile - @echo -------------------------- - @echo + @$(call targetinfo, tcpwrapper.compile) $(TCPWRAPPER_ENVIRONMENT) make -C $(TCPWRAPPER_DIR) linux $(TCPWRAPPER_MAKEVARS) touch $@ @@ -106,11 +86,7 @@ $(STATEDIR)/tcpwrapper.compile: $(STATEDIR)/tcpwrapper.prepare tcpwrapper_install: $(STATEDIR)/tcpwrapper.install $(STATEDIR)/tcpwrapper.install: $(STATEDIR)/tcpwrapper.compile - @echo - @echo -------------------------- - @echo target: tcpwrapper.install - @echo -------------------------- - @echo + @$(call targetinfo, tcpwrapper.install) touch $@ # ---------------------------------------------------------------------------- @@ -120,11 +96,7 @@ $(STATEDIR)/tcpwrapper.install: $(STATEDIR)/tcpwrapper.compile tcpwrapper_targetinstall: $(STATEDIR)/tcpwrapper.targetinstall $(STATEDIR)/tcpwrapper.targetinstall: $(STATEDIR)/tcpwrapper.install - @echo - @echo -------------------------------- - @echo target: tcpwrapper.targetinstall - @echo -------------------------------- - @echo + @$(call targetinfo, tcpwrapper.targetinstall) ifeq (y, $(PTXCONF_TCPWRAPPER_INSTALL_TCPD)) mkdir -p $(ROOTDIR)/usr/sbin install $(TCPWRAPPER_DIR)/tcpd $(ROOTDIR)/usr/sbin diff --git a/rules/template b/rules/template index ae6b70183..7fe4ac1e7 100644 --- a/rules/template +++ b/rules/template @@ -1,4 +1,4 @@ -# $Id: template,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: template,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -31,11 +31,7 @@ $(STATEDIR)/foo.get: $(FOO_SOURCE) touch $@ $(FOO_SOURCE): - @echo - @echo ------------------- - @echo target: foo.get - @echo ------------------- - @echo + @$(call targetinfo, foo.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(FOO_URL) # ---------------------------------------------------------------------------- @@ -45,11 +41,7 @@ $(FOO_SOURCE): foo_extract: $(STATEDIR)/foo.extract $(STATEDIR)/foo.extract: $(STATEDIR)/foo.get - @echo - @echo ----------------------- - @echo target: foo.extract - @echo ----------------------- - @echo + @$(call targetinfo, foo.extract) $(FOO_EXTRACT) $(FOO_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -60,11 +52,7 @@ $(STATEDIR)/foo.extract: $(STATEDIR)/foo.get foo_prepare: $(STATEDIR)/foo.prepare $(STATEDIR)/foo.prepare: $(STATEDIR)/foo.extract - @echo - @echo ----------------------- - @echo target: foo.prepare - @echo ----------------------- - @echo + @$(call targetinfo, foo.prepare) cd $(FOO_DIR) && \ CFLAGS=$(CFLAGS) ./configure \ --some-options @@ -77,11 +65,7 @@ $(STATEDIR)/foo.prepare: $(STATEDIR)/foo.extract foo_compile: $(STATEDIR)/foo.compile $(STATEDIR)/foo.compile: $(STATEDIR)/foo.prepare - @echo - @echo ----------------------- - @echo target: foo.compile - @echo ----------------------- - @echo + @$(call targetinfo, foo.compile) make -C $(FOO_DIR) $(MAKEPARMS) touch $@ @@ -92,11 +76,7 @@ $(STATEDIR)/foo.compile: $(STATEDIR)/foo.prepare foo_install: $(STATEDIR)/foo.install $(STATEDIR)/foo.install: $(STATEDIR)/foo.compile - @echo - @echo ----------------------- - @echo target: foo.install - @echo ----------------------- - @echo + @$(call targetinfo, foo.install) make -C $(FOO_DIR) install touch $@ @@ -108,11 +88,7 @@ $(STATEDIR)/foo.install: $(STATEDIR)/foo.compile foo_targetinstall: $(STATEDIR)/foo.targetinstall $(STATEDIR)/foo.targetinstall: $(STATEDIR)/foo.install - @echo - @echo ----------------------- - @echo target: foo.targetinstall - @echo ----------------------- - @echo + @$(call targetinfo, foo.targetinstall) # don't forget to $(CROSSSTRIP) -S your source! touch $@ diff --git a/rules/u-boot-mkimage.make b/rules/u-boot-mkimage.make index 4f281dd5c..73fbd3a4a 100644 --- a/rules/u-boot-mkimage.make +++ b/rules/u-boot-mkimage.make @@ -1,5 +1,5 @@ # -*-makefile-*- -# $Id: u-boot-mkimage.make,v 1.3 2003/05/13 11:37:14 robert Exp $ +# $Id: u-boot-mkimage.make,v 1.4 2003/06/16 12:05:16 bsp Exp $ # # (c) 2003 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -32,11 +32,7 @@ $(STATEDIR)/umkimage.get: $(UMKIMAGE_SOURCE) touch $@ $(UMKIMAGE_SOURCE): - @echo - @echo -------------------- - @echo target: umkimage.get - @echo -------------------- - @echo + @$(call targetinfo, umkimage.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(UMKIMAGE_URL) # ---------------------------------------------------------------------------- @@ -46,11 +42,7 @@ $(UMKIMAGE_SOURCE): umkimage_extract: $(STATEDIR)/umkimage.extract $(STATEDIR)/umkimage.extract: $(STATEDIR)/umkimage.get - @echo - @echo ------------------------ - @echo target: umkimage.extract - @echo ------------------------ - @echo + @$(call targetinfo, umkimage.extract) $(UMKIMAGE_EXTRACT) $(UMKIMAGE_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -61,11 +53,7 @@ $(STATEDIR)/umkimage.extract: $(STATEDIR)/umkimage.get umkimage_prepare: $(STATEDIR)/umkimage.prepare $(STATEDIR)/umkimage.prepare: $(STATEDIR)/umkimage.extract - @echo - @echo ------------------------ - @echo target: umkimage.prepare - @echo ------------------------ - @echo + @$(call targetinfo, umkimage.prepare) touch $@ # ---------------------------------------------------------------------------- @@ -75,13 +63,9 @@ $(STATEDIR)/umkimage.prepare: $(STATEDIR)/umkimage.extract umkimage_compile: $(STATEDIR)/umkimage.compile $(STATEDIR)/umkimage.compile: $(STATEDIR)/umkimage.prepare - @echo - @echo ------------------------ - @echo target: umkimage.compile - @echo ------------------------ - @echo + @$(call targetinfo, umkimage.compile) # FIXME: no spaces in pathnames: - CC=$(PTXCONF_PREFIX)/bin/$(PTXCONF_GNU_TARGET)-gcc CFLAGS=-I$(PTXCONF_PREFIX)/include LIBS=-L$(PTXCONF_PREFIX)/lib make -C $(UMKIMAGE_DIR) + CC=$(HOSTCC) CFLAGS=-I$(PTXCONF_PREFIX)/include LIBS=-L$(PTXCONF_PREFIX)/lib make -C $(UMKIMAGE_DIR) touch $@ # ---------------------------------------------------------------------------- @@ -91,11 +75,7 @@ $(STATEDIR)/umkimage.compile: $(STATEDIR)/umkimage.prepare umkimage_install: $(STATEDIR)/umkimage.install $(STATEDIR)/umkimage.install: $(STATEDIR)/umkimage.compile - @echo - @echo ------------------------ - @echo target: umkimage.install - @echo ------------------------ - @echo + @$(call targetinfo, umkimage.install) install $(UMKIMAGE_DIR)/mkimage $(PTXCONF_PREFIX)/bin/u-boot-mkimage touch $@ @@ -106,11 +86,7 @@ $(STATEDIR)/umkimage.install: $(STATEDIR)/umkimage.compile umkimage_targetinstall: $(STATEDIR)/umkimage.targetinstall $(STATEDIR)/umkimage.targetinstall: $(STATEDIR)/umkimage.install - @echo - @echo ----------------------- - @echo target: umkimage.targetinstall - @echo ----------------------- - @echo + @$(call targetinfo, umkimage.targetinstall) touch $@ # ---------------------------------------------------------------------------- diff --git a/rules/utelnetd.make b/rules/utelnetd.make index f6cbe83b4..b146b2de5 100644 --- a/rules/utelnetd.make +++ b/rules/utelnetd.make @@ -1,4 +1,4 @@ -# $Id: utelnetd.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: utelnetd.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -33,11 +33,7 @@ $(STATEDIR)/utelnetd.get: $(UTELNETD_SOURCE) touch $@ $(UTELNETD_SOURCE): - @echo - @echo ------------ - @echo target: utelnetd.get - @echo ------------ - @echo + @$(call targetinfo, utelnetd.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(UTELNETD_URL) # ---------------------------------------------------------------------------- @@ -47,11 +43,7 @@ $(UTELNETD_SOURCE): utelnetd_extract: $(STATEDIR)/utelnetd.extract $(STATEDIR)/utelnetd.extract: $(STATEDIR)/utelnetd.get - @echo - @echo ---------------- - @echo target: utelnetd.extract - @echo ---------------- - @echo + @$(call targetinfo, utelnetd.extract) $(UTELNETD_EXTRACT) $(UTELNETD_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -62,11 +54,7 @@ $(STATEDIR)/utelnetd.extract: $(STATEDIR)/utelnetd.get utelnetd_prepare: $(STATEDIR)/utelnetd.prepare $(STATEDIR)/utelnetd.prepare: $(STATEDIR)/utelnetd.extract - @echo - @echo ---------------- - @echo target: utelnetd.prepare - @echo ---------------- - @echo + @$(call targetinfo, utelnetd.prepare) touch $@ # ---------------------------------------------------------------------------- @@ -83,11 +71,7 @@ UTELNETD_MAKEVARS += CROSS=arm-linux- endif $(STATEDIR)/utelnetd.compile: $(STATEDIR)/utelnetd.prepare - @echo - @echo ---------------- - @echo target: utelnetd.compile - @echo ---------------- - @echo + @$(call targetinfo, utelnetd.compile) $(UTELNETD_ENVIRONMENT) make -C $(UTELNETD_DIR) $(UTELNETD_MAKEVARS) touch $@ @@ -98,11 +82,7 @@ $(STATEDIR)/utelnetd.compile: $(STATEDIR)/utelnetd.prepare utelnetd_install: $(STATEDIR)/utelnetd.install $(STATEDIR)/utelnetd.install: $(STATEDIR)/utelnetd.compile - @echo - @echo ---------------- - @echo target: utelnetd.install - @echo ---------------- - @echo + @$(call targetinfo, utelnetd.install) install -d $(PTXCONF_PREFIX)/sbin/ install $(UTELNETD_DIR)/utelnetd $(PTXCONF_PREFIX)/sbin/ touch $@ @@ -114,11 +94,7 @@ $(STATEDIR)/utelnetd.install: $(STATEDIR)/utelnetd.compile utelnetd_targetinstall: $(STATEDIR)/utelnetd.targetinstall $(STATEDIR)/utelnetd.targetinstall: $(STATEDIR)/utelnetd.install - @echo - @echo ---------------------- - @echo target: utelnetd.targetinstall - @echo ---------------------- - @echo + @$(call targetinfo, utelnetd.targetinstall) install -d $(ROOTDIR)/sbin/ install $(UTELNETD_DIR)/utelnetd $(ROOTDIR)/sbin/ $(CROSSSTRIP) -S $(ROOTDIR)/sbin/utelnetd diff --git a/rules/xchain-binutils.make b/rules/xchain-binutils.make index bdd0d8193..edafc3eb7 100644 --- a/rules/xchain-binutils.make +++ b/rules/xchain-binutils.make @@ -1,5 +1,5 @@ # -*-makefile-*- -# $Id: xchain-binutils.make,v 1.3 2003/05/13 11:37:14 robert Exp $ +# $Id: xchain-binutils.make,v 1.4 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -34,11 +34,7 @@ $(STATEDIR)/xchain-binutils.get: $(BINUTILS_SOURCE) touch $@ $(BINUTILS_SOURCE): - @echo - @echo ------------------- - @echo target: xchain-binutils.get - @echo ------------------- - @echo + @$(call targetinfo, xchain-binutils.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(BINUTILS_URL) # ---------------------------------------------------------------------------- @@ -48,11 +44,7 @@ $(BINUTILS_SOURCE): xchain-binutils_extract: $(STATEDIR)/xchain-binutils.extract $(STATEDIR)/xchain-binutils.extract: $(STATEDIR)/xchain-binutils.get - @echo - @echo ----------------------- - @echo target: xchain-binutils.extract - @echo ----------------------- - @echo + @$(call targetinfo, xchain-binutils.extract) $(BINUTILS_EXTRACT) $(BINUTILS_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ @@ -63,11 +55,7 @@ $(STATEDIR)/xchain-binutils.extract: $(STATEDIR)/xchain-binutils.get xchain-binutils_prepare: $(STATEDIR)/xchain-binutils.prepare $(STATEDIR)/xchain-binutils.prepare: $(STATEDIR)/xchain-binutils.extract - @echo - @echo ----------------------- - @echo target: xchain-binutils.prepare - @echo ----------------------- - @echo + @$(call targetinfo, xchain-binutils.prepare) cd $(BINUTILS_DIR) && \ ./configure \ --disable-shared \ @@ -83,11 +71,7 @@ $(STATEDIR)/xchain-binutils.prepare: $(STATEDIR)/xchain-binutils.extract xchain-binutils_compile: $(STATEDIR)/xchain-binutils.compile $(STATEDIR)/xchain-binutils.compile: $(STATEDIR)/xchain-binutils.prepare - @echo - @echo ----------------------- - @echo target: xchain-binutils.compile - @echo ----------------------- - @echo + @$(call targetinfo, xchain-binutils.compile) cd $(BINUTILS_DIR) && make touch $@ @@ -98,11 +82,7 @@ $(STATEDIR)/xchain-binutils.compile: $(STATEDIR)/xchain-binutils.prepare xchain-binutils_install: $(STATEDIR)/xchain-binutils.install $(STATEDIR)/xchain-binutils.install: $(STATEDIR)/xchain-binutils.compile - @echo - @echo ----------------------- - @echo target: xchain-binutils.install - @echo ----------------------- - @echo + @$(call targetinfo, xchain-binutils.install) # [ -d $(PTXCONF_PREFIX) ] || \ # $(SUDO) install -g users -m 0755 \ # -o $(PTXUSER) \ @@ -117,11 +97,7 @@ $(STATEDIR)/xchain-binutils.install: $(STATEDIR)/xchain-binutils.compile xchain-binutils_targetinstall: $(STATEDIR)/xchain-binutils.targetinstall $(STATEDIR)/xchain-binutils.targetinstall: $(STATEDIR)/xchain-binutils.install - @echo - @echo ----------------------------- - @echo target: xchain-binutils.targetinstall - @echo ----------------------------- - @echo + @$(call targetinfo, xchain-binutils.targetinstall) touch $@ # ---------------------------------------------------------------------------- diff --git a/rules/xchain-gccstage1.make b/rules/xchain-gccstage1.make index 310178c81..6fea56a96 100644 --- a/rules/xchain-gccstage1.make +++ b/rules/xchain-gccstage1.make @@ -1,4 +1,4 @@ -# $Id: xchain-gccstage1.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: xchain-gccstage1.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002,2003 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -52,19 +52,9 @@ $(STATEDIR)/xchain-gccstage1.get: $(xchain-gccstage1_get_deps) touch $@ $(GCC_SOURCE): - @echo - @echo ----------------------------------------- - @echo "target: xchain-gccstage1.get (gcc source)" - @echo ----------------------------------------- - @echo wget -P $(SRCDIR) $(PASSIVEFTP) $(GCC_URL) $(GCC_ARMPATCH_SOURCE): - @echo - @echo ---------------------------------------- - @echo "target: xchain-gccstage1.get (ARM patch)" - @echo ---------------------------------------- - @echo wget -P $(SRCDIR) $(PASSIVEFTP) $(GCC_ARMPATCH_URL) # ---------------------------------------------------------------------------- @@ -74,11 +64,7 @@ $(GCC_ARMPATCH_SOURCE): xchain-gccstage1_extract: $(STATEDIR)/xchain-gccstage1.extract $(STATEDIR)/xchain-gccstage1.extract: $(STATEDIR)/xchain-gccstage1.get - @echo - @echo -------------------------------- - @echo target: xchain-gccstage1.extract - @echo -------------------------------- - @echo + @$(call targetinfo, xchain-gccstage1.extract) $(GCC_EXTRACT) $(GCC_SOURCE) | tar -C $(BUILDDIR) -xf - # ifeq (y, $(PTXCONF_ARCH_ARM)) @@ -113,11 +99,7 @@ xchain-gccstage1_prepare_deps += $(STATEDIR)/xchain-gccstage1.extract xchain-gccstage1_prepare_deps += $(STATEDIR)/xchain-kernel.prepare $(STATEDIR)/xchain-gccstage1.prepare: $(xchain-gccstage1_prepare_deps) - @echo - @echo -------------------------------- - @echo target: xchain-gccstage1.prepare - @echo -------------------------------- - @echo + @$(call targetinfo, xchain-gccstage1.prepare) mkdir -p $(GCC_STAGE1_DIR) # # copy some header files @@ -188,11 +170,7 @@ xchain-gccstage1_compile: $(STATEDIR)/xchain-gccstage1.compile $(STATEDIR)/xchain-gccstage1.compile: \ $(STATEDIR)/xchain-gccstage1.prepare - @echo - @echo -------------------------------- - @echo target: xchain-gccstage1.compile - @echo -------------------------------- - @echo + @$(call targetinfo, xchain-gccstage1.compile) cd $(GCC_STAGE1_DIR) && \ PATH=$(PATH):$(PTXCONF_PREFIX)/bin make touch $@ @@ -204,11 +182,7 @@ $(STATEDIR)/xchain-gccstage1.compile: \ xchain-gccstage1_install: $(STATEDIR)/xchain-gccstage1.install $(STATEDIR)/xchain-gccstage1.install: $(STATEDIR)/xchain-gccstage1.compile - @echo - @echo -------------------------------- - @echo target: xchain-gccstage1.install - @echo -------------------------------- - @echo + @$(call targetinfo, xchain-gccstage1.install) cd $(GCC_STAGE1_DIR) && \ PATH=$(PATH):$(PTXCONF_PREFIX)/bin make install touch $@ @@ -220,11 +194,7 @@ $(STATEDIR)/xchain-gccstage1.install: $(STATEDIR)/xchain-gccstage1.compile xchain-gccstage1_targetinstall: $(STATEDIR)/xchain-gccstage1.targetinstall $(STATEDIR)/xchain-gccstage1.targetinstall: $(STATEDIR)/xchain-gccstage1.install - @echo - @echo -------------------------------------- - @echo target: xchain-gccstage1.targetinstall - @echo -------------------------------------- - @echo + @$(call targetinfo, xchain-gccstage1.targetinstall) touch $@ # ---------------------------------------------------------------------------- diff --git a/rules/xchain-gccstage2.make b/rules/xchain-gccstage2.make index 92a9f58ae..31507c6e1 100644 --- a/rules/xchain-gccstage2.make +++ b/rules/xchain-gccstage2.make @@ -1,4 +1,4 @@ -# $Id: xchain-gccstage2.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: xchain-gccstage2.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -28,11 +28,7 @@ endif xchain-gccstage2_get: $(STATEDIR)/xchain-gccstage2.get $(STATEDIR)/xchain-gccstage2.get: $(STATEDIR)/xchain-gccstage1.get - @echo - @echo ---------------------------- - @echo target: xchain-gccstage2.get - @echo ---------------------------- - @echo + @$(call targetinfo, xchain-gccstage2.get) touch $@ # ---------------------------------------------------------------------------- @@ -44,11 +40,7 @@ xchain-gccstage2_extract: $(STATEDIR)/xchain-gccstage2.extract $(STATEDIR)/xchain-gccstage2.extract: \ $(STATEDIR)/xchain-gccstage2.get \ $(STATEDIR)/glibc.install - @echo - @echo -------------------------------- - @echo target: xchain-gccstage2.extract - @echo -------------------------------- - @echo + @$(call targetinfo, xchain-gccstage2.extract) # remove glibc header hack ifeq (y, $(PTXCONF_ARCH_ARM)) perl -p -i -e \ @@ -72,11 +64,7 @@ xchain-gccstage2_prepare_deps = $(STATEDIR)/xchain-gccstage2.extract xchain-gccstage2_prepare_deps += $(STATEDIR)/xchain-kernel.prepare $(STATEDIR)/xchain-gccstage2.prepare: $(xchain-gccstage2_prepare_deps) - @echo - @echo -------------------------------- - @echo target: xchain-gccstage2.prepare - @echo -------------------------------- - @echo + @$(call targetinfo, xchain-gccstage2.prepare) [ -d $(GCC_STAGE2_DIR) ] || mkdir $(GCC_STAGE2_DIR) # # copy some header files @@ -124,11 +112,7 @@ xchain-gccstage2_compile: $(STATEDIR)/xchain-gccstage2.compile $(STATEDIR)/xchain-gccstage2.compile: \ $(STATEDIR)/xchain-gccstage2.prepare - @echo - @echo -------------------------------- - @echo target: xchain-gccstage2.compile - @echo -------------------------------- - @echo + @$(call targetinfo, xchain-gccstage2.compile) # FIXME: why do we have to define _GNU_SOURCE here? Otherwhise # the c++ compiler cannot be compiled. cd $(GCC_STAGE2_DIR) && \ @@ -142,11 +126,7 @@ $(STATEDIR)/xchain-gccstage2.compile: \ xchain-gccstage2_install: $(STATEDIR)/xchain-gccstage2.install $(STATEDIR)/xchain-gccstage2.install: $(STATEDIR)/xchain-gccstage2.compile - @echo - @echo -------------------------------- - @echo target: xchain-gccstage2.install - @echo -------------------------------- - @echo + @$(call targetinfo, xchain-gccstage2.install) cd $(GCC_STAGE2_DIR) && \ PATH=$(PATH):$(PTXCONF_PREFIX)/bin make install touch $@ @@ -158,11 +138,7 @@ $(STATEDIR)/xchain-gccstage2.install: $(STATEDIR)/xchain-gccstage2.compile xchain-gccstage2_targetinstall: $(STATEDIR)/xchain-gccstage2.targetinstall $(STATEDIR)/xchain-gccstage2.targetinstall: $(STATEDIR)/xchain-gccstage2.install - @echo - @echo -------------------------------------- - @echo target: xchain-gccstage2.targetinstall - @echo -------------------------------------- - @echo + @$(call targetinfo, xchain-gccstage2.targetinstall) touch $@ # ---------------------------------------------------------------------------- diff --git a/rules/xchain-glibc.make b/rules/xchain-glibc.make index 8454ac9c4..49c0a5a30 100644 --- a/rules/xchain-glibc.make +++ b/rules/xchain-glibc.make @@ -1,4 +1,4 @@ -# $Id: xchain-glibc.make,v 1.3 2003/04/30 14:14:16 robert Exp $ +# $Id: xchain-glibc.make,v 1.4 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -78,27 +78,15 @@ $(STATEDIR)/glibc-ptxpatch.get: $(GLIBC_PTXPATCH_SOURCE) touch $@ $(GLIBC_SOURCE): - @echo - @echo ---------------------- - @echo target: glibc-base.get - @echo ---------------------- - @echo + @$(call targetinfo, glibc-base.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(GLIBC_URL) $(GLIBC_THREADS_SOURCE): - @echo - @echo ------------------------- - @echo target: glibc-threads.get - @echo ------------------------- - @echo + @$(call targetinfo, glibc-threads.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(GLIBC_THREADS_URL) $(GLIBC_PTXPATCH_SOURCE): - @echo - @echo -------------------------- - @echo target: glibc-ptxpatch.get - @echo -------------------------- - @echo + @$(call targetinfo, glibc-ptxpatch.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(GLIBC_PTXPATCH_URL) # ---------------------------------------------------------------------------- @@ -118,14 +106,10 @@ $(STATEDIR)/glibc.extract: $(glibc_extract_deps) touch $@ $(STATEDIR)/glibc-base.extract: $(STATEDIR)/glibc-base.get $(STATEDIR)/glibc-ptxpatch.get - @echo - @echo -------------------------- - @echo target: glibc-base.extract - @echo -------------------------- - @echo + @$(call targetinfo, glibc-base.extract) $(GLIBC_EXTRACT) $(GLIBC_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - # fix some bugs... - cd $(GLIBC_DIR) && patch -p0 < $(GLIBC_PTXPATCH_SOURCE) + cd $(GLIBC_DIR) && patch -p1 < $(GLIBC_PTXPATCH_SOURCE) # fix: sunrpc's makefile has the wrong magic to find cpp... # FIXME: is this the right fix for other versions than 2.2.5? cd $(GLIBC_DIR)/sunrpc && mkdir cpp && ln -s $(PTXCONF_PREFIX)/bin/cpp cpp/ @@ -135,11 +119,7 @@ $(STATEDIR)/glibc-base.extract: $(STATEDIR)/glibc-base.get $(STATEDIR)/glibc-ptx touch $@ $(STATEDIR)/glibc-threads.extract: $(STATEDIR)/glibc-threads.get - @echo - @echo ----------------------------- - @echo target: glibc-threads.extract - @echo ----------------------------- - @echo + @$(call targetinfo, glibc-threads.extract) $(GLIBC_THREADS_EXTRACT) $(GLIBC_THREADS_SOURCE) | $(TAR) -C $(GLIBC_DIR) -xf - touch $@ @@ -224,11 +204,7 @@ glibc_prepare_deps += $(STATEDIR)/xchain-gccstage1.install endif $(STATEDIR)/glibc.prepare: $(glibc_prepare_deps) - @echo - @echo --------------------- - @echo target: glibc.prepare - @echo --------------------- - @echo + @$(call targetinfo, glibc.prepare) ifeq (y,$(PTXCONF_BUILD_CROSSCHAIN)) mkdir -p $(BUILDDIR)/$(GLIBC)-obj cd $(BUILDDIR)/$(GLIBC)-obj && \ @@ -256,21 +232,11 @@ $(STATEDIR)/glibc.prepare: $(glibc_prepare_deps) glibc_compile: $(STATEDIR)/glibc.compile $(STATEDIR)/glibc.compile: $(STATEDIR)/glibc.prepare - @echo - @echo --------------------------- - @echo "target: glibc.compile (obj)" - @echo --------------------------- - @echo ifeq (y,$(PTXCONF_BUILD_CROSSCHAIN)) # let makefile find autoconf-2.13 as default cd $(BUILDDIR)/$(GLIBC)-obj && $(GLIBC_ENVIRONMENT) make $(MAKEVARS) endif # FIXME: We need 2 separate targets *here* - @echo - @echo ----------------------------- - @echo "target: glibc.compile (ld-so)" - @echo ----------------------------- - @echo # FIXME: is there another possibility to create an ld.so which has # correct search paths compiled in for /lib? cd $(BUILDDIR)/$(GLIBC)-ldso && $(GLIBC_ENVIRONMENT) make $(MAKEVARS) @@ -283,11 +249,7 @@ $(STATEDIR)/glibc.compile: $(STATEDIR)/glibc.prepare glibc_install: $(STATEDIR)/glibc.install $(STATEDIR)/glibc.install: $(STATEDIR)/glibc.compile - @echo - @echo --------------------- - @echo target: glibc.install - @echo --------------------- - @echo + @$(call targetinfo, glibc.install) ifeq (y,$(PTXCONF_BUILD_CROSSCHAIN)) cd $(BUILDDIR)/$(GLIBC)-obj && $(GLIBC_ENVIRONMENT) make install endif @@ -300,11 +262,7 @@ $(STATEDIR)/glibc.install: $(STATEDIR)/glibc.compile glibc_targetinstall: $(STATEDIR)/glibc.targetinstall $(STATEDIR)/glibc.targetinstall: $(STATEDIR)/glibc.install - @echo - @echo --------------------------- - @echo target: glibc.targetinstall - @echo --------------------------- - @echo + @$(call targetinfo, glibc.targetinstall) # CAREFUL: don't never ever make install in ldso tree!!! mkdir -p $(ROOTDIR)/lib install $(BUILDDIR)/$(GLIBC)-ldso/elf/ld.so $(ROOTDIR)/lib/ld-$(GLIBC_VERSION).so diff --git a/rules/xchain-kernel.make b/rules/xchain-kernel.make index 07bc97585..ba62a1d20 100644 --- a/rules/xchain-kernel.make +++ b/rules/xchain-kernel.make @@ -1,4 +1,4 @@ -# $Id: xchain-kernel.make,v 1.1 2003/04/24 08:06:33 jst Exp $ +# $Id: xchain-kernel.make,v 1.2 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -136,35 +136,19 @@ $(STATEDIR)/kernel.get: $(kernel_get_deps) $(STATEDIR)/xchain-kernel.get: $(kernel_get_deps) $(KERNEL_SOURCE): - @echo - @echo ------------------ - @echo target: kernel.get - @echo ------------------ - @echo + @$(call targetinfo, kernel.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(KERNEL_URL) $(KERNEL_RMKPATCH_SOURCE): - @echo - @echo --------------------------- - @echo target: kernel-armpatch.get - @echo --------------------------- - @echo + @$(call targetinfo, kernel-armpatch.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(KERNEL_RMKPATCH_URL) $(KERNEL_PXAPATCH_SOURCE): - @echo - @echo --------------------------- - @echo target: kernel-pxapatch.get - @echo --------------------------- - @echo + @$(call targetinfo, kernel-pxapatch.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(KERNEL_PXAPATCH_URL) $(KERNEL_PTXPATCH_SOURCE): - @echo - @echo --------------------------- - @echo target: kernel-ptxpatch.get - @echo --------------------------- - @echo + @$(call targetinfo, kernel-ptxpatch.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(KERNEL_PTXPATCH_URL) # @@ -179,11 +163,7 @@ $(STATEDIR)/rtai-patches.get: $(RTAI_SOURCE) # xchain # $(STATEDIR)/xchain-kernel.get: $(kernel_get_deps) - @echo - @echo ------------------------- - @echo target: xchain-kernel.get - @echo ------------------------- - @echo + @$(call targetinfo, xchain-kernel.get) touch $@ # ---------------------------------------------------------------------------- @@ -201,11 +181,7 @@ kernel_extract_deps += $(STATEDIR)/mtd.extract endif $(STATEDIR)/kernel.extract: $(kernel_extract_deps) - @echo - @echo ---------------------- - @echo target: kernel.extract - @echo ---------------------- - @echo + @$(call targetinfo, kernel.extract) # # remove old kernel directories before we extract rm -fr $(KERNEL_DIR) $(KERNEL_EXTRACT) $(KERNEL_SOURCE) | tar -C $(BUILDDIR) -xf - @@ -261,11 +237,7 @@ $(STATEDIR)/kernel.extract: $(kernel_extract_deps) rtai-patches_extract: $(STATEDIR)/rtai-patches.extract $(STATEDIR)/rtai-patches.extract: $(STATEDIR)/rtai-patches.get - @echo - @echo ---------------------------- - @echo target: rtai-patches.extract - @echo ---------------------------- - @echo + @$(call targetinfo, rtai-patches.extract) # # remove old rtaipatch directory rm -fr $(KERNEL_RTAIPATCH_DIR) install -d $(KERNEL_RTAIPATCH_DIR) @@ -281,11 +253,7 @@ $(STATEDIR)/rtai-patches.extract: $(STATEDIR)/rtai-patches.get xchain-kernel_extract: $(STATEDIR)/xchain-kernel.extract $(STATEDIR)/xchain-kernel.extract: $(STATEDIR)/xchain-kernel.get $(STATEDIR)/mtd.extract - @echo - @echo ----------------------------- - @echo target: xchain-kernel.extract - @echo ----------------------------- - @echo + @$(call targetinfo, xchain-kernel.extract) # # rm -fr $(BUILDDIR)/xchain-kernel mkdir -p $(BUILDDIR)/xchain-kernel/tmp @@ -358,11 +326,7 @@ kernel_prepare_deps += $(STATEDIR)/xchain-gccstage1.install endif $(STATEDIR)/kernel.prepare: $(kernel_prepare_deps) - @echo - @echo ---------------------- - @echo target: kernel.prepare - @echo ---------------------- - @echo + @$(call targetinfo, kernel.prepare) ifeq (y,$(PTXCONF_BUILD_CROSSCHAIN)) echo -n 'Please supply root password for sudo: ' # FIXME: wheel is not the correct group @@ -386,11 +350,7 @@ $(STATEDIR)/kernel.prepare: $(kernel_prepare_deps) xchain-kernel_prepare: $(STATEDIR)/xchain-kernel.prepare $(STATEDIR)/xchain-kernel.prepare: $(STATEDIR)/xchain-kernel.extract - @echo - @echo ----------------------------- - @echo target: xchain-kernel.prepare - @echo ----------------------------- - @echo + @$(call targetinfo, xchain-kernel.prepare) cd $(BUILDDIR)/xchain-kernel/include && ln -s asm-$(PTXCONF_ARCH) asm ifeq (y, $(PTXCONF_ARCH_ARM)) cd $(BUILDDIR)/xchain-kernel/include/asm && ln -s proc-armv proc @@ -413,11 +373,7 @@ kernel_compile_deps = $(STATEDIR)/kernel.prepare kernel_compile_deps = $(STATEDIR)/umkimage.install $(STATEDIR)/kernel.compile: $(STATEDIR)/kernel.prepare - @echo - @echo ---------------------- - @echo target: kernel.compile - @echo ---------------------- - @echo + @$(call targetinfo, kernel.compile) ifneq (y, $(PTXCONF_DONT_COMPILE_KERNEL)) $(KERNEL_ENVIRONMENT) make -C $(KERNEL_DIR) oldconfig dep clean $(KERNEL_TARGET) modules endif @@ -435,11 +391,7 @@ $(STATEDIR)/xchain-kernel.compile: kernel_install: $(STATEDIR)/kernel.install $(STATEDIR)/kernel.install: $(STATEDIR)/kernel.compile - @echo - @echo ---------------------- - @echo target: kernel.install - @echo ---------------------- - @echo + @$(call targetinfo, kernel.install) ifeq (y, $(PTXCONF_KERNEL_INSTALL)) mkdir -p $(ROOTDIR)/boot cp $(KERNEL_TARGET_PATH) $(ROOTDIR)/boot/ @@ -459,11 +411,7 @@ $(STATEDIR)/xchain-kernel.install: kernel_targetinstall: $(STATEDIR)/kernel.targetinstall $(STATEDIR)/kernel.targetinstall: $(STATEDIR)/kernel.install - @echo - @echo ---------------------------- - @echo target: kernel.targetinstall - @echo ---------------------------- - @echo + @$(call targetinfo, kernel.targetinstall) ifneq (y, $(PTXCONF_DONT_COMPILE_KERNEL)) mkdir -p $(ROOTDIR)/boot # # diff --git a/rules/zlib.make b/rules/zlib.make index f504dc7ee..d5d776c2d 100644 --- a/rules/zlib.make +++ b/rules/zlib.make @@ -1,4 +1,4 @@ -# $Id: zlib.make,v 1.2 2003/04/24 16:07:09 jst Exp $ +# $Id: zlib.make,v 1.3 2003/06/16 12:05:16 bsp Exp $ # # (c) 2002 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. @@ -39,11 +39,7 @@ $(STATEDIR)/xchain-zlib.get: $(ZLIB_SOURCE) touch $@ $(ZLIB_SOURCE): - @echo - @echo ---------------- - @echo target: zlib.get - @echo ---------------- - @echo + @$(call targetinfo, zlib.get) wget -P $(SRCDIR) $(PASSIVEFTP) $(ZLIB_URL) # ---------------------------------------------------------------------------- @@ -53,22 +49,14 @@ $(ZLIB_SOURCE): zlib_extract: $(STATEDIR)/zlib.extract $(STATEDIR)/zlib.extract: $(STATEDIR)/zlib.get - @echo - @echo -------------------- - @echo target: zlib.extract - @echo -------------------- - @echo + @$(call targetinfo, zlib.extract) $(ZLIB_EXTRACT) $(ZLIB_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - touch $@ xchain-zlib_extract: $(STATEDIR)/xchain-zlib.extract $(STATEDIR)/xchain-zlib.extract: $(STATEDIR)/xchain-zlib.get - @echo - @echo --------------------------- - @echo target: xchain-zlib.extract - @echo --------------------------- - @echo + @$(call targetinfo, xchain-zlib.extract) rm -fr $(BUILDDIR)/xchain-zlib mkdir -p $(BUILDDIR)/xchain-zlib $(ZLIB_EXTRACT) $(ZLIB_SOURCE) | $(TAR) -C $(BUILDDIR)/xchain-zlib -xf - @@ -85,11 +73,7 @@ ZLIB_AUTOCONF += --shared ZLIB_AUTOCONF += --prefix=$(PTXCONF_PREFIX) $(STATEDIR)/zlib.prepare: $(STATEDIR)/zlib.extract - @echo - @echo -------------------- - @echo target: zlib.prepare - @echo -------------------- - @echo + @$(call targetinfo, zlib.prepare) # FIXME: this does currently not work with the local toolchain cd $(ZLIB_DIR) && \ ./configure $(ZLIB_AUTOCONF) @@ -103,11 +87,7 @@ XCHAIN_ZLIB_AUTOCONF += --shared XCHAIN_ZLIB_AUTOCONF += --prefix=$(PTXCONF_PREFIX) $(STATEDIR)/xchain-zlib.prepare: $(STATEDIR)/xchain-zlib.extract - @echo - @echo --------------------------- - @echo target: xchain-zlib.prepare - @echo --------------------------- - @echo + @$(call targetinfo, xchain-zlib.prepare) cd $(BUILDDIR)/xchain-zlib/$(ZLIB) && \ ./configure $(XCHAIN_ZLIB_AUTOCONF) touch $@ @@ -119,22 +99,14 @@ $(STATEDIR)/xchain-zlib.prepare: $(STATEDIR)/xchain-zlib.extract zlib_compile: $(STATEDIR)/zlib.compile $(STATEDIR)/zlib.compile: $(STATEDIR)/zlib.prepare - @echo - @echo -------------------- - @echo target: zlib.compile - @echo -------------------- - @echo + @$(call targetinfo, zlib.compile) cd $(ZLIB_DIR) && PATH=$(PTXCONF_PREFIX)/bin:$$PATH make CC=$(PTXCONF_GNU_TARGET)-gcc touch $@ xchain-zlib_compile: $(STATEDIR)/xchain-zlib.compile $(STATEDIR)/xchain-zlib.compile: $(STATEDIR)/xchain-zlib.prepare - @echo - @echo --------------------------- - @echo target: xchain-zlib.compile - @echo --------------------------- - @echo + @$(call targetinfo, xchain-zlib.compile) cd $(BUILDDIR)/xchain-zlib/$(ZLIB) && make CC=$(HOSTCC) touch $@ @@ -145,22 +117,14 @@ $(STATEDIR)/xchain-zlib.compile: $(STATEDIR)/xchain-zlib.prepare zlib_install: $(STATEDIR)/zlib.install $(STATEDIR)/zlib.install: $(STATEDIR)/zlib.compile - @echo - @echo -------------------- - @echo target: zlib.install - @echo -------------------- - @echo + @$(call targetinfo, zlib.install) PATH=$(PTXCONF_PREFIX)/bin:$$PATH make -C $(BUILDDIR)/$(ZLIB) install PREFIX=$(PTXCONF_PREFIX) touch $@ xchain-zlib_install: $(STATEDIR)/xchain-zlib.install $(STATEDIR)/xchain-zlib.install: $(STATEDIR)/xchain-zlib.compile - @echo - @echo --------------------------- - @echo target: xchain-zlib.install - @echo --------------------------- - @echo + @$(call targetinfo, xchain-zlib.install) PATH=$(PTXCONF_PREFIX)/bin:$$PATH make -C $(BUILDDIR)/xchain-zlib/$(ZLIB) install PREFIX=$(PTXCONF_PREFIX) touch $@ # ---------------------------------------------------------------------------- @@ -170,11 +134,7 @@ $(STATEDIR)/xchain-zlib.install: $(STATEDIR)/xchain-zlib.compile zlib_targetinstall: $(STATEDIR)/zlib.targetinstall $(STATEDIR)/zlib.targetinstall: $(STATEDIR)/zlib.install - @echo - @echo -------------------------- - @echo target: zlib.targetinstall - @echo -------------------------- - @echo + @$(call targetinfo, zlib.targetinstall) mkdir -p $(ROOTDIR)/lib cp -d $(ZLIB_DIR)/libz.so* $(ROOTDIR)/lib $(CROSSSTRIP) -S $(ROOTDIR)/lib/libz.so* @@ -183,11 +143,7 @@ $(STATEDIR)/zlib.targetinstall: $(STATEDIR)/zlib.install xchain-zlib_targetinstall: $(STATEDIR)/xchain-zlib.targetinstall $(STATEDIR)/xchain-zlib.targetinstall: $(STATEDIR)/xchain-zlib.install - @echo - @echo --------------------------------- - @echo target: xchain-zlib.targetinstall - @echo --------------------------------- - @echo + @$(call targetinfo, xchain-zlib.targetinstall) touch $@ # ---------------------------------------------------------------------------- diff --git a/scripts/makedeptree b/scripts/makedeptree new file mode 100755 index 000000000..930c22f37 --- /dev/null +++ b/scripts/makedeptree @@ -0,0 +1,3 @@ +#! /bin/sh + +awk 'BEGIN{print "digraph \"ptxdist \"{"}{for (i = 3; i <= NF; i++) print "\""$i"\" -> \""$1"\";"}END{print "}"}' $1
\ No newline at end of file |