summaryrefslogtreecommitdiff
path: root/tools/adk/Makefile
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2011-01-07 16:38:29 +0000
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-07 23:29:47 +0100
commit6eca921234f8c167e0fe4607b799d452cbe3dd72 (patch)
tree47e2fe5db0194665138dac7b61580da59a505b1f /tools/adk/Makefile
parenta5d49fa95ed67db085ea1f07c9e1733eb5dbc505 (diff)
use HOSTCC, HOSTCFLAGS, etc. here, too
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'tools/adk/Makefile')
-rw-r--r--tools/adk/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/adk/Makefile b/tools/adk/Makefile
index 02171c99b..a7dee6a2e 100644
--- a/tools/adk/Makefile
+++ b/tools/adk/Makefile
@@ -6,14 +6,16 @@ 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
- $(HOSTCC) -o $(TOPDIR)/bin/tools/depmaker depmaker.c
+ ${CCANDLD.c} -o $(TOPDIR)/bin/tools/depmaker depmaker.c
${TOPDIR}/bin/tools/pkgrebuild: $(TOPDIR)/bin/tools
- $(HOSTCC) -o $(TOPDIR)/bin/tools/pkgrebuild pkgrebuild.c strmap.c
+ ${CCANDLD.c} -o $(TOPDIR)/bin/tools/pkgrebuild pkgrebuild.c strmap.c
${TOPDIR}/bin/tools/dkgetsz: ${TOPDIR}/bin/tools
- ${HOSTCC} -O2 -Wall -o $@ dkgetsz.c
+ ${CCANDLD.c} -Wall -o $@ dkgetsz.c
install: ${TOPDIR}/bin/tools/depmaker ${TOPDIR}/bin/tools/pkgrebuild \
${TOPDIR}/bin/tools/dkgetsz