source: trunk/Makefile.kmk@ 3293

Last change on this file since 3293 was 3293, checked in by bird, 18 years ago

Some bootstrapping order changes.

  • Property svn:keywords set to Id
File size: 2.0 KB
RevLine 
[3043]1# $Id: Makefile.kmk 3293 2007-05-05 23:18:36Z bird $
[2477]2## @file
3#
[2677]4# Top-Level Makefile.
[2477]5# This is not a standard kBuild makefile, the footer is not included.
6#
[3043]7# Copyright (c) 2005-2007 knut st. osmundsen <bird-src-spam@anduin.net>
[2477]8#
9#
[2677]10# This file is part of kNIX.
11#
12# kNIX is free software; you can redistribute it and/or modify
13# it under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 2 of the License, or
15# (at your option) any later version.
16#
17# kNIX is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with kNIX; if not, write to the Free Software
24# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25#
26#
[2477]27
28
[2677]29
[2477]30DEPTH = .
31include $(PATH_KBUILD)/header.kmk
32
[3043]33## SUBDIRS
34# The subdirectories to traverse depth first.
[3293]35# (This is bootstrap order.)
[2477]36SUBDIRS = \
[2550]37 baselayout \
[3293]38 essentials/sys-apps/gawk \
39 essentials/sys-apps/diffutils \
[3043]40 libc \
[2677]41 emx \
[2477]42 yacc \
[3293]43 essentials/sys-apps/coreutils \
44 essentials/sys-apps/sed \
45 essentials/sys-apps/flex \
[2550]46 ash \
[3293]47 essentials
[2477]48
[3293]49## @todo
50# binutils \
51# gcc \
52
[2477]53## def_do_subdir
54# Generate rules to do one subdirectory.
55# @remark This is evaluated twice.
56define def_do_subdir
57
58# build and install
59subdir_$(subdir)_all:
[3109]60 +$$(MAKE) -C $(subdir)
[2477]61
62# install
63subdir_$(subdir)_install:
[3109]64 +$$(MAKE) -C $(subdir) install
[2477]65
66# packing
67subdir_$(subdir)_packing:
[3109]68 +$$(MAKE) -C $(subdir) packing
[2477]69
70.NOTPARALLEL: subdir_$(subdir)_all subdir_$(subdir)_install subdir_$(subdir)_packing
71endef
72
73$(foreach subdir,$(SUBDIRS),$(eval $(def_do_subdir)))
74
75#
76# A pass
[3043]77#
[2477]78all_subdirs: | $(foreach subdir,$(SUBDIRS), subdir_$(subdir)_all)
[3043]79
[2477]80.NOTPARALLEL: all_subdirs
81
82
83#
84# The default rule.
[3043]85#
[2477]86all_recursive: | all_subdirs
[3043]87
[2477]88.NOTPARALLEL: all_recursive
[3043]89
Note: See TracBrowser for help on using the repository browser.