| 1 | # $Id: $
|
|---|
| 2 | ## @file
|
|---|
| 3 | #
|
|---|
| 4 | # Top-level kBuild configuration.
|
|---|
| 5 | #
|
|---|
| 6 | # Copyright (c) 2006 knut st. osmundsen <[email protected]>
|
|---|
| 7 | #
|
|---|
| 8 | #
|
|---|
| 9 | # This file is part of kNIX.
|
|---|
| 10 | #
|
|---|
| 11 | # kNIX is free software; you can redistribute it and/or modify
|
|---|
| 12 | # it under the terms of the GNU General Public License as published by
|
|---|
| 13 | # the Free Software Foundation; either version 2 of the License, or
|
|---|
| 14 | # (at your option) any later version.
|
|---|
| 15 | #
|
|---|
| 16 | # kNIX 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 General Public License for more details.
|
|---|
| 20 | #
|
|---|
| 21 | # You should have received a copy of the GNU General Public License
|
|---|
| 22 | # along with kNIX; if not, write to the Free Software
|
|---|
| 23 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|---|
| 24 | #
|
|---|
| 25 | #
|
|---|
| 26 |
|
|---|
| 27 | #
|
|---|
| 28 | # Add the packing pass.
|
|---|
| 29 | #
|
|---|
| 30 | PASSES += PACKING
|
|---|
| 31 | DEFAULT_PASSES += PACKING
|
|---|
| 32 |
|
|---|
| 33 | #
|
|---|
| 34 | # This is where we install during the build.
|
|---|
| 35 | #
|
|---|
| 36 | PATH_INS := $(PATH_OUT)/dist
|
|---|
| 37 |
|
|---|
| 38 | #
|
|---|
| 39 | # The /bin templates.
|
|---|
| 40 | #
|
|---|
| 41 | TEMPLATE_bin = /bin/ programs.
|
|---|
| 42 | TEMPLATE_bin_TOOL = GCC3
|
|---|
| 43 | TEMPLATE_bin_TOOL.os2 = GCC3OMF
|
|---|
| 44 | TEMPLATE_bin_INST = bin/
|
|---|
| 45 |
|
|---|
| 46 | #
|
|---|
| 47 | # The /usr/bin templates.
|
|---|
| 48 | #
|
|---|
| 49 | TEMPLATE_usr.bin = /usr/bin/ programs.
|
|---|
| 50 | TEMPLATE_usr.bin_TOOL = GCC3
|
|---|
| 51 | TEMPLATE_usr.bin_TOOL.os2 = GCC3OMF
|
|---|
| 52 | TEMPLATE_usr.bin_INST = usr/bin/
|
|---|
| 53 |
|
|---|
| 54 | TEMPLATE_usr.bin.script = /usr/bin/ scripts
|
|---|
| 55 | TEMPLATE_usr.bin.script_INST = usr/bin/
|
|---|
| 56 |
|
|---|
| 57 | TEMPLATE_usr.bin.doc = /usr/bin/ program documentation.
|
|---|
| 58 | # 1: source 2: target 3: _INST 4: default ins path
|
|---|
| 59 | TEMPLATE_usr.bin.doc_INSTFUN = $(4)/usr/doc/$(subst .doc,,$(2))/$(notdir $(1))
|
|---|
| 60 |
|
|---|
| 61 | TEMPLATE_usr.bin.man = /usr/bin/ program manual page
|
|---|
| 62 | # 1: source 2: target 3: _INST 4: default ins path
|
|---|
| 63 | TEMPLATE_usr.bin.man_INSTFUN = $(4)/usr/man/man$(notdir $(subst .,/,$(1)))/$(notdir $(1)).gz
|
|---|
| 64 | # 1: source 2: destination, 3: target
|
|---|
| 65 | TEMPLATE_usr.bin.man_INSTALLER = gzip -9 -c $(1) > $(2)
|
|---|
| 66 |
|
|---|
| 67 | TEMPLATE_usr.bin.alp = /usr/bin/ libraries using alp as assembler.
|
|---|
| 68 | TEMPLATE_usr.bin.alp_TOOL = GCC3
|
|---|
| 69 | TEMPLATE_usr.bin.alp_TOOL.os2 = GCC3OMF
|
|---|
| 70 | TEMPLATE_usr.bin.alp_ASTOOL = ALP
|
|---|
| 71 | TEMPLATE_usr.bin.alp_ASFLAGS = -Sv:ALP
|
|---|
| 72 | TEMPLATE_usr.bin.alp_INST = usr/bin/
|
|---|
| 73 |
|
|---|
| 74 | #
|
|---|
| 75 | # The /usr/sbin templates.
|
|---|
| 76 | #
|
|---|
| 77 | TEMPLATE_usr.sbin = /usr/sbin/ programs.
|
|---|
| 78 | TEMPLATE_usr.sbin_TOOL = GCC3
|
|---|
| 79 | TEMPLATE_usr.sbin_TOOL.os2 = GCC3OMF
|
|---|
| 80 | TEMPLATE_usr.sbin_INST = usr/sbin/
|
|---|
| 81 |
|
|---|
| 82 | TEMPLATE_usr.sbin.script = /usr/sbin/ scripts
|
|---|
| 83 | TEMPLATE_usr.sbin.script_INST = usr/sbin/
|
|---|
| 84 |
|
|---|
| 85 | TEMPLATE_usr.sbin.doc = /usr/bin/ program documentation.
|
|---|
| 86 | # 1: source 2: target 3: _INST 4: default ins path
|
|---|
| 87 | TEMPLATE_usr.sbin.doc_INSTFUN = $(4)/usr/doc/$(subst .doc,,$(2))/$(notdir $(1))
|
|---|
| 88 |
|
|---|
| 89 | TEMPLATE_usr.sbin.man = /usr/bin/ program manual page
|
|---|
| 90 | # 1: source 2: target 3: _INST 4: default ins path
|
|---|
| 91 | TEMPLATE_usr.sbin.man_INSTFUN = $(4)/usr/man/man$(notdir $(subst .,/,$(1)))/$(notdir $(1)).gz
|
|---|
| 92 | # 1: source 2: destination, 3: target
|
|---|
| 93 | TEMPLATE_usr.sbin.man_INSTALLER = gzip -9 -c $(1) > $(2)
|
|---|
| 94 |
|
|---|
| 95 |
|
|---|
| 96 | #
|
|---|
|
|---|