summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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