update dev300-m58
[ooovba.git] / connectivity / source / drivers / mozab / makefile.mk
blob42ce1ab8ca6e721c118b8f74a34e1d47fca5bcd3
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.28 $
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 PRJ=..$/..$/..
32 PRJINC=..$/..
33 PRJNAME=connectivity
34 TARGET=mozab
35 TARGET2=$(TARGET)drv
36 VISIBILITY_HIDDEN=TRUE
38 .IF ( "$(SYSTEM_MOZILLA)" == "YES" && "$(WITH_MOZILLA)" == "YES") || "$(WITH_MOZILLA)" == "NO" || ( "$(OS)" == "MACOSX" )
39 all:
40 @echo " Not building the mozilla address book driver"
41 @echo " dependency to Mozilla developer snapshots not feasable at the moment"
42 @echo " see http://bugzilla.mozilla.org/show_bug.cgi?id=135137"
43 @echo " see http://www.mozilla.org/issues/show_bug.cgi?id=91209"
44 .ENDIF
46 #mozilla specific stuff.
47 MOZ_LIB=$(SOLARVERSION)$/$(INPATH)$/lib$(UPDMINOREXT)
48 MOZ_INC=$(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/mozilla
50 .IF "$(OS)"=="WNT"
51 .IF "$(USE_SHELL)"=="4nt"
52 MOZ_EMBED_LIB := $(shell @+-dir /ba:f $(MOZ_LIB)$/embed_base_s.lib 2>NUL )
53 MOZ_REG_LIB := $(shell @+-dir /ba:f $(MOZ_LIB)$/mozreg_s.lib 2>NUL )
54 .ELSE #"$(USE_SHELL)"=="4nt"
55 MOZ_EMBED_LIB := $(shell @-test -f $(MOZ_LIB)$/embed_base_s.lib && echo $(MOZ_LIB)$/embed_base_s.lib )
56 MOZ_REG_LIB := $(shell @-test -f $(MOZ_LIB)$/mozreg_s.lib && echo $(MOZ_LIB)$/mozreg_s.lib )
57 .ENDIF
59 .IF X"$(MOZ_EMBED_LIB)"=="X"
60 MOZ_EMBED_LIB := $(MOZ_LIB)$/baseembed_s.lib
61 .ENDIF
62 .IF X"$(MOZ_REG_LIB)" == "X"
63 MOZ_REG_LIB := $(MOZ_LIB)$/mozreg.lib
64 .ENDIF
65 .ENDIF
67 .IF "$(OS)"=="WNT"
68 .IF "$(COM)"=="GCC"
69 MOZ_LIB_XPCOM= -L$(MOZ_LIB) -lembed_base_s -lnspr4 -lmozreg_s -lxpcom -lxpcom_core
70 .ELSE
71 LIB += $(MOZ_LIB)
72 MOZ_LIB_XPCOM= $(MOZ_EMBED_LIB) $(MOZ_LIB)$/nspr4.lib $(MOZ_REG_LIB) $(MOZ_LIB)$/xpcom.lib $(MOZ_LIB)$/xpcom_core.lib
73 .ENDIF
74 .ELSE "$(OS)"=="WNT"
75 MOZ_LIB_XPCOM= -L$(MOZ_LIB) -lnspr4 -lxpcom_core -lmozreg_s -lembed_base_s
76 .ENDIF
77 #End of mozilla specific stuff.
79 USE_DEFFILE=TRUE
80 ENABLE_EXCEPTIONS=TRUE
81 VISIBILITY_HIDDEN=TRUE
83 .IF "$(OS)"!="WNT"
84 COMPONENT_CONFIG_DATA=$(TARGET)2.xcu
85 COMPONENT_CONFIG_SCHEMA=$(TARGET)2.xcs
86 .ENDIF
88 # --- Settings ----------------------------------
90 .IF "$(DBGUTIL_OJ)"!=""
91 ENVCFLAGS+=/FR$(SLO)$/
92 .ENDIF
94 .INCLUDE : $(PRJ)$/makefile.pmk
96 .INCLUDE : $(PRJ)$/version.mk
98 # --- Files -------------------------------------
100 SLOFILES=\
101 $(SLO)$/MDriver.obj \
102 $(SLO)$/MServices.obj
104 # --- MOZAB BASE Library -----------------------------------
106 SHL1VERSIONMAP= $(TARGET).map
107 SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
108 SHL1OBJS=$(SLOFILES)
109 SHL1STDLIBS=\
110 $(CPPULIB) \
111 $(CPPUHELPERLIB) \
112 $(SALLIB) \
113 $(DBTOOLSLIB)
115 SHL1DEPN=
116 SHL1IMPLIB= i$(TARGET)$(DLLPOSTFIX)
118 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
120 DEF1NAME= $(SHL1TARGET)
121 DEF1DEPN= $(MISC)$/$(SHL1TARGET).flt \
122 $(SLB)$/$(TARGET).lib
123 DEFLIB1NAME=$(TARGET)
124 #DEF1EXPORTFILE= exports.dxp
127 # --- Files -------------------------------------
128 MOZSLOFILES=\
129 $(SLO)$/MNSInit.obj \
130 $(SLO)$/MQueryHelper.obj \
131 $(SLO)$/MDatabaseMetaDataHelper.obj \
132 $(SLO)$/MQuery.obj \
133 $(SLO)$/MTypeConverter.obj \
134 $(SLO)$/MNameMapper.obj \
135 $(SLO)$/MNSMozabProxy.obj \
136 $(SLO)$/MNSTerminateListener.obj \
137 $(SLO)$/MMozillaBootstrap.obj \
138 $(SLO)$/MNSFolders.obj \
139 $(SLO)$/MNSProfileDiscover.obj \
140 $(SLO)$/MNSProfileManager.obj \
141 $(SLO)$/MNSINIParser.obj \
142 $(SLO)$/MNSRunnable.obj \
143 $(SLO)$/MNSProfile.obj \
144 $(SLO)$/MNSProfileDirServiceProvider.obj \
145 $(SLO)$/MLdapAttributeMap.obj
148 SLO2FILES=\
149 $(SLO)$/MConfigAccess.obj \
150 $(SLO)$/MCatalog.obj \
151 $(SLO)$/MColumns.obj \
152 $(SLO)$/MTable.obj \
153 $(SLO)$/MTables.obj \
154 $(SLO)$/MColumnAlias.obj \
155 $(SLO)$/MPreparedStatement.obj \
156 $(SLO)$/MStatement.obj \
157 $(SLO)$/MResultSetMetaData.obj \
158 $(SLO)$/MResultSet.obj \
159 $(SLO)$/MDatabaseMetaData.obj \
160 $(SLO)$/MConnection.obj \
161 $(MOZSLOFILES)
163 DEPOBJFILES=$(SLO2FILES)
165 # --- MOZAB BASE Library -----------------------------------
167 SHL2VERSIONMAP= $(TARGET2).map
168 SHL2TARGET= $(TARGET2)$(DLLPOSTFIX)
169 SHL2OBJS=$(SLO2FILES)
170 SHL2STDLIBS=\
171 $(CPPULIB) \
172 $(CPPUHELPERLIB) \
173 $(VOSLIB) \
174 $(SALLIB) \
175 $(DBTOOLSLIB) \
176 $(COMPHELPERLIB) \
177 $(MOZ_LIB_XPCOM)
179 .IF "$(GUI)"=="WNT"
180 SHL2STDLIBS += \
181 $(SHELL32LIB)
182 .ENDIF # "$(GUI)"=="WNT"
184 SHL2DEPN=
185 SHL2IMPLIB= i$(TARGET2)
186 SHL2DEF= $(MISC)$/$(SHL2TARGET).def
187 DEF2NAME= $(SHL2TARGET)
189 # --- Targets ----------------------------------
191 .INCLUDE : $(PRJ)$/target.pmk
193 # --- filter file ------------------------------
195 $(MISC)$/$(SHL1TARGET).flt: makefile.mk
196 @echo ------------------------------
197 @echo _TI >$@
198 @echo _real >>$@
200 $(MISC)$/$(SHL2TARGET).flt: makefile.mk
201 @echo ------------------------------
202 @echo _TI >$@
203 @echo _real >>$@