2
# This Source Code Form is subject to the terms of the Mozilla Public
3
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
topsrcdir = @top_srcdir@
11
include $(DEPTH)/config/autoconf.mk
18
CSRCS = xpt_arena.c xpt_struct.c xpt_xdr.c
20
# we don't want the shared lib, but we want to force the creation of a static lib.
25
# Don't use profile-guided optimization
26
NO_PROFILE_GUIDED_OPTIMIZE = 1
28
include $(topsrcdir)/config/rules.mk
30
DEFINES += -DEXPORT_XPT_API
32
# Build libxpt early so that it'll be available to xpidl, which also
33
# must be built early.
37
# XXX, bug 417045, make -jN combines badly with -save-temps in
38
# CFLAGS/CXXFLAGS (for stabs symbols with XCode3)
39
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
44
OS_COMPILE_CFLAGS += -Zl
49
-I$(topsrcdir)/xpcom/base \