1 | # $Id: Makefile.kmk 12200 2008-09-08 03:19:58Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for the external libraries.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | if 1 #def VBOX_SINGLE_MAKEFILE
|
---|
23 | SUB_DEPTH = ../..
|
---|
24 | include $(KBUILD_PATH)/subheader.kmk
|
---|
25 |
|
---|
26 | #
|
---|
27 | # Note! A number of the libs may be detected on the host system by the configure script.
|
---|
28 | # The usual way for testing for this is to see whether the Config.kmk default
|
---|
29 | # include path specific to the lib has been changed.
|
---|
30 | #
|
---|
31 |
|
---|
32 | # Compression libs used by IPRT and <what was it again?>.
|
---|
33 | include $(PATH_SUB_CURRENT)/liblzf-1.51/Makefile.kmk
|
---|
34 | if !defined(VBOX_ONLY_SDK)
|
---|
35 | ifeq ($(SDK_VBOX_ZLIB_INCS),$(PATH_ROOT)/src/libs/zlib-1.2.1)
|
---|
36 | include $(PATH_SUB_CURRENT)/zlib-1.2.1/Makefile.kmk
|
---|
37 | endif
|
---|
38 | endif
|
---|
39 |
|
---|
40 | # PNG support (for screenshots).
|
---|
41 | if !defined(VBOX_ONLY_DOCS) && !defined(VBOX_ONLY_SDK)
|
---|
42 | ifeq ($(SDK_VBOX_LIBPNG_INCS),$(PATH_ROOT)/src/libs/libpng-1.2.8)
|
---|
43 | include $(PATH_SUB_CURRENT)/libpng-1.2.8/Makefile.kmk
|
---|
44 | endif
|
---|
45 | endif # !VBOX_ONLY_DOCS
|
---|
46 |
|
---|
47 | # The kStuff lib used by IPRT and the debugger.
|
---|
48 | ifdef IPRT_WITH_KSTUFF
|
---|
49 | include $(PATH_SUB_CURRENT)/kStuff/Makefile.kmk
|
---|
50 | endif
|
---|
51 |
|
---|
52 | # OpenSSL for VRDP.
|
---|
53 | if defined(VBOX_WITH_VRDP) && !defined(VBOX_ONLY_DOCS) && !defined(VBOX_ONLY_SDK)
|
---|
54 | ifeq ($(SDK_VBOX_OPENSSL_INCS),$(SDK_VBOX_OPENSSL_DEFAULT_INCS))
|
---|
55 | include $(PATH_SUB_CURRENT)/openssl-0.9.8h/Makefile.kmk
|
---|
56 | endif
|
---|
57 | endif
|
---|
58 |
|
---|
59 |
|
---|
60 | # Main related things - XML and XSLT, XPCOM.
|
---|
61 | if defined(VBOX_WITH_MAIN) && !defined(VBOX_ONLY_DOCS)
|
---|
62 |
|
---|
63 | ifdef VBOX_WITH_XPCOM
|
---|
64 | include $(PATH_SUB_CURRENT)/xpcom18a4/Makefile.kmk
|
---|
65 | endif
|
---|
66 | ifeq ($(SDK_VBOX_LIBXML2_INCS),$(PATH_ROOT)/src/libs/libxml2-2.6.30/include)
|
---|
67 | include $(PATH_SUB_CURRENT)/libxml2-2.6.30/Makefile.kmk
|
---|
68 | endif
|
---|
69 | ifeq ($(SDK_VBOX_LIBXSLT_INCS),$(PATH_ROOT)/src/libs/libxslt-1.1.22)
|
---|
70 | include $(PATH_SUB_CURRENT)/libxslt-1.1.22/Makefile.kmk
|
---|
71 | endif
|
---|
72 |
|
---|
73 | # FFmpeg for test videos.
|
---|
74 | if defined(VBOX_WITH_FFMPEG) && !defined(VBOX_OSE) && !defined(VBOX_WITH_SDK)
|
---|
75 | if1of ($(KBUILD_TARGET), darwin)
|
---|
76 | include $(PATH_SUB_CURRENT)/ffmpeg-20060710/Makefile.kmk
|
---|
77 | endif
|
---|
78 | endif
|
---|
79 |
|
---|
80 | endif # VBOX_WITH_MAIN && !VBOX_ONLY_DOCS
|
---|
81 |
|
---|
82 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
83 |
|
---|
84 |
|
---|
85 | else # !VBOX_SINGLE_MAKEFILE
|
---|
86 | DEPTH = ../..
|
---|
87 | include $(KBUILD_PATH)/header.kmk
|
---|
88 |
|
---|
89 | subdirs := liblzf-1.51 $(subdirs.$(KBUILD_TARGET))
|
---|
90 |
|
---|
91 | ifdef IPRT_WITH_KSTUFF
|
---|
92 | subdirs += kStuff
|
---|
93 | endif
|
---|
94 | # @todo win and os2 need that even in OSE, all others should set proper *_INCS
|
---|
95 | # values by the configure script
|
---|
96 | #ifndef VBOX_OSE
|
---|
97 | ifeq ($(SDK_VBOX_ZLIB_INCS),$(PATH_ROOT)/src/libs/zlib-1.2.1)
|
---|
98 | subdirs += zlib-1.2.1
|
---|
99 | endif
|
---|
100 | ifeq ($(SDK_VBOX_LIBPNG_INCS),$(PATH_ROOT)/src/libs/libpng-1.2.8)
|
---|
101 | subdirs += libpng-1.2.8
|
---|
102 | endif
|
---|
103 | #endif # !VBOX_OSE
|
---|
104 | ifdef VBOX_WITH_VRDP
|
---|
105 | ifeq ($(SDK_VBOX_OPENSSL_INCS),$(SDK_VBOX_OPENSSL_DEFAULT_INCS))
|
---|
106 | subdirs += openssl-0.9.8h
|
---|
107 | endif
|
---|
108 | endif
|
---|
109 | ifdef VBOX_WITH_MAIN
|
---|
110 | ifdef VBOX_WITH_XPCOM
|
---|
111 | subdirs += xpcom18a4
|
---|
112 | endif
|
---|
113 | # Only build libxml2 if we don't use an external library.
|
---|
114 | ifeq ($(SDK_VBOX_LIBXML2_INCS),$(PATH_ROOT)/src/libs/libxml2-2.6.30/include)
|
---|
115 | subdirs += libxml2-2.6.30
|
---|
116 | endif
|
---|
117 | # Only build libxslt if we don't use an external library.
|
---|
118 | ifeq ($(SDK_VBOX_LIBXSLT_INCS),$(PATH_ROOT)/src/libs/libxslt-1.1.22)
|
---|
119 | subdirs += libxslt-1.1.22
|
---|
120 | endif
|
---|
121 | # FFmpeg for test videos
|
---|
122 | ifndef VBOX_OSE
|
---|
123 | ifdef VBOX_WITH_FFMPEG
|
---|
124 | if1of ($(KBUILD_TARGET), darwin)
|
---|
125 | subdirs += ffmpeg-20060710
|
---|
126 | endif
|
---|
127 | endif
|
---|
128 | endif
|
---|
129 | endif
|
---|
130 |
|
---|
131 | ifdef VBOX_ONLY_DOCS
|
---|
132 | subdirs := $(filter liblzf-1.51 zlib-1.2.1 kStuff, $(subdirs))
|
---|
133 | endif
|
---|
134 |
|
---|
135 | ifdef VBOX_ONLY_SDK
|
---|
136 | subdirs := $(filter-out liblzf-1.51 zlib-1.2.1 libpng-1.2.8 openssl-0.9.7e openssl-0.9.8h ffmpeg-20060710, $(subdirs))
|
---|
137 | endif
|
---|
138 |
|
---|
139 | # optimized walking
|
---|
140 | SUBDIRS_BLDPROGS = $(filter xpcom18a4,$(subdirs))
|
---|
141 | SUBDIRS_LIBRARIES = $(subdirs)
|
---|
142 | SUBDIRS_BINARIES = $(filter xpcom18a4,$(subdirs))
|
---|
143 | SUBDIRS_DLLS = $(filter xpcom18a4 ffmpeg-20060710,$(subdirs))
|
---|
144 | SUBDIRS_OTHERS = $(filter xpcom18a4,$(subdirs))
|
---|
145 | SUBDIRS_INSTALLS = $(filter xpcom18a4,$(subdirs))
|
---|
146 | SUBDIRS_CLEAN = $(subdirs)
|
---|
147 | SUBDIRS_NOTHING = $(subdirs)
|
---|
148 |
|
---|
149 | include $(KBUILD_PATH)/footer.kmk
|
---|
150 | endif # !VBOX_SINGLE_MAKEFILE
|
---|
151 |
|
---|