| [2477] | 1 | # $Id: $ | 
|---|
|  | 2 | ## @file | 
|---|
|  | 3 | # | 
|---|
| [2677] | 4 | # Top-Level Makefile. | 
|---|
| [2477] | 5 | # This is not a standard kBuild makefile, the footer is not included. | 
|---|
|  | 6 | # | 
|---|
| [2677] | 7 | # Copyright (c) 2005-2006 knut st. osmundsen <bird@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] | 30 | DEPTH = . | 
|---|
|  | 31 | include $(PATH_KBUILD)/header.kmk | 
|---|
|  | 32 |  | 
|---|
|  | 33 | ## SUBDIRS | 
|---|
|  | 34 | # The subdirectories to traverse. | 
|---|
|  | 35 | SUBDIRS = \ | 
|---|
| [2550] | 36 | baselayout \ | 
|---|
| [2677] | 37 | emx \ | 
|---|
| [2477] | 38 | yacc \ | 
|---|
| [2550] | 39 | ash \ | 
|---|
| [2677] | 40 | diffutils \ | 
|---|
|  | 41 | ncurses \ | 
|---|
|  | 42 | texinfo \ | 
|---|
|  | 43 | coreutils \ | 
|---|
| [2477] | 44 |  | 
|---|
| [2677] | 45 | #   libc binutils gcc grep sed ... | 
|---|
|  | 46 |  | 
|---|
| [2477] | 47 | ## def_do_subdir | 
|---|
|  | 48 | # Generate rules to do one subdirectory. | 
|---|
|  | 49 | # @remark       This is evaluated twice. | 
|---|
|  | 50 | define def_do_subdir | 
|---|
|  | 51 |  | 
|---|
|  | 52 | # build and install | 
|---|
|  | 53 | subdir_$(subdir)_all: | 
|---|
|  | 54 | $$(MAKE) -C $(subdir) | 
|---|
|  | 55 |  | 
|---|
|  | 56 | # install | 
|---|
|  | 57 | subdir_$(subdir)_install: | 
|---|
|  | 58 | $$(MAKE) -C $(subdir) install | 
|---|
|  | 59 |  | 
|---|
|  | 60 | # packing | 
|---|
|  | 61 | subdir_$(subdir)_packing: | 
|---|
|  | 62 | $$(MAKE) -C $(subdir) packing | 
|---|
|  | 63 |  | 
|---|
|  | 64 | .NOTPARALLEL: subdir_$(subdir)_all subdir_$(subdir)_install subdir_$(subdir)_packing | 
|---|
|  | 65 | endef | 
|---|
|  | 66 |  | 
|---|
|  | 67 | $(foreach subdir,$(SUBDIRS),$(eval $(def_do_subdir))) | 
|---|
|  | 68 |  | 
|---|
|  | 69 | # | 
|---|
|  | 70 | # A pass | 
|---|
|  | 71 | # | 
|---|
|  | 72 | all_subdirs: | $(foreach subdir,$(SUBDIRS), subdir_$(subdir)_all) | 
|---|
|  | 73 |  | 
|---|
|  | 74 | .NOTPARALLEL: all_subdirs | 
|---|
|  | 75 |  | 
|---|
|  | 76 |  | 
|---|
|  | 77 | # | 
|---|
|  | 78 | # The default rule. | 
|---|
|  | 79 | # | 
|---|
|  | 80 | all_recursive: | all_subdirs | 
|---|
|  | 81 |  | 
|---|
|  | 82 | .NOTPARALLEL: all_recursive | 
|---|
|  | 83 |  | 
|---|