source: trunk/Makefile.kmk@ 3399

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

flex is in sys-devel not sys-apps.

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Makefile.kmk 3308 2007-05-06 00:37:05Z bird $
2## @file
3#
4# Top-Level Makefile.
5# This is not a standard kBuild makefile, the footer is not included.
6#
7# Copyright (c) 2005-2007 knut st. osmundsen <bird-src-spam@anduin.net>
8#
9#
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#
27
28
29
30DEPTH = .
31include $(PATH_KBUILD)/header.kmk
32
33## SUBDIRS
34# The subdirectories to traverse depth first.
35# (This is bootstrap order.)
36SUBDIRS = \
37 baselayout \
38 essentials/sys-apps/gawk \
39 essentials/sys-apps/diffutils \
40 yacc \
41 bsdmisc \
42 essentials/sys-apps/coreutils \
43 essentials/sys-apps/sed \
44 essentials/sys-devel/flex \
45 ash \
46 essentials
47
48## Skip these for now:
49# libc \
50# emx \
51
52## @todo
53# binutils \
54# gcc \
55
56## def_do_subdir
57# Generate rules to do one subdirectory.
58# @remark This is evaluated twice.
59define def_do_subdir
60
61# build and install
62subdir_$(subdir)_all:
63 +$$(MAKE) -C $(subdir)
64
65# install
66subdir_$(subdir)_install:
67 +$$(MAKE) -C $(subdir) install
68
69# packing
70subdir_$(subdir)_packing:
71 +$$(MAKE) -C $(subdir) packing
72
73.NOTPARALLEL: subdir_$(subdir)_all subdir_$(subdir)_install subdir_$(subdir)_packing
74endef
75
76$(foreach subdir,$(SUBDIRS),$(eval $(def_do_subdir)))
77
78#
79# A pass
80#
81all_subdirs: | $(foreach subdir,$(SUBDIRS), subdir_$(subdir)_all)
82
83.NOTPARALLEL: all_subdirs
84
85
86#
87# The default rule.
88#
89all_recursive: | all_subdirs
90
91.NOTPARALLEL: all_recursive
92
Note: See TracBrowser for help on using the repository browser.