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 .INCLUDE
: $(PRJ
)$/version.mk
58 #mozilla specific stuff.
59 # --- Files -------------------------------------
62 $(SLO
)$/MNSINIParser.obj \
63 $(SLO
)$/MNSProfileDiscover.obj \
64 $(SLO
)$/MMozillaBootstrap.obj \
65 $(SLO
)$/MNSFolders.obj
67 .IF
( "$(SYSTEM_MOZILLA)" == "YES" && "$(WITH_MOZILLA)" == "YES" ) ||
( "$(WITH_MOZILLA)" == "NO" ) ||
( "$(OS)" == "MACOSX" )
68 CDEFS
+=-DMINIMAL_PROFILEDISCOVER
71 SHL1VERSIONMAP
= $(TARGET
).map
73 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
74 DEF1NAME
=$(SHL1TARGET
)
85 $(SLO
)$/MNSProfileManager.obj \
86 $(SLO
)$/MNSRunnable.obj \
87 $(SLO
)$/MNSProfile.obj \
88 $(SLO
)$/MNSProfileDirServiceProvider.obj
91 CDEFS
+= -DMOZILLA_INTERNAL_API
94 .IF
"$(COMNAME)"=="sunpro5"
95 CFLAGS
+= -features
=tmplife
96 #This flag is needed to build mozilla 1.7 code
97 .ENDIF
# "$(COMNAME)"=="sunpro5"
100 MOZINC
= .
-I..
-I..
$/mozillasrc
-I
$(MOZ_INC
) -I
$(MOZ_INC
)$/nspr
-I
$(MOZ_INC
)$/xpcom \
101 -I
$(MOZ_INC
)$/string
-I
$(MOZ_INC
)$/rdf
-I
$(MOZ_INC
)$/msgbase \
102 -I
$(MOZ_INC
)$/addrbook
-I
$(MOZ_INC
)$/mork
-I
$(MOZ_INC
)$/locale \
103 -I
$(MOZ_INC
)$/pref
-I
$(MOZ_INC
)$/mime
-I
$(MOZ_INC
)$/chrome \
104 -I
$(MOZ_INC
)$/necko
-I
$(MOZ_INC
)$/intl
-I
$(MOZ_INC
)$/profile \
105 -I
$(MOZ_INC
)$/embed_base
-I
$(MOZ_INC
)$/mozldap
-I
$(MOZ_INC
)$/uconv\
106 -I
$(MOZ_INC
)$/xpcom_obsolete
-I
$(MOZ_INC
)$/content
108 .IF
"$(GUI)" == "WNT"
109 .IF
"$(COM)" == "GCC"
111 CDEFS
+= -DWINVER
=0x400 -DMOZILLA_CLIENT \
112 -DNS_NET_FILE
-DCookieManagement
-DSingleSignon
-DClientWallet \
113 -DTRACING
-DXP_PC
-DXP_WIN
-DXP_WIN32
-DHW_THREADS \
114 -DNS_MT_SUPPORTED
-DNETLIB_THREAD \
115 -DOJI
-DWIN32
-D_X86_
-D_WINDOWS \
116 -DMOZ_XUL
-DMOZ_REFLOW_PERF
-DMOZ_REFLOW_PERF_DSP \
117 -DNSPR20
-DOS_HAS_DLL
-DNO_JNI_STUBS \
118 -DNETSCAPE
-DMOZILLA_CLIENT
-DJS_THREADSAFE
-DNECKO
-DINCLUDE_XUL
120 -fno-rtti
-Wall
-Wconversion
-Wpointer-arith \
121 -Wcast-align
-Woverloaded-virtual
-Wsynth \
124 .IF
"$(DBG_LEVEL)" == "0"
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
-DNS_MT_SUPPORTED
-DNETLIB_THREAD \
130 -DOJI
-DWIN32
-D_X86_
-D_WINDOWS \
131 -DMOZ_XUL
-DMOZ_REFLOW_PERF
-DMOZ_REFLOW_PERF_DSP \
132 -DNSPR20
-DOS_HAS_DLL
-DNO_JNI_STUBS \
133 -DNETSCAPE
-DMOZILLA_CLIENT
-DJS_THREADSAFE
-DNECKO
-DINCLUDE_XUL \
135 CFLAGS
+= -GR-
-W3
-Gy
-MD
-UDEBUG
138 CDEFS
+= -DWINVER
=0x400 -DMOZILLA_CLIENT \
139 -DNS_NET_FILE
-DCookieManagement
-DSingleSignon
-DClientWallet \
140 -DTRACING
-DXP_PC
-DXP_WIN
-DXP_WIN32
-DHW_THREADS \
141 -DDMSVC4
-DDEVELOPER_DEBUG
-DNS_MT_SUPPORTED
-DNETLIB_THREAD \
142 -DOJI
-DWIN32
-D_X86_
-D_WINDOWS \
143 -DMOZ_XUL
-DMOZ_REFLOW_PERF
-DMOZ_REFLOW_PERF_DSP \
144 -DDEBUG_Administrator
-DNSPR20
-DOS_HAS_DLL
-DNO_JNI_STUBS \
145 -DNETSCAPE
-DMOZILLA_CLIENT
-DJS_THREADSAFE
-DNECKO
-DINCLUDE_XUL \
147 CFLAGS
+= -Zi
-GR-
-W3
-Gy
-MDd
-UDEBUG
148 .IF
"$(CCNUMVER)" >= "001399999999"
149 CDEFS
+= -D_STL_NOFORCE_MANIFEST
154 .IF
"$(GUI)" == "UNX"
156 CDEFS
+= -DMOZILLA_CLIENT \
158 .IF
"$(OS)" == "LINUX"
163 -fno-rtti
-Wconversion
-Wpointer-arith \
164 -Wcast-align
-Woverloaded-virtual
-Wsynth \
165 -Wno-long-long
-pthread
167 .ELIF
"$(OS)" == "NETBSD" ||
"$(OS)" == "MACOSX"
170 -fno-rtti
-Wconversion
-Wpointer-arith \
171 -Wcast-align
-Woverloaded-virtual
-Wsynth \
172 -Wno-long-long
-Wno-deprecated
176 SHL1TARGET_NAME
=$(TARGET
)$(MOZAB_MAJOR
)
180 # --- Targets ----------------------------------