VirtualBox

source: vbox/trunk/src/libs/Makefile.kmk@ 11816

Last change on this file since 11816 was 11703, checked in by vboxsync, 16 years ago

Documentation: implement VBOX_ONLY_DOCS

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 KB
Line 
1# $Id: Makefile.kmk 11703 2008-08-27 14:51:40Z 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
22ifdef VBOX_SINGLE_MAKEFILE
23SUB_DEPTH = ../..
24include $(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?>.
33include $(PATH_SUB_CURRENT)/liblzf-1.51/Makefile.kmk
34ifeq ($(SDK_VBOX_ZLIB_INCS),$(PATH_ROOT)/src/libs/zlib-1.2.1)
35 include $(PATH_SUB_CURRENT)/zlib-1.2.1/Makefile.kmk
36endif
37
38# PNG support (for screenshots).
39ifndef VBOX_ONLY_DOCS
40 ifeq ($(SDK_VBOX_LIBPNG_INCS),$(PATH_ROOT)/src/libs/libpng-1.2.8)
41 include $(PATH_SUB_CURRENT)/libpng-1.2.8/Makefile.kmk
42 endif
43endif # !VBOX_ONLY_DOCS
44
45# The kStuff lib used by IPRT and the debugger.
46ifdef IPRT_WITH_KSTUFF
47 include $(PATH_SUB_CURRENT)/kStuff/Makefile.kmk
48endif
49
50# OpenSSL for VRDP.
51ifndef VBOX_ONLY_DOCS
52 ifdef VBOX_WITH_VRDP
53 ifeq ($(SDK_VBOX_OPENSSL_INCS),$(SDK_VBOX_OPENSSL_DEFAULT_INCS))
54 include $(PATH_SUB_CURRENT)/openssl-0.9.8h/Makefile.kmk
55 endif
56 endif # VBOX_WITH_VRDP
57endif # !VBOX_ONLY_DOCS
58
59# Main related things - XML and XSLT, XPCOM.
60ifndef VBOX_ONLY_DOCS
61 ifdef VBOX_WITH_MAIN
62 ifdef VBOX_WITH_XPCOM
63 include $(PATH_SUB_CURRENT)/xpcom18a4/Makefile.kmk
64 endif
65 ifeq ($(SDK_VBOX_LIBXML2_INCS),$(PATH_ROOT)/src/libs/libxml2-2.6.30/include)
66 include $(PATH_SUB_CURRENT)/libxml2-2.6.30/Makefile.kmk
67 endif
68 ifeq ($(SDK_VBOX_LIBXSLT_INCS),$(PATH_ROOT)/src/libs/libxslt-1.1.22)
69 include $(PATH_SUB_CURRENT)/libxslt-1.1.22/Makefile.kmk
70 endif
71
72 # FFmpeg for test videos.
73 ifndef VBOX_OSE
74 ifdef VBOX_WITH_FFMPEG
75 if1of ($(KBUILD_TARGET), darwin)
76 include $(PATH_SUB_CURRENT)/ffmpeg-20060710/Makefile.kmk
77 endif
78 endif
79 endif
80 endif
81endif
82
83include $(KBUILD_PATH)/subfooter.kmk
84
85
86else # !VBOX_SINGLE_MAKEFILE
87DEPTH = ../..
88include $(KBUILD_PATH)/header.kmk
89
90
91subdirs := liblzf-1.51 $(subdirs.$(KBUILD_TARGET))
92ifdef IPRT_WITH_KSTUFF
93 subdirs += kStuff
94endif
95# @todo win and os2 need that even in OSE, all others should set proper *_INCS
96# values by the configure script
97#ifndef VBOX_OSE
98 ifeq ($(SDK_VBOX_ZLIB_INCS),$(PATH_ROOT)/src/libs/zlib-1.2.1)
99 subdirs += zlib-1.2.1
100 endif
101 ifeq ($(SDK_VBOX_LIBPNG_INCS),$(PATH_ROOT)/src/libs/libpng-1.2.8)
102 subdirs += libpng-1.2.8
103 endif
104#endif # !VBOX_OSE
105ifdef VBOX_WITH_VRDP
106 if1of ($(KBUILD_TARGET), darwin linux solaris win)
107 ifeq ($(SDK_VBOX_OPENSSL_INCS),$(SDK_VBOX_OPENSSL_DEFAULT_INCS))
108 subdirs += openssl-0.9.8h
109 endif
110 else
111 ifeq ($(SDK_VBOX_OPENSSL_INCS),$(PATH_ROOT)/src/libs/openssl-0.9.7e/include)
112 subdirs += openssl-0.9.7e
113 endif
114 endif
115endif
116ifdef VBOX_WITH_MAIN
117 ifdef VBOX_WITH_XPCOM
118 subdirs += xpcom18a4
119 endif
120 # Only build libxml2 if we don't use an external library.
121 ifeq ($(SDK_VBOX_LIBXML2_INCS),$(PATH_ROOT)/src/libs/libxml2-2.6.30/include)
122 subdirs += libxml2-2.6.30
123 endif
124 # Only build libxslt if we don't use an external library.
125 ifeq ($(SDK_VBOX_LIBXSLT_INCS),$(PATH_ROOT)/src/libs/libxslt-1.1.22)
126 subdirs += libxslt-1.1.22
127 endif
128 # FFmpeg for test videos
129 ifndef VBOX_OSE
130 ifdef VBOX_WITH_FFMPEG
131 ifeq ($(KBUILD_TARGET),darwin)
132 subdirs += ffmpeg-20060710
133 endif
134 endif
135 endif
136endif
137
138ifdef VBOX_ONLY_DOCS
139 subdirs := $(filter liblzf-1.51 zlib-1.2.1 kStuff, $(subdirs))
140endif
141
142# optimized walking
143SUBDIRS_BLDPROGS = $(filter xpcom18a4,$(subdirs))
144SUBDIRS_LIBRARIES = $(subdirs)
145SUBDIRS_BINARIES = $(filter xpcom18a4,$(subdirs))
146SUBDIRS_DLLS = $(filter xpcom18a4 ffmpeg-20060710,$(subdirs))
147SUBDIRS_OTHERS = $(filter xpcom18a4,$(subdirs))
148SUBDIRS_INSTALLS = $(filter xpcom18a4,$(subdirs))
149SUBDIRS_CLEAN = $(subdirs)
150SUBDIRS_NOTHING = $(subdirs)
151
152include $(KBUILD_PATH)/footer.kmk
153endif # !VBOX_SINGLE_MAKEFILE
154
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette