VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/xpcom/build/Makefile.in@ 95259

Last change on this file since 95259 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 KB
Line 
1#
2# ***** BEGIN LICENSE BLOCK *****
3# Version: MPL 1.1/GPL 2.0/LGPL 2.1
4#
5# The contents of this file are subject to the Mozilla Public License Version
6# 1.1 (the "License"); you may not use this file except in compliance with
7# the License. You may obtain a copy of the License at
8# http://www.mozilla.org/MPL/
9#
10# Software distributed under the License is distributed on an "AS IS" basis,
11# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12# for the specific language governing rights and limitations under the
13# License.
14#
15# The Original Code is mozilla.org code.
16#
17# The Initial Developer of the Original Code is
18# Netscape Communications Corporation.
19# Portions created by the Initial Developer are Copyright (C) 1998
20# the Initial Developer. All Rights Reserved.
21#
22# Contributor(s):
23#
24# Alternatively, the contents of this file may be used under the terms of
25# either of the GNU General Public License Version 2 or later (the "GPL"),
26# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27# in which case the provisions of the GPL or the LGPL are applicable instead
28# of those above. If you wish to allow use of your version of this file only
29# under the terms of either the GPL or the LGPL, and not to allow others to
30# use your version of this file under the terms of the MPL, indicate your
31# decision by deleting the provisions above and replace them with the notice
32# and other provisions required by the GPL or the LGPL. If you do not delete
33# the provisions above, a recipient may use your version of this file under
34# the terms of any one of the MPL, the GPL or the LGPL.
35#
36# ***** END LICENSE BLOCK *****
37
38DEPTH = ../..
39topsrcdir = @top_srcdir@
40srcdir = @srcdir@
41VPATH = @srcdir@
42
43include $(DEPTH)/config/autoconf.mk
44
45MODULE = xpcom
46LIBRARY_NAME = xpcom
47
48PACKAGE_FILE = xpcom.pkg
49PACKAGE_VARS += USE_SHORT_LIBNAME
50
51ifdef ENABLE_TESTS
52PACKAGE_FILE += xpcom-tests.pkg
53endif
54
55# Do not set EXPORT_LIBRARY as we do not want xpcom in the static libs list
56#EXPORT_LIBRARY = 1
57GRE_MODULE = 1
58
59REQUIRES = string \
60 $(NULL)
61
62# pull in MoreFiles for MacOSX
63ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
64REQUIRES += macmorefiles
65endif
66
67CPPSRCS = nsXPComInit.cpp \
68 nsStringAPI.cpp \
69 $(NULL)
70
71ifeq ($(OS_ARCH),WINNT)
72CPPSRCS += dlldeps.cpp
73endif
74
75ifdef XPCOM_USE_LEA
76CSRCS += malloc.c
77endif
78
79ifeq ($(OS_TARGET),OS2)
80CPPSRCS += nsOS2VACLegacy.cpp
81endif
82
83ifdef GC_LEAK_DETECTOR
84EXTRA_DSO_LIBS = boehm
85endif
86
87SHARED_LIBRARY_LIBS = \
88 $(DIST)/lib/$(LIB_PREFIX)xpcomds_s.$(LIB_SUFFIX) \
89 $(DIST)/lib/$(LIB_PREFIX)xpcomio_s.$(LIB_SUFFIX) \
90 $(DIST)/lib/$(LIB_PREFIX)xpcomcomponents_s.$(LIB_SUFFIX) \
91 $(DIST)/lib/$(LIB_PREFIX)xpcomthreads_s.$(LIB_SUFFIX) \
92 $(DIST)/lib/$(LIB_PREFIX)xpcomproxy_s.$(LIB_SUFFIX) \
93 $(DIST)/lib/$(LIB_PREFIX)xpcombase_s.$(LIB_SUFFIX) \
94 $(DIST)/lib/$(LIB_PREFIX)xptcall.$(LIB_SUFFIX) \
95 $(DIST)/lib/$(LIB_PREFIX)xptinfo.$(LIB_SUFFIX) \
96 $(DIST)/lib/$(LIB_PREFIX)xpt.$(LIB_SUFFIX) \
97 $(DIST)/lib/$(LIB_PREFIX)xptcmd.$(LIB_SUFFIX) \
98 $(DIST)/lib/$(LIB_PREFIX)string_s.$(LIB_SUFFIX) \
99 $(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
100 $(NULL)
101
102LOCAL_INCLUDES = \
103 -I.. \
104 -I$(srcdir)/../glue \
105 -I$(srcdir)/../base \
106 -I$(srcdir)/../ds \
107 -I$(srcdir)/../io \
108 -I$(srcdir)/../components \
109 -I$(srcdir)/../threads \
110 -I$(srcdir)/../threads/_xpidlgen \
111 -I$(srcdir)/../proxy/src \
112 $(NULL)
113
114SDK_HEADERS = \
115 nsXPCOM.h \
116 nsXPCOMCID.h \
117 $(NULL)
118
119SDK_LIBRARY = $(IMPORT_LIBRARY)
120SDK_BINARY = $(SHARED_LIBRARY)
121
122# pull in MoreFiles for MacOSX
123ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
124EXTRA_DSO_LIBS = macmorefiles_s
125EXTRA_DSO_LDOPTS += $(EXTRA_DSO_LIBS)
126EXTRA_DEPS += $(DIST)/lib/$(LIB_PREFIX)macmorefiles_s.$(LIB_SUFFIX)
127endif
128
129# Force use of PIC
130FORCE_USE_PIC = 1
131
132FORCE_SHARED_LIB = 1
133
134# UNIX98 iconv support
135OS_LIBS += $(LIBICONV)
136
137include $(topsrcdir)/config/rules.mk
138
139DEFINES += \
140 -D_IMPL_NS_COM \
141 -DEXPORT_XPT_API \
142 -DEXPORT_XPTC_API \
143 -DEXPORT_XPTI_API
144
145EXTRA_DSO_LDOPTS += $(NSPR_LIBS)
146
147ifdef GC_LEAK_DETECTOR
148DEFINES += -DGC_LEAK_DETECTOR
149endif
150
151ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
152CXXFLAGS += $(TK_CFLAGS)
153EXTRA_DSO_LDOPTS += $(TK_LIBS)
154endif
155
156ifeq ($(OS_ARCH),BeOS)
157EXTRA_DSO_LDOPTS += -lbe
158endif
159
160ifeq ($(OS_ARCH),WINNT)
161EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME,shell32 ole32 uuid)
162ifneq (,$(MOZ_DEBUG)$(NS_TRACE_MALLOC))
163EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME,imagehlp)
164endif
165endif # WINNT
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