1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
33 #mozilla specific stuff.
34 MOZ_LIB
=$(SOLARVERSION
)$/$(INPATH
)$/lib
$(UPDMINOREXT
)
35 MOZ_INC
=$(SOLARVERSION
)$/$(INPATH
)$/inc
$(UPDMINOREXT
)$/mozilla
36 #End of mozilla specific stuff.
44 ENABLE_EXCEPTIONS
=TRUE
45 VISIBILITY_HIDDEN
=TRUE
47 # --- Settings ----------------------------------
48 .IF
"$(DBGUTIL_OJ)"!=""
49 ENVCFLAGS
+=/FR
$(SLO
)$/
53 .INCLUDE
: settings.mk
55 .IF
("$(SYSTEM_MOZILLA)" == "YES" && "$(WITH_MOZILLA)" == "YES") ||
"$(WITH_MOZILLA)" == "NO" ||
"$(OS)" == "OS2"
57 @echo
" Not building the mozillasrc stuff in OpenOffice.org build"
58 @echo
" dependency to Mozilla developer snapshots not feasable at the moment"
59 @echo
" see http://bugzilla.mozilla.org/show_bug.cgi?id=135137"
62 .INCLUDE
: $(PRJ
)$/version.mk
65 #mozilla specific stuff.
66 # --- Files -------------------------------------
69 $(SLO
)$/MQueryHelper.obj \
70 $(SLO
)$/MDatabaseMetaDataHelper.obj \
72 $(SLO
)$/MTypeConverter.obj \
73 $(SLO
)$/MNameMapper.obj \
74 $(SLO
)$/MNSMozabProxy.obj \
75 $(SLO
)$/MNSTerminateListener.obj \
76 $(SLO
)$/MLdapAttributeMap.obj \
79 CDEFS
+= -DMOZILLA_INTERNAL_API
82 .IF
"$(COMNAME)"=="sunpro5"
83 CFLAGS
+= -features
=tmplife
84 #This flag is needed to build mozilla 1.7 code
85 .ENDIF
# "$(COMNAME)"=="sunpro5"
88 MOZINC
= .
-I..
-I..
$/bootstrap
-I
$(MOZ_INC
) -I
$(MOZ_INC
)$/nspr
-I
$(MOZ_INC
)$/xpcom \
89 -I
$(MOZ_INC
)$/string
-I
$(MOZ_INC
)$/rdf
-I
$(MOZ_INC
)$/msgbase \
90 -I
$(MOZ_INC
)$/addrbook
-I
$(MOZ_INC
)$/mork
-I
$(MOZ_INC
)$/locale \
91 -I
$(MOZ_INC
)$/pref
-I
$(MOZ_INC
)$/mime
-I
$(MOZ_INC
)$/chrome \
92 -I
$(MOZ_INC
)$/necko
-I
$(MOZ_INC
)$/intl
-I
$(MOZ_INC
)$/profile \
93 -I
$(MOZ_INC
)$/embed_base
-I
$(MOZ_INC
)$/mozldap
-I
$(MOZ_INC
)$/uconv\
94 -I
$(MOZ_INC
)$/xpcom_obsolete
-I
$(MOZ_INC
)$/content
99 CDEFS
+= -DWINVER
=0x400 -DMOZILLA_CLIENT \
100 -DNS_NET_FILE
-DCookieManagement
-DSingleSignon
-DClientWallet \
101 -DTRACING
-DXP_PC
-DXP_WIN
-DXP_WIN32
-DHW_THREADS \
102 -DNS_MT_SUPPORTED
-DNETLIB_THREAD \
103 -DOJI
-DWIN32
-D_X86_
-D_WINDOWS \
104 -DMOZ_XUL
-DMOZ_REFLOW_PERF
-DMOZ_REFLOW_PERF_DSP \
105 -DNSPR20
-DOS_HAS_DLL
-DNO_JNI_STUBS \
106 -DNETSCAPE
-DMOZILLA_CLIENT
-DJS_THREADSAFE
-DNECKO
-DINCLUDE_XUL
108 -fno-rtti
-Wall
-Wconversion
-Wpointer-arith \
109 -Wcast-align
-Woverloaded-virtual
-Wsynth \
112 .IF
"$(DBG_LEVEL)" == "0"
114 CDEFS
+= -DWINVER
=0x400 -DMOZILLA_CLIENT \
115 -DNS_NET_FILE
-DCookieManagement
-DSingleSignon
-DClientWallet \
116 -DTRACING
-DXP_PC
-DXP_WIN
-DXP_WIN32
-DHW_THREADS \
117 -DDMSVC4
-DNS_MT_SUPPORTED
-DNETLIB_THREAD \
118 -DOJI
-DWIN32
-D_X86_
-D_WINDOWS \
119 -DMOZ_XUL
-DMOZ_REFLOW_PERF
-DMOZ_REFLOW_PERF_DSP \
120 -DNSPR20
-DOS_HAS_DLL
-DNO_JNI_STUBS \
121 -DNETSCAPE
-DMOZILLA_CLIENT
-DJS_THREADSAFE
-DNECKO
-DINCLUDE_XUL \
123 CFLAGS
+= -GR-
-W3
-Gy
-MD
-UDEBUG
126 CDEFS
+= -DWINVER
=0x400 -DMOZILLA_CLIENT \
127 -DNS_NET_FILE
-DCookieManagement
-DSingleSignon
-DClientWallet \
128 -DTRACING
-DXP_PC
-DXP_WIN
-DXP_WIN32
-DHW_THREADS \
129 -DDMSVC4
-DDEVELOPER_DEBUG
-DNS_MT_SUPPORTED
-DNETLIB_THREAD \
130 -DOJI
-DWIN32
-D_X86_
-D_WINDOWS \
131 -DMOZ_XUL
-DMOZ_REFLOW_PERF
-DMOZ_REFLOW_PERF_DSP \
132 -DDEBUG_Administrator
-DNSPR20
-DOS_HAS_DLL
-DNO_JNI_STUBS \
133 -DNETSCAPE
-DMOZILLA_CLIENT
-DJS_THREADSAFE
-DNECKO
-DINCLUDE_XUL \
135 CFLAGS
+= -Zi
-GR-
-W3
-Gy
-MDd
-UDEBUG
136 .IF
"$(CCNUMVER)" >= "001399999999"
137 CDEFS
+= -D_STL_NOFORCE_MANIFEST
142 .IF
"$(GUI)" == "UNX"
144 CDEFS
+= -DMOZILLA_CLIENT \
146 .IF
"$(OS)" == "LINUX"
151 -fno-rtti
-Wconversion
-Wpointer-arith \
152 -Wcast-align
-Woverloaded-virtual
-Wsynth \
153 -Wno-long-long
-pthread
155 .ELIF
"$(OS)" == "NETBSD" ||
"$(OS)" == "MACOSX"
158 -fno-rtti
-Wconversion
-Wpointer-arith \
159 -Wcast-align
-Woverloaded-virtual
-Wsynth \
160 -Wno-long-long
-Wno-deprecated
165 SHL1TARGET_NAME
=$(TARGET
)$(MOZAB_MAJOR
)
169 # --- Targets ----------------------------------