source: freewrt/Makefile@ aaafd63

freewrt_1_0 freewrt_2_0
Last change on this file since aaafd63 was aaafd63, checked in by Thorsten Glaser <tg@…>, 20 years ago

add 'make verbose' target

ok wbx@

git-svn-id: svn://www.freewrt.org/trunk/freewrt@42 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.6 KB
Line 
1# $FreeWRT: src/share/misc/licence.template,v 1.7 2006/04/09 22:08:49 tg Rel $ */
2#-
3# Copyright (c) 2006
4# Thorsten Glaser <tg@mirbsd.de>
5#
6# Licensee is hereby permitted to deal in this work without restric-
7# tion, including unlimited rights to use, publicly perform, modify,
8# merge, distribute, sell, give away or sublicence, provided all co-
9# pyright notices above, these terms and the disclaimer are retained
10# in all redistributions or reproduced in accompanying documentation
11# or other materials provided with binary redistributions.
12#
13# All advertising materials mentioning features or use of this soft-
14# ware must display the following acknowledgement:
15# This product includes material provided by Thorsten Glaser.
16# This acknowledgement does not need to be reprinted if this work is
17# linked into a bigger work whose licence does not allow such clause
18# and the author of this work is given due credit in the bigger work
19# or its documentation. Specifically, re-using this code in any work
20# covered by the GNU General Public License version 1 or Library Ge-
21# neral Public License (any version) is permitted.
22#
23# Licensor offers the work "AS IS" and WITHOUT WARRANTY of any kind,
24# express, or implied, to the maximum extent permitted by applicable
25# law, without malicious intent or gross negligence; in no event may
26# licensor, an author or contributor be held liable for any indirect
27# or other damage, or direct damage except proven a consequence of a
28# direct error of said person and intended use of this work, loss or
29# other issues arising in any way out of its use, even if advised of
30# the possibility of such damage or existence of a nontrivial bug.
31
32GMAKE?= $(PWD)/lbin/gmake
33GMAKE_INV= PATH=$(PWD)/lbin:$(PATH) ${GMAKE} -f $(PWD)/build.mk ${VARS_TO_PASS}
34
35VARS_TO_PASS= HOSTCC='${CC}' MAKE='${GMAKE}'
36
37all: prereq
38 ${GMAKE_INV} all
39
40verbose: prereq
41 ${GMAKE_INV} all V=99
42
43clean: prereq
44 ${GMAKE_INV} clean
45
46config: prereq
47 ${GMAKE_INV} config
48
49dirclean: prereq
50 ${GMAKE_INV} dirclean
51
52distclean: prereq
53 ${GMAKE_INV} distclean
54 -rm -rf lbin
55 -rm -f prereq
56
57image_clean: prereq
58 ${GMAKE_INV} image_clean
59
60menuconfig: prereq
61 ${GMAKE_INV} menuconfig
62
63oldconfig: prereq
64 ${GMAKE_INV} oldconfig
65
66package_index: prereq
67 ${GMAKE_INV} package_index
68
69source: prereq
70 ${GMAKE_INV} source
71
72target_clean: prereq
73 ${GMAKE_INV} target_clean
74
75world: prereq
76 ${GMAKE_INV} world
77
78prereq:
79 -rm -rf prereq lbin
80 mkdir lbin
81 if which gmake >/dev/null 2>&1; then \
82 ln -s $$(which gmake) lbin/gmake; \
83 else \
84 ln -s $$(which make) lbin/gmake; \
85 fi
86 if ! which md5sum >/dev/null 2>&1; then \
87 cp scripts/md5sum.bsd lbin/md5sum; \
88 chmod 555 lbin/md5sum; \
89 fi
90 touch $@
Note: See TracBrowser for help on using the repository browser.