376abf19f6
2006/04/03 16:43:42 rene 1.10.60.1: #i63782# improve ldap configure patch, patch by geki
110 lines
2.8 KiB
Makefile
110 lines
2.8 KiB
Makefile
#*************************************************************************
|
|
#
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
|
#
|
|
# $RCSfile: makefile.mk,v $
|
|
#
|
|
# $Revision: 1.11 $
|
|
#
|
|
# last change: $Author: hr $ $Date: 2006-04-20 13:35:41 $
|
|
#
|
|
# The Contents of this file are made available subject to
|
|
# the terms of GNU Lesser General Public License Version 2.1.
|
|
#
|
|
#
|
|
# GNU Lesser General Public License Version 2.1
|
|
# =============================================
|
|
# Copyright 2005 by Sun Microsystems, Inc.
|
|
# 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
#
|
|
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License version 2.1, as published by the Free Software Foundation.
|
|
#
|
|
# This library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with this library; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
# MA 02111-1307 USA
|
|
#
|
|
#*************************************************************************
|
|
|
|
PRJ=..$/..$/..
|
|
|
|
PRJINC=$(PRJ)$/source
|
|
PRJNAME=extensions
|
|
TARGET=ldapbe
|
|
ENABLE_EXCEPTIONS=TRUE
|
|
|
|
# Version
|
|
LDAP_MAJOR=2
|
|
|
|
# --- Settings ---
|
|
|
|
.INCLUDE : settings.mk
|
|
DLLPRE =
|
|
|
|
.IF "$(WITH_LDAP)" != "YES"
|
|
@all:
|
|
@echo "LDAP disabled."
|
|
.ENDIF
|
|
|
|
.IF "$(LDAPSDKINCLUDES)" == ""
|
|
|
|
.IF "$(SYSTEM_MOZILLA)" == "YES" && "$(WITH_OPENLDAP)" != "YES"
|
|
LDAPSDKINCLUDES = $(MOZ_LDAP_CFLAGS)
|
|
.ELSE
|
|
LDAPSDKINCLUDES = -I$(SOLARINCDIR)$/mozilla
|
|
.ENDIF
|
|
.ENDIF
|
|
|
|
.IF "$(WITH_OPENLDAP)" == "YES"
|
|
CFLAGS += -DWITH_OPENLDAP -DLDAP_DEPRECATED
|
|
.ENDIF
|
|
|
|
SOLARINC+= $(LDAPSDKINCLUDES)
|
|
# --- Files ---
|
|
|
|
|
|
SLOFILES=\
|
|
$(SLO)$/ldapuserprofilebe.obj \
|
|
$(SLO)$/ldapuserprof.obj \
|
|
$(SLO)$/ldapaccess.obj \
|
|
$(SLO)$/ldapuserprofilelayer.obj \
|
|
$(SLO)$/propertysethelper.obj \
|
|
$(SLO)$/componentdef.obj
|
|
|
|
LIB1TARGET=$(SLB)$/_$(TARGET).lib
|
|
LIB1OBJFILES=$(SLOFILES)
|
|
|
|
SHL1TARGET=$(TARGET)$(LDAP_MAJOR).uno
|
|
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
|
SHL1LIBS=$(LIB1TARGET)
|
|
SHL1IMPLIB=i$(SHL1TARGET)
|
|
SHL1STDLIBS= \
|
|
$(LDAPSDKLIB) \
|
|
$(CPPUHELPERLIB) \
|
|
$(CPPULIB) \
|
|
$(SALHELPERLIB) \
|
|
$(SALLIB)
|
|
.IF "$(OS)"=="FREEBSD"
|
|
SHL1STDLIBS+=-lcompat
|
|
# workaround for FreeBSD, which needs -llber50, too
|
|
.IF "$(WITH_OPENLDAP)" != "YES"
|
|
SHL1STDLIBS+=-Wl,-Bstatic -llber50
|
|
.ENDIF
|
|
.ENDIF
|
|
|
|
DEF1NAME=$(SHL1TARGET)
|
|
DEF1EXPORTFILE=exports.dxp
|
|
DEF1DES=Configuration: LDAP User Profile Backend
|
|
|
|
# --- Targets ---
|
|
|
|
.INCLUDE : target.mk
|
|
.INCLUDE : $(PRJ)$/util$/target.pmk
|
|
|