[305] | 1 | # $Id: Makefile.kmk 1790 2008-09-16 02:18:50Z bird $
|
---|
[1509] | 2 | ## @file
|
---|
[1665] | 3 | # Top-Level Sub-Makefile for kBuild.
|
---|
[1509] | 4 | #
|
---|
[305] | 5 |
|
---|
[1509] | 6 | #
|
---|
| 7 | # Copyright (c) 2005-2008 knut st. osmundsen <bird-kBuild-spam@anduin.net>
|
---|
| 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
|
---|
| 13 | # the Free Software Foundation; either version 2 of the License, or
|
---|
| 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
|
---|
| 22 | # along with kBuild; if not, write to the Free Software
|
---|
| 23 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
---|
| 24 | #
|
---|
| 25 | #
|
---|
[305] | 26 |
|
---|
[1665] | 27 | SUB_DEPTH = .
|
---|
| 28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
[305] | 29 |
|
---|
[1665] | 30 | include $(PATH_SUB_CURRENT)/src/Makefile.kmk
|
---|
[587] | 31 |
|
---|
| 32 |
|
---|
| 33 | ifdef NIX_INSTALL_DIR
|
---|
| 34 | #
|
---|
| 35 | # When doing a unix install, install all the kBuild scripts.
|
---|
| 36 | #
|
---|
| 37 | INSTALLS += kBuild
|
---|
[590] | 38 | kBuild_INST = $(NIX_INSTALL_DIR_SHARE)
|
---|
[587] | 39 | kBuild_SOURCES := \
|
---|
| 40 | $(foreach src,\
|
---|
[1544] | 41 | $(wildcard \
|
---|
| 42 | kBuild/*.kmk \
|
---|
| 43 | kBuild/tools/*.kmk \
|
---|
| 44 | kBuild/sdks/*.kmk \
|
---|
[1790] | 45 | kBuild/units/*.kmk \
|
---|
[1544] | 46 | kBuild/msgstyles/* \
|
---|
| 47 | kBuild/templates/*),\
|
---|
[587] | 48 | $(src)=>$(subst kBuild/,,$(src)))
|
---|
[1421] | 49 | endif
|
---|
[587] | 50 |
|
---|
| 51 | #
|
---|
| 52 | # And install any binary only tools and dlls.
|
---|
| 53 | #
|
---|
| 54 | INSTALLS += kBuild_bin
|
---|
[1421] | 55 | kBuild_bin_INST = $(TEMPLATE_BIN_INST)
|
---|
[789] | 56 | kBuild_bin_SOURCES =
|
---|
[587] | 57 |
|
---|
[1475] | 58 | kBuild_bin_SOURCES.os2 = \
|
---|
[1509] | 59 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/libc062.dll=>libc062.dll
|
---|
[1475] | 60 |
|
---|
[1509] | 61 | if1of ($(KBUILD_TARGET), nt win)
|
---|
| 62 | kBuild_bin_SOURCES.$(KBUILD_TARGET) = \
|
---|
| 63 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/kmk_ash.exe=>kmk_ash.exe \
|
---|
| 64 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/cygwin1.dll=>cygwin1.dll
|
---|
| 65 | kBuild_bin_SOURCES.$(KBUILD_TARGET).x86 = \
|
---|
| 66 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/msvcr71.dll=>msvcr71.dll
|
---|
| 67 | kBuild_bin_SOURCES.$(KBUILD_TARGET).amd64 = \
|
---|
| 68 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 69 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest
|
---|
[1534] | 70 | kBuild_bin_SOURCES.profile = \
|
---|
| 71 | D:/coding/kStuff/svn/trunk/out/win.$(KBUILD_TARGET_ARCH)/release/kStuff/bin/kPrf2.dll \
|
---|
| 72 | D:/coding/kStuff/svn/trunk/out/win.$(KBUILD_TARGET_ARCH)/release/kStuff/bin/kPrf2WinApiWrappers.dll
|
---|
[587] | 73 | endif
|
---|
| 74 |
|
---|
| 75 |
|
---|
[1665] | 76 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
[587] | 77 |
|
---|