root/trunk/freewrt/tools/fwcf/Makefile

Revision 3498, 1.1 kB (checked in by tg, 5 years ago)

more of the same problem

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/fwcf/Makefile.inc
9 include ../rules.mk
10
11 EXTRA_SRCS=
12 ifeq (${OStype},Linux)
13 EXTRA_SRCS+=    ${TOPDIR}/tools/paxmirabilis/strlfun.c
14 endif
15
16 ${WRKBUILD}/.configured: ${WRKBUILD}/.prepared
17         touch $@
18
19 ${WRKBUILD}/fwcf.helper.out: ${WRKBUILD}/.configured
20         cd ${WRKBUILD} && SRCS='${EXTRA_SRCS}' gmake
21
22 source: fetch
23 prepare: ${WRKBUILD}/.prepared
24
25 compile: ${WRKBUILD}/fwcf.helper.out
26
27 install: ${STAGING_TOOLS}/bin/fwcf.helper ${TOPDIR}/lbin/fwcf.helper
28
29 ${STAGING_TOOLS}/bin/fwcf.helper:
30         mkdir -p ${STAGING_TOOLS}/bin
31         rm -f ${STAGING_TOOLS}/bin/fwcf.helper
32         install -c -s -m 555 ${WRKBUILD}/fwcf.helper.out \
33             ${STAGING_TOOLS}/bin/fwcf.helper
34
35 ${TOPDIR}/lbin/fwcf.helper: install-lbin
36
37 install-lbin:
38         rm -f ${TOPDIR}/lbin/fwcf.helper
39         if [ -e ${STAGING_TOOLS}/bin/fwcf.helper ]; then \
40                 cp ${STAGING_TOOLS}/bin/fwcf.helper ${TOPDIR}/lbin/; \
41         fi
42
43 clean:
44         rm -rf ${WRKBUILD}
45         rm -f ${STAGING_TOOLS}/bin/fwcf.helper
Note: See TracBrowser for help on using the browser.