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 #*************************************************************************
37 # Disable '-z defs' due to broken libxpcom.
41 # --- Settings -----------------------------------------------------
43 .INCLUDE
: settings.mk
44 .INCLUDE
: $(PRJ
)$/util
$/target.pmk
46 .IF
"$(WITH_MOZILLA)" == "NO"
48 @echo
"No mozilla -> no nss -> no libxmlsec -> no xmlsecurity..."
51 # --- Files --------------------------------------------------------
55 # --- Shared-Library -----------------------------------------------
58 # The 1st shared library
61 SHL1TARGET
= $(SHL1NAME
)
62 SHL1LIBS
= $(SLB
)$/fw.lib
69 SHL1IMPLIB
= $(SHL1TARGET
)
70 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
71 DEF1NAME
= $(SHL1TARGET
)
72 DEF1EXPORTFILE
= xsec_fw.dxp
75 # The 2nd shared library
78 SHL2TARGET
= $(SHL2NAME
)
82 .IF
"$(CRYPTO_ENGINE)" == "mscrypto"
84 $(SLB
)$/xs_mscrypt.lib
101 .IF
"$(OS)"=="SOLARIS"
105 .IF
"$(SYSTEM_MOZILLA)" == "YES"
106 .IF
"$(NSPR_LIB)" != ""
107 SHL2STDLIBS
+= $(NSPR_LIB
)
109 .IF
"$(NSS_LIB)" != ""
110 SHL2STDLIBS
+= $(NSS_LIB
)
114 .IF
"$(CRYPTO_ENGINE)" == "mscrypto"
115 SHL2STDLIBS
+= $(MSCRYPTOLIBS
)
117 SHL2STDLIBS
+= $(NSSCRYPTOLIBS
)
120 SHL2IMPLIB
= $(SHL2TARGET
)
121 SHL2DEF
= $(MISC
)$/$(SHL2TARGET
).def
122 DEF2NAME
= $(SHL2TARGET
)
123 .IF
"$(CRYPTO_ENGINE)" == "mscrypto"
124 DEF2EXPORTFILE
= exports_xsmscrypt.dxp
126 DEF2EXPORTFILE
= exports_xsnss.dxp
130 $(SRS
)$/component.srs \
134 RESLIB1IMAGES
=$(PRJ
)$/res
135 RESLIB1SRSFILES
= $(SRSFILELIST
)
140 $(SLB
)$/dialogs.lib \
141 $(SLB
)$/component.lib
157 SHL4VERSIONMAP
= xmlsecurity.map
159 SHL4IMPLIB
=i
$(TARGET
)
160 SHL4DEF
=$(MISC
)$/$(SHL4TARGET
).def
161 DEF4NAME
=$(SHL4TARGET
)
163 # --- Targets ----------------------------------------------------------
167 # --- Filter -----------------------------------------------------------
169 $(MISC
)$/$(SHL3TARGET
).flt
: makefile.mk
170 $(TYPE
) $(SHL3TARGET
).flt
> $@