From ce0255bbd2d1719f1ce3a30504c19869802c0a8b Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 8 Jan 2011 11:22:41 +0100 Subject: rework and cleanup top level directory creation, avoid some unnecessary rebuils --- tools/adk/Makefile | 9 +++------ tools/cpio/Makefile | 2 +- tools/mkcrypt/Makefile | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) (limited to 'tools') diff --git a/tools/adk/Makefile b/tools/adk/Makefile index a7dee6a2e..1f8c2186e 100644 --- a/tools/adk/Makefile +++ b/tools/adk/Makefile @@ -3,18 +3,15 @@ include $(TOPDIR)/rules.mk -$(TOPDIR)/bin/tools: - @mkdir -p $(TOPDIR)/bin/tools - CCANDLD.c= ${HOSTCC} ${HOSTCFLAGS} ${HOSTCPPFLAGS} ${HOSTLDFLAGS} -${TOPDIR}/bin/tools/depmaker: $(TOPDIR)/bin/tools +${TOPDIR}/bin/tools/depmaker: ${CCANDLD.c} -o $(TOPDIR)/bin/tools/depmaker depmaker.c -${TOPDIR}/bin/tools/pkgrebuild: $(TOPDIR)/bin/tools +${TOPDIR}/bin/tools/pkgrebuild: ${CCANDLD.c} -o $(TOPDIR)/bin/tools/pkgrebuild pkgrebuild.c strmap.c -${TOPDIR}/bin/tools/dkgetsz: ${TOPDIR}/bin/tools +${TOPDIR}/bin/tools/dkgetsz: ${CCANDLD.c} -Wall -o $@ dkgetsz.c install: ${TOPDIR}/bin/tools/depmaker ${TOPDIR}/bin/tools/pkgrebuild \ diff --git a/tools/cpio/Makefile b/tools/cpio/Makefile index 142f65b70..bbf138918 100644 --- a/tools/cpio/Makefile +++ b/tools/cpio/Makefile @@ -28,7 +28,7 @@ SRCS+= \ src/cpio.c ${TOPDIR}/bin/tools/cpio: ${SRCS} - @${HOSTCC} ${HOSTCFLAGS} -D_GNU_SOURCE -Isrc -o $@ $^ + ${HOSTCC} ${HOSTCFLAGS} -D_GNU_SOURCE -Isrc -o $@ $^ install: ${TOPDIR}/bin/tools/cpio diff --git a/tools/mkcrypt/Makefile b/tools/mkcrypt/Makefile index 4baf56c44..54548c39e 100644 --- a/tools/mkcrypt/Makefile +++ b/tools/mkcrypt/Makefile @@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk ${TOPDIR}/bin/tools/mkcrypt: - $(HOSTCC) -o $(TOPDIR)/bin/tools/mkcrypt mkcrypt.c + $(HOSTCC) ${HOSTCFLAGS} -o $(TOPDIR)/bin/tools/mkcrypt mkcrypt.c install: ${TOPDIR}/bin/tools/mkcrypt -- cgit v1.2.3