| 1 | # $Id: Makefile.kmk 2019 2008-11-02 00:21:05Z bird $
|
|---|
| 2 | ## @file
|
|---|
| 3 | # Top-Level Sub-Makefile for kBuild.
|
|---|
| 4 | #
|
|---|
| 5 |
|
|---|
| 6 | #
|
|---|
| 7 | # Copyright (c) 2005-2008 knut st. osmundsen <bird-src-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 3 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, see <http://www.gnu.org/licenses/>
|
|---|
| 23 | #
|
|---|
| 24 | #
|
|---|
| 25 |
|
|---|
| 26 | SUB_DEPTH = .
|
|---|
| 27 | include $(KBUILD_PATH)/subheader.kmk
|
|---|
| 28 |
|
|---|
| 29 | include $(PATH_SUB_CURRENT)/src/Makefile.kmk
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | ifdef NIX_INSTALL_DIR
|
|---|
| 33 | #
|
|---|
| 34 | # When doing a unix install, install all the kBuild scripts.
|
|---|
| 35 | #
|
|---|
| 36 | INSTALLS += kBuild
|
|---|
| 37 | kBuild_INST = $(NIX_INSTALL_DIR_SHARE)
|
|---|
| 38 | kBuild_SOURCES := \
|
|---|
| 39 | $(foreach src,\
|
|---|
| 40 | $(wildcard \
|
|---|
| 41 | kBuild/*.kmk \
|
|---|
| 42 | kBuild/tools/*.kmk \
|
|---|
| 43 | kBuild/sdks/*.kmk \
|
|---|
| 44 | kBuild/units/*.kmk \
|
|---|
| 45 | kBuild/msgstyles/* \
|
|---|
| 46 | kBuild/templates/*),\
|
|---|
| 47 | $(src)=>$(subst kBuild/,,$(src)))
|
|---|
| 48 | endif
|
|---|
| 49 |
|
|---|
| 50 | #
|
|---|
| 51 | # And install any binary only tools and dlls.
|
|---|
| 52 | #
|
|---|
| 53 | INSTALLS += kBuild_bin
|
|---|
| 54 | kBuild_bin_INST = $(TEMPLATE_BIN_INST)
|
|---|
| 55 | kBuild_bin_SOURCES =
|
|---|
| 56 |
|
|---|
| 57 | kBuild_bin_SOURCES.os2 = \
|
|---|
| 58 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/libc062.dll=>libc062.dll
|
|---|
| 59 |
|
|---|
| 60 | if1of ($(KBUILD_TARGET), nt win)
|
|---|
| 61 | kBuild_bin_SOURCES.$(KBUILD_TARGET) = \
|
|---|
| 62 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/kmk_ash.exe=>kmk_ash.exe \
|
|---|
| 63 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/cygwin1.dll=>cygwin1.dll
|
|---|
| 64 | kBuild_bin_SOURCES.$(KBUILD_TARGET).x86 = \
|
|---|
| 65 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/msvcr71.dll=>msvcr71.dll
|
|---|
| 66 | kBuild_bin_SOURCES.$(KBUILD_TARGET).amd64 = \
|
|---|
| 67 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
|---|
| 68 | kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest
|
|---|
| 69 | kBuild_bin_SOURCES.profile = \
|
|---|
| 70 | D:/coding/kStuff/svn/trunk/out/win.$(KBUILD_TARGET_ARCH)/release/kStuff/bin/kPrf2.dll \
|
|---|
| 71 | D:/coding/kStuff/svn/trunk/out/win.$(KBUILD_TARGET_ARCH)/release/kStuff/bin/kPrf2WinApiWrappers.dll
|
|---|
| 72 | endif
|
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 | include $(FILE_KBUILD_SUB_FOOTER)
|
|---|
| 76 |
|
|---|