[305] | 1 | # $Id: Makefile.kmk 2226 2009-01-08 22:31:25Z bird $
|
---|
[1509] | 2 | ## @file
|
---|
[1665] | 3 | # Top-Level Sub-Makefile for kBuild.
|
---|
[1509] | 4 | #
|
---|
[305] | 5 |
|
---|
[1509] | 6 | #
|
---|
[2019] | 7 | # Copyright (c) 2005-2008 knut st. osmundsen <bird-src-spam@anduin.net>
|
---|
[1509] | 8 | #
|
---|
| 9 | # This file is part of kBuild.
|
---|
| 10 | #
|
---|
| 11 | # kBuild is free software; you can redistribute it and/or modify
|
---|
| 12 | # it under the terms of the GNU General Public License as published by
|
---|
[2019] | 13 | # the Free Software Foundation; either version 3 of the License, or
|
---|
[1509] | 14 | # (at your option) any later version.
|
---|
| 15 | #
|
---|
| 16 | # kBuild 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
|
---|
[2019] | 22 | # along with kBuild. If not, see <http://www.gnu.org/licenses/>
|
---|
[1509] | 23 | #
|
---|
| 24 | #
|
---|
[305] | 25 |
|
---|
[1665] | 26 | SUB_DEPTH = .
|
---|
| 27 | include $(KBUILD_PATH)/subheader.kmk
|
---|
[305] | 28 |
|
---|
[1665] | 29 | include $(PATH_SUB_CURRENT)/src/Makefile.kmk
|
---|
[587] | 30 |
|
---|
| 31 |
|
---|
| 32 | ifdef NIX_INSTALL_DIR
|
---|
| 33 | #
|
---|
[2226] | 34 | # When doing a unix install, install all the kBuild scripts and docs.
|
---|
| 35 | # TODO: Make this default and make it possible to disable it for in-tree development.
|
---|
[587] | 36 | #
|
---|
[2226] | 37 | INSTALLS += kBuild-data
|
---|
| 38 | kBuild-data_TEMPLATE = DATA
|
---|
| 39 | kBuild-data_SOURCES := \
|
---|
[587] | 40 | $(foreach src,\
|
---|
[2202] | 41 | $(wildcard \
|
---|
| 42 | kBuild/*.kmk \
|
---|
| 43 | kBuild/tools/*.kmk \
|
---|
| 44 | kBuild/sdks/*.kmk \
|
---|
| 45 | kBuild/units/*.kmk \
|
---|
[2226] | 46 | kBuild/msgstyles/*.kmk \
|
---|
| 47 | kBuild/templates/*.kmk),\
|
---|
| 48 | $(src)=>$(subst kBuild/,,$(src)))
|
---|
| 49 |
|
---|
| 50 | INSTALLS += kBuild-doc
|
---|
| 51 | kBuild-doc_TEMPLATE = DOC
|
---|
| 52 | kBuild-doc_SOURCES := \
|
---|
| 53 | $(foreach src,\
|
---|
| 54 | $(wildcard \
|
---|
[2202] | 55 | kBuild/doc/*.txt \
|
---|
| 56 | kBuild/doc/*.html \
|
---|
[2226] | 57 | ),\
|
---|
| 58 | $(src)=>$(subst kBuild/doc/,,$(src)))
|
---|
[1421] | 59 | endif
|
---|
[587] | 60 |
|
---|
| 61 | #
|
---|
| 62 | # And install any binary only tools and dlls.
|
---|
[2226] | 63 | # TODO: Ship env.sh and envos2.cmd / envwin.cmd where applicable.
|
---|
[587] | 64 | #
|
---|
| 65 | INSTALLS += kBuild_bin
|
---|
[1421] | 66 | kBuild_bin_INST = $(TEMPLATE_BIN_INST)
|
---|
[789] | 67 | kBuild_bin_SOURCES =
|
---|
[587] | 68 |
|
---|
[1475] | 69 | kBuild_bin_SOURCES.os2 = \
|
---|
[2202] | 70 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/libc06.dll=>libc06.dll \
|
---|
| 71 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/libc061.dll=>libc061.dll \
|
---|
| 72 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/libc062.dll=>libc062.dll \
|
---|
| 73 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/libc063.dll=>libc063.dll
|
---|
[1475] | 74 |
|
---|
[1509] | 75 | if1of ($(KBUILD_TARGET), nt win)
|
---|
| 76 | kBuild_bin_SOURCES.$(KBUILD_TARGET) = \
|
---|
| 77 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/kmk_ash.exe=>kmk_ash.exe \
|
---|
| 78 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/cygwin1.dll=>cygwin1.dll
|
---|
| 79 | kBuild_bin_SOURCES.$(KBUILD_TARGET).x86 = \
|
---|
| 80 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/msvcr71.dll=>msvcr71.dll
|
---|
| 81 | kBuild_bin_SOURCES.$(KBUILD_TARGET).amd64 = \
|
---|
| 82 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 83 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest
|
---|
[1534] | 84 | kBuild_bin_SOURCES.profile = \
|
---|
| 85 | D:/coding/kStuff/svn/trunk/out/win.$(KBUILD_TARGET_ARCH)/release/kStuff/bin/kPrf2.dll \
|
---|
| 86 | D:/coding/kStuff/svn/trunk/out/win.$(KBUILD_TARGET_ARCH)/release/kStuff/bin/kPrf2WinApiWrappers.dll
|
---|
[587] | 87 | endif
|
---|
| 88 |
|
---|
| 89 |
|
---|
[1665] | 90 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
[587] | 91 |
|
---|