1# Makefile.in for LDAP -lldap
2# $OpenLDAP$
3## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4##
5## Copyright 1998-2011 The OpenLDAP Foundation.
6## All rights reserved.
7##
8## Redistribution and use in source and binary forms, with or without
9## modification, are permitted only as authorized by the OpenLDAP
10## Public License.
11##
12## A copy of this license is available in the file LICENSE in the
13## top-level directory of the distribution or, alternatively, at
14## <http://www.OpenLDAP.org/license.html>.
15
16LIBRARY = libldap_r.la
17
18PROGRAMS = apitest ltest
19
20XXDIR = $(srcdir)/../libldap
21XXSRCS    = apitest.c test.c \
22	bind.c open.c result.c error.c compare.c search.c \
23	controls.c messages.c references.c extended.c cyrus.c \
24	modify.c add.c modrdn.c delete.c abandon.c \
25	sasl.c gssapi.c sbind.c unbind.c cancel.c \
26	filter.c free.c sort.c passwd.c whoami.c \
27	getdn.c getentry.c getattr.c getvalues.c addentry.c \
28	request.c os-ip.c url.c pagectrl.c sortctrl.c vlvctrl.c \
29	init.c options.c print.c string.c util-int.c schema.c \
30	charray.c os-local.c dnssrv.c utf-8.c utf-8-conv.c \
31	tls2.c tls_o.c tls_g.c tls_m.c \
32	turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c \
33	assertion.c apple_compat.c rb.c rb_response.c \
34    deref.c ldif.c fetch.c
35SRCS	= threads.c rdwr.c rmutex.c tpool.c rq.c \
36	thr_posix.c thr_cthreads.c thr_thr.c thr_lwp.c thr_nt.c \
37	thr_pth.c thr_stub.c thr_debug.c
38OBJS	= threads.lo rdwr.lo rmutex.lo tpool.lo  rq.lo \
39	thr_posix.lo thr_cthreads.lo thr_thr.lo thr_lwp.lo thr_nt.lo \
40	thr_pth.lo thr_stub.lo thr_debug.lo \
41	bind.lo open.lo result.lo error.lo compare.lo search.lo \
42	controls.lo messages.lo references.lo extended.lo cyrus.lo \
43	modify.lo add.lo modrdn.lo delete.lo abandon.lo \
44	sasl.lo gssapi.lo sbind.lo unbind.lo cancel.lo \
45	filter.lo free.lo sort.lo passwd.lo whoami.lo \
46	getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \
47	request.lo os-ip.lo url.lo pagectrl.lo sortctrl.lo vlvctrl.lo \
48	init.lo options.lo print.lo string.lo util-int.lo schema.lo \
49	charray.lo os-local.lo dnssrv.lo utf-8.lo utf-8-conv.lo \
50	tls2.lo tls_o.lo tls_g.lo tls_m.lo \
51	turn.lo ppolicy.lo dds.lo txn.lo ldap_sync.lo stctrl.lo \
52	assertion.lo apple_compat.lo rb.lo rb_response.lo \
53    deref.lo ldif.lo fetch.lo
54
55LDAP_INCDIR= ../../include       
56LDAP_LIBDIR= ../../libraries
57
58LIB_DEFS = -DLDAP_LIBRARY
59
60XDEFS = -DLDAP_R_COMPILE -I$(XXDIR)
61XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A)
62XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
63XXXLIBS = $(LTHREAD_LIBS)
64NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
65UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) $(LTHREAD_LIBS)
66
67.links : Makefile
68	@for i in $(XXSRCS); do \
69		$(RM) $$i ; \
70		$(LN_S) $(XXDIR)/$$i . ; \
71	done
72	touch .links
73
74$(XXSRCS) : .links
75
76clean-local: FORCE
77	@$(RM) .links
78
79depend-common: .links
80
81apitest:	$(XLIBS) apitest.o
82	$(LTLINK) -o $@ apitest.o $(LIBS)
83ltest:	$(XLIBS) test.o
84	$(LTLINK) -o $@ test.o $(LIBS)
85
86install-local: $(CFFILES) FORCE
87