1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
33 # Disable '-z defs' due to broken libxpcom.
37 # --- Settings -----------------------------------------------------
39 .INCLUDE
: settings.mk
40 .INCLUDE
: $(PRJ
)$/util
$/target.pmk
42 .IF
"$(WITH_MOZILLA)" == "NO"
44 @echo
"No mozilla -> no nss -> no libxmlsec -> no xmlsecurity..."
47 # --- Files --------------------------------------------------------
51 # --- Shared-Library -----------------------------------------------
54 # The 1st shared library
57 SHL1TARGET
= $(SHL1NAME
)
58 SHL1LIBS
= $(SLB
)$/fw.lib
65 SHL1IMPLIB
= $(SHL1TARGET
)
66 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
67 DEF1NAME
= $(SHL1TARGET
)
68 DEF1EXPORTFILE
= xsec_fw.dxp
71 # The 2nd shared library
75 SHL2TARGET
= $(SHL2NAME
)
78 .IF
"$(ENABLE_NSS_MODULE)"=="YES" ||
"$(SYSTEM_MOZILLA)" == "YES"
83 .IF
"$(CRYPTO_ENGINE)" == "mscrypto"
85 $(SLB
)$/xs_mscrypt.lib
105 .IF
"$(OS)"=="SOLARIS"
109 .IF
"$(SYSTEM_MOZILLA)" == "YES"
110 .IF
"$(NSPR_LIB)" != ""
111 SHL2STDLIBS
+= $(NSPR_LIB
)
113 .IF
"$(NSS_LIB)" != ""
114 SHL2STDLIBS
+= $(NSS_LIB
)
118 .IF
"$(CRYPTO_ENGINE)" == "mscrypto"
119 SHL2STDLIBS
+= $(MSCRYPTOLIBS
)
121 SHL2STDLIBS
+= $(NSSCRYPTOLIBS
)
124 SHL2IMPLIB
= $(SHL2TARGET
)
125 SHL2DEF
= $(MISC
)$/$(SHL2TARGET
).def
126 DEF2NAME
= $(SHL2TARGET
)
127 .IF
"$(CRYPTO_ENGINE)" == "mscrypto"
128 DEF2EXPORTFILE
= exports_xsmscrypt.dxp
130 DEF2EXPORTFILE
= exports_xsnss.dxp
134 $(SRS
)$/component.srs \
138 RESLIB1IMAGES
=$(PRJ
)$/res
139 RESLIB1SRSFILES
= $(SRSFILELIST
)
144 $(SLB
)$/dialogs.lib \
145 $(SLB
)$/component.lib
161 SHL4VERSIONMAP
= $(SOLARENV
)/src
/component.map
163 SHL4IMPLIB
=i
$(TARGET
)
164 SHL4DEF
=$(MISC
)$/$(SHL4TARGET
).def
165 DEF4NAME
=$(SHL4TARGET
)
167 # --- Targets ----------------------------------------------------------
171 # --- Filter -----------------------------------------------------------
173 $(MISC
)$/$(SHL3TARGET
).flt
: makefile.mk
174 $(TYPE
) $(SHL3TARGET
).flt
> $@