]> git.sur5r.net Git - openldap/blob - contrib/slapd-modules/proxyOld/Makefile
Merge remote branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
[openldap] / contrib / slapd-modules / proxyOld / Makefile
1 # $OpenLDAP$
2 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
3 #
4 # Copyright 2005-2012 The OpenLDAP Foundation.
5 # Portions Copyright 2005 Howard Chu, Symas Corp. All Rights Reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License.
10 #
11 # A copy of this license is available in the file LICENSE in the
12 # top-level directory of the distribution or, alternatively, at
13 # <http://www.OpenLDAP.org/license.html>.
14 #
15 LIBTOOL=../../../libtool
16 ROOT=../../../../..
17 rundir=$(LIB)
18 instdir=$(LIB)/openldap
19 CFLAGS=-g -O2
20 CC=$(C_CC)
21 INSTALL=../../../build/shtool install -c
22 LTVER=1:0:0
23
24 INCS=-I../../../include -I../../../servers/slapd -I ../../../../../opt/symas/include
25
26 LIBS=../../../libraries/libldap_r/libldap_r.la ../../../libraries/liblber/liblber.la
27
28 all:    proxyOld.la
29
30 proxyOld.lo:    proxyOld.c
31         $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(DEFS) $(INCS) -c $?
32
33 proxyOld.la:    proxyOld.lo
34         $(LIBTOOL) --mode=link $(CC) $(OPT) $(LDFLAGS) -version-info $(LTVER) \
35         -rpath $(rundir) -module -o $@ $? $(LIBS) $(LIBEXTRAS)
36
37 install:
38         -mkdir $(DESTDIR)$(instdir)
39         $(LIBTOOL) --mode=install $(INSTALL) -m 644 proxyOld.la $(DESTDIR)$(instdir)
40
41 clean:
42         rm -rf *.o *.lo *.la .libs .libt
43
44 veryclean: clean