]> Zhao Yanbai Git Server - minix.git/commitdiff
Build file cross compilation tool
authorThomas Veerman <thomas@minix3.org>
Fri, 8 Jun 2012 09:32:09 +0000 (09:32 +0000)
committerThomas Veerman <thomas@minix3.org>
Mon, 18 Jun 2012 10:54:53 +0000 (10:54 +0000)
tools/Makefile
tools/file/Makefile [new file with mode: 0644]

index a2c7d6466bd7928df392b6fd9d078131e1a2170a..ace0ad160d2abae01e05c1fab2fbbb73609b552a 100644 (file)
@@ -15,7 +15,7 @@ SUBDIR=       host-mkdep .WAIT compat .WAIT \
        .WAIT tic \
        .WAIT lex \
        .WAIT gmake .WAIT binutils .WAIT gcc \
-               cat pwd_mkdb stat zic \
+               cat file pwd_mkdb stat zic \
 
 
 
diff --git a/tools/file/Makefile b/tools/file/Makefile
new file mode 100644 (file)
index 0000000..9453861
--- /dev/null
@@ -0,0 +1,19 @@
+#      $NetBSD: Makefile,v 1.7 2012/04/15 08:37:33 mrg Exp $
+#
+
+GNUHOSTDIST=   ${.CURDIR}/../../external/bsd/file/dist
+
+CONFIGURE_ENV+=        CC=${HOST_CC:Q} \
+               CFLAGS=${HOST_CFLAGS:Q} \
+               CPPFLAGS=${HOST_CPPFLAGS:Q} \
+               CXX=${HOST_CXX:Q}
+
+CONFIGURE_ARGS=        --program-prefix=${_TOOL_PREFIX} --disable-shared \
+               --disable-warnings
+
+.NOTPARALLEL:
+
+.include "${.CURDIR}/../Makefile.gnuhost"
+
+# Force avoiding possibly non-executable install-sh.
+CONFIGURE_ENV+= ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d"