summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-26 13:40:40 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-26 13:40:40 +0100
commitb44cf2a9ca220035a29b282c98d6367d7cab66c0 (patch)
treed291b37138c4a81fd7b35ef38778421e3ba77e89 /tools
parent83687368fdcf0004e377584b3b3e73d4f991e27e (diff)
another HOSTCC elimination, thx hudson
Diffstat (limited to 'tools')
-rw-r--r--tools/adk/Makefile16
-rw-r--r--tools/cpio/Makefile6
-rw-r--r--tools/mkcrypt/Makefile6
3 files changed, 13 insertions, 15 deletions
diff --git a/tools/adk/Makefile b/tools/adk/Makefile
index 638935e5e..e3c9aceed 100644
--- a/tools/adk/Makefile
+++ b/tools/adk/Makefile
@@ -3,17 +3,15 @@
include $(TOPDIR)/rules.mk
-CCANDLD.c= ${HOSTCC} ${HOSTCFLAGS} ${HOSTCPPFLAGS} ${HOSTLDFLAGS}
-
-${TOOLS_DIR}/depmaker:
- ${CCANDLD.c} -Wall -o $@ depmaker.c
+install: ${TOOLS_DIR}/depmaker ${TOOLS_DIR}/pkgrebuild ${TOOLS_DIR}/dkgetsz
-${TOOLS_DIR}/pkgrebuild:
- ${CCANDLD.c} -Wall -o $@ pkgrebuild.c strmap.c
+${TOOLS_DIR}/depmaker: depmaker.c
+ ${CC_FOR_BUILD} ${FLAGS_FOR_BUILD} -o $@ depmaker.c
-${TOOLS_DIR}/dkgetsz:
- ${CCANDLD.c} -Wall -o $@ dkgetsz.c
+${TOOLS_DIR}/pkgrebuild: pkgrebuild.c strmap.c
+ ${CC_FOR_BUILD} ${FLAGS_FOR_BUILD} -o $@ pkgrebuild.c strmap.c
-install: ${TOOLS_DIR}/depmaker ${TOOLS_DIR}/pkgrebuild ${TOOLS_DIR}/dkgetsz
+${TOOLS_DIR}/dkgetsz: dkgetsz.c
+ ${CC_FOR_BUILD} ${FLAGS_FOR_BUILD} -o $@ dkgetsz.c
include $(TOPDIR)/mk/tools.mk
diff --git a/tools/cpio/Makefile b/tools/cpio/Makefile
index a012c43a5..2280b1ffb 100644
--- a/tools/cpio/Makefile
+++ b/tools/cpio/Makefile
@@ -3,6 +3,8 @@
include $(TOPDIR)/rules.mk
+install: ${TOOLS_DIR}/cpio
+
SRCS+= \
src/ib_open.c \
src/ib_close.c \
@@ -28,8 +30,6 @@ SRCS+= \
src/cpio.c
${TOOLS_DIR}/cpio: ${SRCS}
- ${HOSTCC} ${HOSTCFLAGS} -D_GNU_SOURCE -Isrc -o $@ $^
-
-install: ${TOOLS_DIR}/cpio
+ ${CC_FOR_BUILD} ${FLAGS_FOR_BUILD} -D_GNU_SOURCE -Isrc -o $@ $^
include $(TOPDIR)/mk/tools.mk
diff --git a/tools/mkcrypt/Makefile b/tools/mkcrypt/Makefile
index 1708f9f13..983d9d423 100644
--- a/tools/mkcrypt/Makefile
+++ b/tools/mkcrypt/Makefile
@@ -3,9 +3,9 @@
include $(TOPDIR)/rules.mk
-${TOOLS_DIR}/mkcrypt:
- $(HOSTCC) ${HOSTCFLAGS} -o $@ mkcrypt.c
-
install: ${TOOLS_DIR}/mkcrypt
+${TOOLS_DIR}/mkcrypt:
+ $(CC_FOR_BUILD) ${FLAGS_FOR_BUILD} -o $@ mkcrypt.c
+
include $(TOPDIR)/mk/tools.mk