Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / openldap / dist / servers / slapd / overlays / Makefile.in
blobec1fad4a35b5c60e8c0586acf74424d6bf84d093
1 # Makefile.in for overlays
2 # $OpenLDAP: pkg/ldap/servers/slapd/overlays/Makefile.in,v 1.41.2.5 2008/02/11 23:26:48 kurt Exp $
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 2003-2008 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.
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>.
16 SRCS = overlays.c \
17 accesslog.c \
18 auditlog.c \
19 constraint.c \
20 dds.c \
21 dyngroup.c \
22 dynlist.c \
23 memberof.c \
24 pcache.c \
25 ppolicy.c \
26 refint.c \
27 retcode.c \
28 rwm.c rwmconf.c rwmdn.c rwmmap.c \
29 seqmod.c \
30 syncprov.c \
31 translucent.c \
32 unique.c \
33 valsort.c
34 OBJS = statover.o \
35 @SLAPD_STATIC_OVERLAYS@ \
36 overlays.o
38 # Add here the objs that are needed by overlays, but do not make it
39 # into SLAPD_STATIC_OVERLAYS...
40 OBJDEP=rwm.o rwmconf.o rwmdn.o rwmmap.o
42 LTONLY_MOD = $(LTONLY_mod)
43 LDAP_INCDIR= ../../../include
44 LDAP_LIBDIR= ../../../libraries
46 MOD_DEFS = -DSLAPD_IMPORT
48 shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
49 NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
50 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
52 LIBRARY = ../liboverlays.a
53 PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@
55 XINCPATH = -I.. -I$(srcdir)/..
56 XDEFS = $(MODULES_CPPFLAGS)
58 static: $(LIBRARY)
60 dynamic: $(PROGRAMS)
62 accesslog.la : accesslog.lo
63 $(LTLINK_MOD) -module -o $@ accesslog.lo version.lo $(LINK_LIBS)
65 auditlog.la : auditlog.lo
66 $(LTLINK_MOD) -module -o $@ auditlog.lo version.lo $(LINK_LIBS)
68 constraint.la : constraint.lo
69 $(LTLINK_MOD) -module -o $@ constraint.lo version.lo $(LINK_LIBS)
71 dds.la : dds.lo
72 $(LTLINK_MOD) -module -o $@ dds.lo version.lo $(LINK_LIBS)
74 dyngroup.la : dyngroup.lo
75 $(LTLINK_MOD) -module -o $@ dyngroup.lo version.lo $(LINK_LIBS)
77 dynlist.la : dynlist.lo
78 $(LTLINK_MOD) -module -o $@ dynlist.lo version.lo $(LINK_LIBS)
80 memberof.la : memberof.lo
81 $(LTLINK_MOD) -module -o $@ memberof.lo version.lo $(LINK_LIBS)
83 pcache.la : pcache.lo
84 $(LTLINK_MOD) -module -o $@ pcache.lo version.lo $(LINK_LIBS)
86 ppolicy.la : ppolicy.lo
87 $(LTLINK_MOD) -module -o $@ ppolicy.lo version.lo $(LINK_LIBS) $(MODULES_LIBS)
89 refint.la : refint.lo
90 $(LTLINK_MOD) -module -o $@ refint.lo version.lo $(LINK_LIBS)
92 retcode.la : retcode.lo
93 $(LTLINK_MOD) -module -o $@ retcode.lo version.lo $(LINK_LIBS)
95 rwm_x.o: rwm.o rwmconf.o rwmdn.o rwmmap.o
96 $(LD) -r -o $@ rwm.o rwmconf.o rwmdn.o rwmmap.o
98 rwm.la : rwm.lo rwmconf.lo rwmdn.lo rwmmap.lo
99 $(LTLINK_MOD) -module -o $@ rwm.lo rwmconf.lo rwmdn.lo rwmmap.lo version.lo $(LINK_LIBS)
101 seqmod.la : seqmod.lo
102 $(LTLINK_MOD) -module -o $@ seqmod.lo version.lo $(LINK_LIBS)
104 syncprov.la : syncprov.lo
105 $(LTLINK_MOD) -module -o $@ syncprov.lo version.lo $(LINK_LIBS)
107 translucent.la : translucent.lo
108 $(LTLINK_MOD) -module -o $@ translucent.lo version.lo $(LINK_LIBS)
110 unique.la : unique.lo
111 $(LTLINK_MOD) -module -o $@ unique.lo version.lo $(LINK_LIBS)
113 valsort.la : valsort.lo
114 $(LTLINK_MOD) -module -o $@ valsort.lo version.lo $(LINK_LIBS)
116 install-local: $(PROGRAMS)
117 @if test -n "$?" ; then \
118 $(MKDIR) $(DESTDIR)$(moduledir); \
119 $(LTINSTALL) $(INSTALLFLAGS) -m 755 $? $(DESTDIR)$(moduledir);\
122 MKDEPFLAG = -l
124 .SUFFIXES: .c .o .lo
126 .c.lo:
127 $(LTCOMPILE_MOD) $<
129 statover.o: statover.c $(srcdir)/../slap.h
131 $(LIBRARY): $(OBJS) version.lo
132 $(AR) rs $@ $(OBJS)
134 # Must fixup depends for non-libtool objects
135 depend-local: depend-common
136 @if test -n "$(OBJS)"; then \
137 OBJ2=`echo $(OBJS) $(OBJDEP) | $(SED) -e 's/\.o//g'`; \
138 SCR=''; for i in $$OBJ2; do SCR="$$SCR -e s/^$$i.lo:/$$i.o:/"; done; \
139 mv Makefile Makefile.bak; $(SED) $$SCR Makefile.bak > Makefile && \
140 $(RM) Makefile.bak; fi
142 veryclean-local:
143 $(RM) statover.c