update dev300-m58
[ooovba.git] / connectivity / source / drivers / mozab / bootstrap / makefile.mk
bloba22b3699760a02eb5b2a0ee130317ad9b1e71099
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.14 $
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 #*************************************************************************
31 CALL_CDECL=TRUE
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.
38 PRJ=..$/..$/..$/..
39 PRJINC=..$/..$/..
40 PRJNAME=connectivity
41 TARGET=mozbootstrap
43 USE_DEFFILE=TRUE
44 ENABLE_EXCEPTIONS=TRUE
45 VISIBILITY_HIDDEN=TRUE
47 # --- Settings ----------------------------------
48 .IF "$(DBGUTIL_OJ)"!=""
49 ENVCFLAGS+=/FR$(SLO)$/
50 .ENDIF
53 .INCLUDE : settings.mk
55 .INCLUDE : $(PRJ)$/version.mk
58 #mozilla specific stuff.
59 # --- Files -------------------------------------
61 SLOFILES += \
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
70 SHL1TARGET=$(TARGET)
71 SHL1VERSIONMAP= $(TARGET).map
72 SHL1OBJS=$(SLOFILES)
73 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
74 DEF1NAME=$(SHL1TARGET)
76 SHL1STDLIBS=\
77 $(CPPULIB) \
78 $(CPPUHELPERLIB) \
79 $(SALLIB) \
80 $(COMPHELPERLIB)
82 .ELSE
83 SLOFILES += \
84 $(SLO)$/MNSInit.obj \
85 $(SLO)$/MNSProfileManager.obj \
86 $(SLO)$/MNSRunnable.obj \
87 $(SLO)$/MNSProfile.obj \
88 $(SLO)$/MNSProfileDirServiceProvider.obj
89 .ENDIF
91 CDEFS += -DMOZILLA_INTERNAL_API
93 .IF "$(GUI)"=="UNX"
94 .IF "$(COMNAME)"=="sunpro5"
95 CFLAGS += -features=tmplife
96 #This flag is needed to build mozilla 1.7 code
97 .ENDIF # "$(COMNAME)"=="sunpro5"
98 .ENDIF
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"
110 INCPOST += $(MOZINC)
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
119 CFLAGSCXX += \
120 -fno-rtti -Wall -Wconversion -Wpointer-arith \
121 -Wcast-align -Woverloaded-virtual -Wsynth \
122 -Wno-long-long
123 .ELSE
124 .IF "$(DBG_LEVEL)" == "0"
125 INCPRE += $(MOZINC)
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 \
134 -UDEBUG
135 CFLAGS += -GR- -W3 -Gy -MD -UDEBUG
136 .ELSE
137 INCPRE += $(MOZINC)
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 \
146 -UDEBUG
147 CFLAGS += -Zi -GR- -W3 -Gy -MDd -UDEBUG
148 .IF "$(CCNUMVER)" >= "001399999999"
149 CDEFS += -D_STL_NOFORCE_MANIFEST
150 .ENDIF
151 .ENDIF
152 .ENDIF
153 .ENDIF
154 .IF "$(GUI)" == "UNX"
155 INCPOST += $(MOZINC)
156 CDEFS+= -DMOZILLA_CLIENT \
157 -DXP_UNIX
158 .IF "$(OS)" == "LINUX"
159 CFLAGS += -fPIC -g
160 CDEFS+= -DOJI
162 CFLAGSCXX += \
163 -fno-rtti -Wconversion -Wpointer-arith \
164 -Wcast-align -Woverloaded-virtual -Wsynth \
165 -Wno-long-long -pthread
166 CDEFS += -DTRACING
167 .ELIF "$(OS)" == "NETBSD" || "$(OS)" == "MACOSX"
168 CFLAGS += -fPIC
169 CFLAGSCXX += \
170 -fno-rtti -Wconversion -Wpointer-arith \
171 -Wcast-align -Woverloaded-virtual -Wsynth \
172 -Wno-long-long -Wno-deprecated
173 CDEFS += -DTRACING
174 .ENDIF
176 SHL1TARGET_NAME=$(TARGET)$(MOZAB_MAJOR)
178 .ENDIF # MACOSX
180 # --- Targets ----------------------------------
182 .INCLUDE : target.mk