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 #*************************************************************************
36 VISIBILITY_HIDDEN
=TRUE
38 .IF
( "$(SYSTEM_MOZILLA)" == "YES" && "$(WITH_MOZILLA)" == "YES") ||
"$(WITH_MOZILLA)" == "NO" ||
( "$(OS)" == "MACOSX" )
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"
46 #mozilla specific stuff.
47 MOZ_LIB
=$(SOLARVERSION
)$/$(INPATH
)$/lib
$(UPDMINOREXT
)
48 MOZ_INC
=$(SOLARVERSION
)$/$(INPATH
)$/inc
$(UPDMINOREXT
)$/mozilla
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
)
59 .IF X
"$(MOZ_EMBED_LIB)"=="X"
60 MOZ_EMBED_LIB
:= $(MOZ_LIB
)$/baseembed_s.lib
62 .IF X
"$(MOZ_REG_LIB)" == "X"
63 MOZ_REG_LIB
:= $(MOZ_LIB
)$/mozreg.lib
69 MOZ_LIB_XPCOM
= -L
$(MOZ_LIB
) -lembed_base_s
-lnspr4
-lmozreg_s
-lxpcom
-lxpcom_core
72 MOZ_LIB_XPCOM
= $(MOZ_EMBED_LIB
) $(MOZ_LIB
)$/nspr4.lib
$(MOZ_REG_LIB
) $(MOZ_LIB
)$/xpcom.lib
$(MOZ_LIB
)$/xpcom_core.lib
75 MOZ_LIB_XPCOM
= -L
$(MOZ_LIB
) -lnspr4
-lxpcom_core
-lmozreg_s
-lembed_base_s
77 #End of mozilla specific stuff.
80 ENABLE_EXCEPTIONS
=TRUE
81 VISIBILITY_HIDDEN
=TRUE
84 COMPONENT_CONFIG_DATA
=$(TARGET
)2.xcu
85 COMPONENT_CONFIG_SCHEMA
=$(TARGET
)2.xcs
88 # --- Settings ----------------------------------
90 .IF
"$(DBGUTIL_OJ)"!=""
91 ENVCFLAGS
+=/FR
$(SLO
)$/
94 .INCLUDE
: $(PRJ
)$/makefile.pmk
96 .INCLUDE
: $(PRJ
)$/version.mk
98 # --- Files -------------------------------------
101 $(SLO
)$/MDriver.obj \
102 $(SLO
)$/MServices.obj
104 # --- MOZAB BASE Library -----------------------------------
106 SHL1VERSIONMAP
= $(TARGET
).map
107 SHL1TARGET
= $(TARGET
)$(DLLPOSTFIX
)
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 -------------------------------------
129 $(SLO
)$/MNSInit.obj \
130 $(SLO
)$/MQueryHelper.obj \
131 $(SLO
)$/MDatabaseMetaDataHelper.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
149 $(SLO
)$/MConfigAccess.obj \
150 $(SLO
)$/MCatalog.obj \
151 $(SLO
)$/MColumns.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 \
163 DEPOBJFILES
=$(SLO2FILES
)
165 # --- MOZAB BASE Library -----------------------------------
167 SHL2VERSIONMAP
= $(TARGET2
).map
168 SHL2TARGET
= $(TARGET2
)$(DLLPOSTFIX
)
169 SHL2OBJS
=$(SLO2FILES
)
182 .ENDIF
# "$(GUI)"=="WNT"
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
------------------------------
200 $(MISC
)$/$(SHL2TARGET
).flt
: makefile.mk
201 @echo
------------------------------