1# $OpenLDAP$
2# This work is part of OpenLDAP Software <http://www.openldap.org/>.
3#
4# Copyright 2005-2011 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#
15LIBTOOL=../../../libtool
16ROOT=../../../../..
17rundir=$(LIB)
18instdir=$(LIB)/openldap
19CFLAGS=-g -O2
20CC=$(C_CC)
21INSTALL=../../../build/shtool install -c
22LTVER=1:0:0
23
24INCS=-I../../../include -I../../../servers/slapd -I ../../../../../opt/symas/include
25
26LIBS=../../../libraries/libldap_r/libldap_r.la ../../../libraries/liblber/liblber.la
27
28all:	proxyOld.la
29
30proxyOld.lo:	proxyOld.c
31	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(DEFS) $(INCS) -c $?
32
33proxyOld.la:	proxyOld.lo
34	$(LIBTOOL) --mode=link $(CC) $(OPT) $(LDFLAGS) -version-info $(LTVER) \
35	-rpath $(rundir) -module -o $@ $? $(LIBS) $(LIBEXTRAS)
36
37install:
38	-mkdir $(DESTDIR)$(instdir)
39	$(LIBTOOL) --mode=install $(INSTALL) -m 644 proxyOld.la $(DESTDIR)$(instdir)
40
41clean:
42	rm -rf *.o *.lo *.la .libs .libt
43
44veryclean: clean
45