1 | # $Id: Makefile.kmk 590 2006-11-24 05:58:32Z bird $
|
---|
2 |
|
---|
3 |
|
---|
4 | DEPTH = .
|
---|
5 | include $(PATH_KBUILD)/header.kmk
|
---|
6 |
|
---|
7 | SUBDIRS = src
|
---|
8 |
|
---|
9 |
|
---|
10 | ifdef NIX_INSTALL_DIR
|
---|
11 | #
|
---|
12 | # When doing a unix install, install all the kBuild scripts.
|
---|
13 | #
|
---|
14 | INSTALLS += kBuild
|
---|
15 | kBuild_INST = $(NIX_INSTALL_DIR_SHARE)
|
---|
16 | kBuild_SOURCES := \
|
---|
17 | $(foreach src,\
|
---|
18 | $(wildcard kBuild/*.kmk kBuild/tools/*.kmk kBuild/sdks/*.kmk),\
|
---|
19 | $(src)=>$(subst kBuild/,,$(src)))
|
---|
20 |
|
---|
21 | #
|
---|
22 | # And install any binary only tools and dlls.
|
---|
23 | #
|
---|
24 | INSTALLS += kBuild_bin
|
---|
25 | kBuild_bin_INST = $(NIX_INSTALL_DIR_BIN)
|
---|
26 | kBuild_bin_SOURCES = \
|
---|
27 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/kmk_cat$(HOSTSUFF_EXE)=>kmk_cat$(HOSTSUFF_EXE) \
|
---|
28 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/kmk_mv$(HOSTSUFF_EXE)=>kmk_mv$(HOSTSUFF_EXE) \
|
---|
29 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/kmk_sed$(HOSTSUFF_EXE)=>kmk_sed$(HOSTSUFF_EXE) \
|
---|
30 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/kmk_ash$(HOSTSUFF_EXE)=>kmk_ash$(HOSTSUFF_EXE)
|
---|
31 |
|
---|
32 | ifeq ($(filter-out nt win win32 win64,$(BUILD_TARGET)),)
|
---|
33 | kBuild_bin_SOURCES.$(BUILD_TARGET) = \
|
---|
34 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/cygiconv-2.dll=>cygiconv-2.dll \
|
---|
35 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/cygintl-1.dll=>cygintl-1.dll \
|
---|
36 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/cygintl-2.dll=>cygintl-2.dll \
|
---|
37 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/cygintl-3.dll=>cygintl-3.dll \
|
---|
38 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/cygwin1.dll=>cygwin1.dll
|
---|
39 | endif
|
---|
40 |
|
---|
41 | ## @todo this isn't quite right, but then we will probably never use this on OS/2 anyway.
|
---|
42 | kBuild_bin_SOURCES.os2 = \
|
---|
43 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/gcc29160.dll=>gcc29160.dll \
|
---|
44 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/gnufu316.dll=>gnufu316.dll \
|
---|
45 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/Iintl6i.dll=>Iintl6i.dll \
|
---|
46 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/libc05.dll=>libc05.dll \
|
---|
47 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/libc06.dll=>libc06.dll \
|
---|
48 | kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/libc061.dll=>libc061.dll
|
---|
49 |
|
---|
50 | endif
|
---|
51 |
|
---|
52 | include $(PATH_KBUILD)/footer.kmk
|
---|
53 |
|
---|