root/trunk/freewrt/tools/mksh/Makefile

Revision 3986, 1.0 kB (checked in by tg, 2 months ago)

do not run the run-time autoconf test, we're cross-compiling

and even when we're not, so people don't get signals in their syslog

  • Property svn:keywords set to FreeWRT=Id
Line 
1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 include ${TOPDIR}/rules.mk
8 include ${TOPDIR}/package/mksh/Makefile.inc
9 include ../rules.mk
10
11 ${WRKBUILD}/.configured: ${WRKBUILD}/.prepared
12         touch $@
13
14 ${WRKBUILD}/mksh: ${WRKBUILD}/.configured
15         cd ${WRKBUILD} && \
16             env CC='${HOSTCC}' CFLAGS='${HOSTCFLAGS}' \
17             HAVE_SILENT_IDIVWRAPV=0 \
18             ${BASH} Build.sh -r -c lto
19         -cd ${WRKBUILD} && ./test.sh -v
20
21 source: fetch
22 prepare: ${WRKBUILD}/.prepared
23
24 compile: ${WRKBUILD}/mksh
25
26 install: do-install install-lbin
27
28 do-install:
29         mkdir -p ${STAGING_TOOLS}/bin
30         rm -f ${STAGING_TOOLS}/bin/mksh
31         install -c -s -m 555 ${WRKBUILD}/mksh ${STAGING_TOOLS}/bin/mksh
32
33 install-lbin:
34         rm -f ${TOPDIR}/lbin/mksh
35         if [ -e ${STAGING_TOOLS}/bin/mksh ]; then \
36                 cp ${STAGING_TOOLS}/bin/mksh ${TOPDIR}/lbin/; \
37         fi
38
39 clean:
40         rm -rf ${WRKBUILD}
41         rm -f ${STAGING_TOOLS}/bin/mksh
Note: See TracBrowser for help on using the browser.