merge the formfield patch from ooo-build
[ooovba.git] / connectivity / source / drivers / mozab / mozillasrc / makefile.mk
blobe31d4c7e412b97a63134a2aa51b7be788a5f9009
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.25 $
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=mozabsrc
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 .IF ("$(SYSTEM_MOZILLA)" == "YES" && "$(WITH_MOZILLA)" == "YES") || "$(WITH_MOZILLA)" == "NO" || "$(OS)" == "OS2"
56 dummy:
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"
60 .ELSE
62 .INCLUDE : $(PRJ)$/version.mk
65 #mozilla specific stuff.
66 # --- Files -------------------------------------
68 SLOFILES = \
69 $(SLO)$/MQueryHelper.obj \
70 $(SLO)$/MDatabaseMetaDataHelper.obj \
71 $(SLO)$/MQuery.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
81 .IF "$(GUI)"=="UNX"
82 .IF "$(COMNAME)"=="sunpro5"
83 CFLAGS += -features=tmplife
84 #This flag is needed to build mozilla 1.7 code
85 .ENDIF # "$(COMNAME)"=="sunpro5"
86 .ENDIF
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
96 .IF "$(GUI)" == "WNT"
97 .IF "$(COM)"=="GCC"
98 INCPOST += $(MOZINC)
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
107 CFLAGSCXX += \
108 -fno-rtti -Wall -Wconversion -Wpointer-arith \
109 -Wcast-align -Woverloaded-virtual -Wsynth \
110 -Wno-long-long
111 .ELSE
112 .IF "$(DBG_LEVEL)" == "0"
113 INCPRE += $(MOZINC)
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 \
122 -UDEBUG
123 CFLAGS += -GR- -W3 -Gy -MD -UDEBUG
124 .ELSE
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 -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 \
134 -UDEBUG
135 CFLAGS += -Zi -GR- -W3 -Gy -MDd -UDEBUG
136 .IF "$(CCNUMVER)" >= "001399999999"
137 CDEFS += -D_STL_NOFORCE_MANIFEST
138 .ENDIF
139 .ENDIF
140 .ENDIF
141 .ENDIF
142 .IF "$(GUI)" == "UNX"
143 INCPOST += $(MOZINC)
144 CDEFS+= -DMOZILLA_CLIENT \
145 -DXP_UNIX
146 .IF "$(OS)" == "LINUX"
147 CFLAGS += -fPIC -g
148 CDEFS+= -DOJI
150 CFLAGSCXX += \
151 -fno-rtti -Wconversion -Wpointer-arith \
152 -Wcast-align -Woverloaded-virtual -Wsynth \
153 -Wno-long-long -pthread
154 CDEFS += -DTRACING
155 .ELIF "$(OS)" == "NETBSD" || "$(OS)" == "MACOSX"
156 CFLAGS += -fPIC
157 CFLAGSCXX += \
158 -fno-rtti -Wconversion -Wpointer-arith \
159 -Wcast-align -Woverloaded-virtual -Wsynth \
160 -Wno-long-long -Wno-deprecated
161 CDEFS += -DTRACING
162 .ENDIF
163 .ENDIF
165 SHL1TARGET_NAME=$(TARGET)$(MOZAB_MAJOR)
167 .ENDIF # MACOSX
169 # --- Targets ----------------------------------
171 .INCLUDE : target.mk