source: trunk/Config.kmk@ 3320

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

Just make packing non-default.

  • Property svn:keywords set to Id
File size: 4.3 KB
RevLine 
[3108]1# $Id: Config.kmk 3305 2007-05-06 00:19:50Z bird $
[2667]2## @file
3#
4# Top-level kBuild configuration.
5#
6# Copyright (c) 2006 knut st. osmundsen <bird@anduin.net>
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#
[2470]26
[2667]27#
28# Add the packing pass.
29#
30PASSES += PACKING
[3305]31#DEFAULT_PASSES += PACKING
[2470]32
[2667]33#
34# This is where we install during the build.
35#
[2470]36PATH_INS := $(PATH_OUT)/dist
37
[2480]38#
39# The /bin templates.
40#
[2470]41TEMPLATE_bin = /bin/ programs.
[2473]42TEMPLATE_bin_TOOL = GCC3
43TEMPLATE_bin_TOOL.os2 = GCC3OMF
44TEMPLATE_bin_INST = bin/
[2470]45
[2480]46#
47# The /usr/bin templates.
48#
[2470]49TEMPLATE_usr.bin = /usr/bin/ programs.
[2473]50TEMPLATE_usr.bin_TOOL = GCC3
51TEMPLATE_usr.bin_TOOL.os2 = GCC3OMF
52TEMPLATE_usr.bin_INST = usr/bin/
[2470]53
[2473]54TEMPLATE_usr.bin.script = /usr/bin/ scripts
55TEMPLATE_usr.bin.script_INST = usr/bin/
56
[2472]57TEMPLATE_usr.bin.doc = /usr/bin/ program documentation.
[2550]58# 1: source 2: target 3: _INST 4: default ins path
59TEMPLATE_usr.bin.doc_INSTFUN = $(4)/usr/doc/$(subst .doc,,$(2))/$(notdir $(1))
[2470]60
[2472]61TEMPLATE_usr.bin.man = /usr/bin/ program manual page
[2550]62# 1: source 2: target 3: _INST 4: default ins path
63TEMPLATE_usr.bin.man_INSTFUN = $(4)/usr/man/man$(notdir $(subst .,/,$(1)))/$(notdir $(1)).gz
[2472]64# 1: source 2: destination, 3: target
65TEMPLATE_usr.bin.man_INSTALLER = gzip -9 -c $(1) > $(2)
66
[2678]67TEMPLATE_usr.bin.alp = /usr/bin/ libraries using alp as assembler.
68TEMPLATE_usr.bin.alp_TOOL = GCC3
69TEMPLATE_usr.bin.alp_TOOL.os2 = GCC3OMF
70TEMPLATE_usr.bin.alp_ASTOOL = ALP
71TEMPLATE_usr.bin.alp_ASFLAGS = -Sv:ALP
72TEMPLATE_usr.bin.alp_INST = usr/bin/
73
[2480]74#
[2550]75# The /usr/sbin templates.
76#
77TEMPLATE_usr.sbin = /usr/sbin/ programs.
78TEMPLATE_usr.sbin_TOOL = GCC3
79TEMPLATE_usr.sbin_TOOL.os2 = GCC3OMF
80TEMPLATE_usr.sbin_INST = usr/sbin/
81
82TEMPLATE_usr.sbin.script = /usr/sbin/ scripts
83TEMPLATE_usr.sbin.script_INST = usr/sbin/
84
85TEMPLATE_usr.sbin.doc = /usr/bin/ program documentation.
86# 1: source 2: target 3: _INST 4: default ins path
87TEMPLATE_usr.sbin.doc_INSTFUN = $(4)/usr/doc/$(subst .doc,,$(2))/$(notdir $(1))
88
89TEMPLATE_usr.sbin.man = /usr/bin/ program manual page
90# 1: source 2: target 3: _INST 4: default ins path
91TEMPLATE_usr.sbin.man_INSTFUN = $(4)/usr/man/man$(notdir $(subst .,/,$(1)))/$(notdir $(1)).gz
92# 1: source 2: destination, 3: target
93TEMPLATE_usr.sbin.man_INSTALLER = gzip -9 -c $(1) > $(2)
94
95
96#
[2480]97# The /usr/include templates.
98#
99TEMPLATE_usr.include = /usr/include/ headers
100TEMPLATE_usr.include_INST = usr/include/
[3108]101TEMPLATE_usr.include_MODE = 644
[2472]102
[2480]103TEMPLATE_usr.include.sys = /usr/include/sys/ headers
104TEMPLATE_usr.include.sys_INST = usr/include/sys/
[3108]105TEMPLATE_usr.include.sys_MODE = 644
[2473]106
107
[2480]108#
109# The /usr/lib templates.
110#
[2678]111TEMPLATE_usr.lib = /usr/lib/ libraries.
[2480]112TEMPLATE_usr.lib_TOOL = GCC3
113TEMPLATE_usr.lib_TOOL.os2 = GCC3OMF
114TEMPLATE_usr.lib_INST = usr/lib/
[3108]115TEMPLATE_usr.lib_MODE = 644
[2480]116
[2678]117TEMPLATE_usr.lib.nasm = /usr/lib/ libraries using nasm as assembler.
[2480]118TEMPLATE_usr.lib.nasm_TOOL = GCC3
119TEMPLATE_usr.lib.nasm_TOOL.os2 = GCC3OMF
120TEMPLATE_usr.lib.nasm_ASTOOL = NASM
121TEMPLATE_usr.lib.nasm_ASFLAGS = -f obj
122TEMPLATE_usr.lib.nasm_INST = usr/lib/
[3108]123TEMPLATE_usr.lib.nasm_MODE = 644
[2480]124
125
[2667]126#
[3108]127# The generic data install template.
128#
129TEMPLATE_gendata = /usr/lib/ libraries.
130TEMPLATE_gendata_INST = /tmp
131TEMPLATE_gendata_MODE = 644
132
133
134#
[2667]135# The default way of packing.
136# We install to packages/<subdir>, then we zip up what's there.
137#
138PACKAGE_ZIP ?= $(PATH_OUT)/packages/$(CURSUBDIR).zip
139PATH_PACKAGE ?= $(PATH_OUT)/packages/$(CURSUBDIR)
140PACKING ?= defaultpacking
141defaultpacking:
[3305]142 $(RM) -f "$(PACKAGE_ZIP)"
143 $(RM) -Rf "$(PATH_PACKAGE)"
144 +$(MAKE) "PATH_INS=$(PATH_PACKAGE)" install
145 cd "$(PATH_PACKAGE)/" && zip -9r $(PATH_OUT)/packages/$(CURSUBDIR).zip *
[3108]146.NOTPARALLEL: defaultpacking
[2667]147# todo zip up the source and create a diff.
148
Note: See TracBrowser for help on using the repository browser.