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 #*************************************************************************
32 ENABLE_EXCEPTIONS
=TRUE
39 .INCLUDE
: settings.mk
42 .IF
"$(WITH_LDAP)" != "YES"
44 @echo
"LDAP disabled."
47 .IF
"$(LDAPSDKINCLUDES)" == ""
49 .IF
"$(SYSTEM_MOZILLA)" == "YES" && "$(WITH_OPENLDAP)" != "YES"
50 LDAPSDKINCLUDES
= $(MOZ_LDAP_CFLAGS
)
52 LDAPSDKINCLUDES
= -I
$(SOLARINCDIR
)$/mozilla
56 .IF
"$(WITH_OPENLDAP)" == "YES"
57 CFLAGS
+= -DWITH_OPENLDAP
-DLDAP_DEPRECATED
60 SOLARINC
+= $(LDAPSDKINCLUDES
)
65 $(SLO
)$/ldapuserprofilebe.obj \
66 $(SLO
)$/ldapaccess.obj \
67 $(SLO
)$/componentdef.obj
69 LIB1TARGET
=$(SLB
)$/_
$(TARGET
).lib
70 LIB1OBJFILES
=$(SLOFILES
)
72 SHL1TARGET
=$(TARGET
)$(LDAP_MAJOR
).uno
73 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
74 SHL1LIBS
=$(LIB1TARGET
)
75 SHL1IMPLIB
=i
$(SHL1TARGET
)
81 .IF
"$(OS)"=="FREEBSD"
83 # workaround for FreeBSD, which needs -llber50, too
84 .IF
"$(WITH_OPENLDAP)" != "YES"
85 SHL1STDLIBS
+=-Wl
,-Bstatic
-llber50
89 DEF1NAME
=$(SHL1TARGET
)
90 DEF1EXPORTFILE
=exports.dxp
91 DEF1DES
=Configuration
: LDAP User Profile Backend
96 .INCLUDE
: $(PRJ
)$/util
$/target.pmk