openldap/contrib/slapd-modules/proxyOld/Makefile
Kurt Zeilenga a5abeb92ec Update contrib notices to reflect that they are distributed as part of
OpenLDAP Software (though they may not necessarily be supported by the
OpenLDAP Project).  Assistance in updating ACKNOWLEDGEMENTS welcomed.
2009-08-16 22:55:23 +00:00

45 lines
1.3 KiB
Makefile

# $OpenLDAP$
# This work is part of OpenLDAP Software <http://www.openldap.org/>.
#
# Copyright 2005-2009 The OpenLDAP Foundation.
# Portions Copyright 2005 Howard Chu, Symas Corp. All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted only as authorized by the OpenLDAP
# Public License.
#
# A copy of this license is available in the file LICENSE in the
# top-level directory of the distribution or, alternatively, at
# <http://www.OpenLDAP.org/license.html>.
#
LIBTOOL=../../../libtool
ROOT=../../../../..
rundir=$(LIB)
instdir=$(LIB)/openldap
CFLAGS=-g -O2
CC=$(C_CC)
INSTALL=../../../build/shtool install -c
LTVER=1:0:0
INCS=-I../../../include -I../../../servers/slapd -I ../../../../../opt/symas/include
LIBS=../../../libraries/libldap_r/libldap_r.la ../../../libraries/liblber/liblber.la
all: proxyOld.la
proxyOld.lo: proxyOld.c
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(DEFS) $(INCS) -c $?
proxyOld.la: proxyOld.lo
$(LIBTOOL) --mode=link $(CC) $(OPT) $(LDFLAGS) -version-info $(LTVER) \
-rpath $(rundir) -module -o $@ $? $(LIBS) $(LIBEXTRAS)
install:
-mkdir $(DESTDIR)$(instdir)
$(LIBTOOL) --mode=install $(INSTALL) -m 644 proxyOld.la $(DESTDIR)$(instdir)
clean:
rm -rf *.o *.lo *.la .libs .libt
veryclean: clean