Browse Source

another HOSTCC elimination, thx hudson

Waldemar Brodkorb 14 years ago
parent
commit
b44cf2a9ca
3 changed files with 13 additions and 15 deletions
  1. 7 9
      tools/adk/Makefile
  2. 3 3
      tools/cpio/Makefile
  3. 3 3
      tools/mkcrypt/Makefile

+ 7 - 9
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

+ 3 - 3
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

+ 3 - 3
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