1 | # $Id: Makefile 1896 2005-04-24 07:18:53Z bird $
|
---|
2 | ## @file
|
---|
3 | #
|
---|
4 | # Bootstrap makefile.
|
---|
5 | #
|
---|
6 | # Copyright (c) 2004 knut st. osmundsen <bird@anduin.net>
|
---|
7 | #
|
---|
8 | #
|
---|
9 | # This file is part of InnoTek LIBC.
|
---|
10 | #
|
---|
11 | # InnoTek LIBC is free software; you can redistribute it and/or modify
|
---|
12 | # it under the terms of the GNU Lesser General Public License as published
|
---|
13 | # by the Free Software Foundation; either version 2 of the License, or
|
---|
14 | # (at your option) any later version.
|
---|
15 | #
|
---|
16 | # InnoTek LIBC is distributed in the hope that it will be useful,
|
---|
17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
19 | # GNU Lesser General Public License for more details.
|
---|
20 | #
|
---|
21 | # You should have received a copy of the GNU Lesser General Public License
|
---|
22 | # along with InnoTek LIBC; if not, write to the Free Software
|
---|
23 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
24 | #
|
---|
25 | #
|
---|
26 |
|
---|
27 | include version.smak
|
---|
28 |
|
---|
29 | help:
|
---|
30 | @echo "Welcome to $(PACKAGE) version $(VERSION) build system!"
|
---|
31 | @echo "$(COPYRIGHT)"
|
---|
32 | @echo ""
|
---|
33 | @echo "There are four makefile you can invoke using the -f option of make:"
|
---|
34 | @echo " Makefile - Bootstrap libc and tools (this makefile)."
|
---|
35 | @echo " Does 1) toolonly.smak and 2) libonly.smak."
|
---|
36 | @echo " libonly.gmk - Build libc using installed tools."
|
---|
37 | @echo " toolonly.gmk - Build all the tools using installed libc & tools."
|
---|
38 | @echo " Makefile.gmk - Build everything, building and using the tools."
|
---|
39 | @echo " This normally never works unless the difference"
|
---|
40 | @echo " between the libc versions you're building and using"
|
---|
41 | @echo " are microscopical."
|
---|
42 | @echo ""
|
---|
43 | @echo "This makefile is used to bootstrap libc in is usually what you want to"
|
---|
44 | @echo "use when building libc. It have the following goals:"
|
---|
45 | @echo " all - Build tools and libc. (in that order)"
|
---|
46 | @echo " tools - make -f toolonly.gmk all"
|
---|
47 | @echo " libs - make -f libonly.gmk all"
|
---|
48 | @echo " clean - Wipes all the output."
|
---|
49 | @echo " install - installs everything."
|
---|
50 | @echo " bootstrap - all + install + clean + all + install. This assumes"
|
---|
51 | @echo " that your install directory is setup to override any"
|
---|
52 | @echo " installed libc and tools when somethings installed."
|
---|
53 | @echo " core - Don't build (some of) the alternative library versions."
|
---|
54 | @echo " core-install - Install the stuff build with the core goal."
|
---|
55 | @echo " help - This message."
|
---|
56 | @echo ""
|
---|
57 | @echo "Enjoy :-)"
|
---|
58 |
|
---|
59 | all:
|
---|
60 | $(MAKE) -f toolonly.gmk $@
|
---|
61 | $(MAKE) -f libonly.gmk $@
|
---|
62 |
|
---|
63 | libs lib:
|
---|
64 | $(MAKE) -f libonly.gmk all
|
---|
65 |
|
---|
66 | tools tool:
|
---|
67 | $(MAKE) -f toolonly.gmk all
|
---|
68 |
|
---|
69 | clean:
|
---|
70 | $(MAKE) -f Makefile.gmk $@
|
---|
71 |
|
---|
72 | install:
|
---|
73 | $(MAKE) -f toolonly.gmk $@
|
---|
74 | $(MAKE) -f libonly.gmk $@
|
---|
75 |
|
---|
76 | bootstrap:
|
---|
77 | @echo "Warning, this goal hasn't been fully tested yet!"
|
---|
78 | $(MAKE) -f toolonly.gmk all
|
---|
79 | $(MAKE) -f libonly.gmk all
|
---|
80 | $(MAKE) -f toolonly.gmk install
|
---|
81 | $(MAKE) -f libonly.gmk install
|
---|
82 | $(MAKE) -f Makefile clean
|
---|
83 | $(MAKE) -f toolonly.gmk all
|
---|
84 | $(MAKE) -f libonly.gmk all
|
---|
85 | $(MAKE) -f toolonly.gmk install
|
---|
86 | $(MAKE) -f libonly.gmk install
|
---|
87 |
|
---|
88 | core:
|
---|
89 | $(MAKE) -f libonly.gmk LIBC_CORE_ONLY=1 all
|
---|
90 |
|
---|
91 | core-install:
|
---|
92 | $(MAKE) -f libonly.gmk LIBC_CORE_ONLY=1 install
|
---|
93 |
|
---|