merged tag ooo/OOO330_m14
[LibreOffice.git] / extensions / source / config / ldap / makefile.mk
bloba27cb39b6225c6e7cfc55eb363df8dec9d605491
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
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 #*************************************************************************
28 PRJ=..$/..$/..
30 PRJNAME=extensions
31 TARGET=ldapbe
32 ENABLE_EXCEPTIONS=TRUE
34 # Version
35 LDAP_MAJOR=2
37 # --- Settings ---
39 .INCLUDE : settings.mk
40 DLLPRE =
42 .IF "$(WITH_LDAP)" != "YES"
43 @all:
44 @echo "LDAP disabled."
45 .ENDIF
47 .IF "$(LDAPSDKINCLUDES)" == ""
49 .IF "$(SYSTEM_MOZILLA)" == "YES" && "$(WITH_OPENLDAP)" != "YES"
50 LDAPSDKINCLUDES = $(MOZ_LDAP_CFLAGS)
51 .ELSE
52 LDAPSDKINCLUDES = -I$(SOLARINCDIR)$/mozilla
53 .ENDIF
54 .ENDIF
56 .IF "$(WITH_OPENLDAP)" == "YES"
57 CFLAGS += -DWITH_OPENLDAP -DLDAP_DEPRECATED
58 .ENDIF
60 SOLARINC+= $(LDAPSDKINCLUDES)
61 # --- Files ---
64 SLOFILES=\
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)
76 SHL1STDLIBS= \
77 $(CPPUHELPERLIB) \
78 $(CPPULIB) \
79 $(SALHELPERLIB) \
80 $(SALLIB)
81 .IF "$(OS)"=="FREEBSD"
82 SHL1STDLIBS+=-lcompat
83 # workaround for FreeBSD, which needs -llber50, too
84 .IF "$(WITH_OPENLDAP)" != "YES"
85 SHL1STDLIBS+=-Wl,-Bstatic -llber50
86 .ENDIF
87 .ENDIF
89 DEF1NAME=$(SHL1TARGET)
90 DEF1EXPORTFILE=exports.dxp
91 DEF1DES=Configuration: LDAP User Profile Backend
93 # --- Targets ---
95 .INCLUDE : target.mk
96 .INCLUDE : $(PRJ)$/util$/target.pmk