diff options
Diffstat (limited to 'openldap/makefile.mk')
-rw-r--r-- | openldap/makefile.mk | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/openldap/makefile.mk b/openldap/makefile.mk new file mode 100644 index 000000000000..da58c5516814 --- /dev/null +++ b/openldap/makefile.mk @@ -0,0 +1,69 @@ +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +PRJ=. + +PRJNAME=openldap +TARGET=so_openldap + +# --- Settings ----------------------------------------------------- + +.INCLUDE : settings.mk + +.IF "$(SYSTEM_OPENLDAP)" == "YES" +all: + @echo "An already available installation of openldap should exist on your system." + @echo "Therefore the version provided here does not need to be built in addition." +.ENDIF + +.IF "$(OS)"=="WNT" +all: + @echo "Openldap is not needed on Windows." +.ENDIF + +# --- Files -------------------------------------------------------- + +TARFILE_NAME=openldap-2.4.31 +TARFILE_MD5=804c6cb5698db30b75ad0ff1c25baefd + +PATCH_FILES=\ + $(TARFILE_NAME).patch + +CONFIGURE_DIR= +CONFIGURE_ACTION=.$/configure +CONFIGURE_FLAGS=--disable-slapd --with-pic --with-tls=moznss --disable-shared --enable-static +.IF "$(SYSTEM_NSS)" == "YES" +CONFIGURE_FLAGS+=CPPFLAGS="$(NSS_CFLAGS)" CFLAGS="$(NSS_CFLAGS)" LDFLAGS="$(NSS_LIBS)" +.ELSE +CONFIGURE_FLAGS+=CPPFLAGS="-I $(SOLARVER)$/$(INPATH)$/inc$/mozilla$/nss -I $(SOLARVER)$/$(INPATH)$/inc$/mozilla$/nspr" +CONFIGURE_FLAGS+=CFLAGS="-I $(SOLARVER)$/$(INPATH)$/inc$/mozilla$/nss -I $(SOLARVER)$/$(INPATH)$/inc$/mozilla$/nspr" +CONFIGURE_FLASG+=LDFLAGS="-L $(SOLARVER)$/$(INPATH)$/lib" +.ENDIF +BUILD_FLAGS+= -j$(EXTMAXPROCESS) +BUILD_DIR=$(CONFIGURE_DIR) +BUILD_ACTION=$(GNUMAKE) + +OUT2INC+=include$/slapi-plugin.h +OUT2INC+=include$/ldap_utf8.h +OUT2INC+=include$/ldap.h +OUT2INC+=include$/ldap_cdefs.h +OUT2INC+=include$/ldap_features.h +OUT2INC+=include$/ldap_schema.h +OUT2INC+=include$/ldif.h +OUT2INC+=include$/lber_types.h +OUT2INC+=include$/lber.h + +OUT2LIB+=libraries$/libldap$/.libs$/libldap.a +OUT2LIB+=libraries$/liblber$/.libs$/liblber.a + +# --- Targets ------------------------------------------------------ + +.INCLUDE : set_ext.mk +.INCLUDE : target.mk +.INCLUDE : tg_ext.mk + |