1 # Makefile.in for overlays
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 2003-2008 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
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>.
29 rwm.c rwmconf.c rwmdn.c rwmmap.c \
36 @SLAPD_STATIC_OVERLAYS@ \
39 # Add here the objs that are needed by overlays, but do not make it
40 # into SLAPD_STATIC_OVERLAYS...
41 OBJDEP=rwm.o rwmconf.o rwmdn.o rwmmap.o
43 LTONLY_MOD = $(LTONLY_mod)
44 LDAP_INCDIR= ../../../include
45 LDAP_LIBDIR= ../../../libraries
47 MOD_DEFS = -DSLAPD_IMPORT
49 shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
50 NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
51 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
53 LIBRARY = ../liboverlays.a
54 PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@
56 XINCPATH = -I.. -I$(srcdir)/..
57 XDEFS = $(MODULES_CPPFLAGS)
63 accesslog.la : accesslog.lo
64 $(LTLINK_MOD) -module -o $@ accesslog.lo version.lo $(LINK_LIBS)
66 auditlog.la : auditlog.lo
67 $(LTLINK_MOD) -module -o $@ auditlog.lo version.lo $(LINK_LIBS)
69 constraint.la : constraint.lo
70 $(LTLINK_MOD) -module -o $@ constraint.lo version.lo $(LINK_LIBS)
73 $(LTLINK_MOD) -module -o $@ dds.lo version.lo $(LINK_LIBS)
75 dyngroup.la : dyngroup.lo
76 $(LTLINK_MOD) -module -o $@ dyngroup.lo version.lo $(LINK_LIBS)
78 dynlist.la : dynlist.lo
79 $(LTLINK_MOD) -module -o $@ dynlist.lo version.lo $(LINK_LIBS)
81 memberof.la : memberof.lo
82 $(LTLINK_MOD) -module -o $@ memberof.lo version.lo $(LINK_LIBS)
85 $(LTLINK_MOD) -module -o $@ pcache.lo version.lo $(LINK_LIBS)
87 collect.la : collect.lo
88 $(LTLINK_MOD) -module -o $@ collect.lo version.lo $(LINK_LIBS)
90 ppolicy.la : ppolicy.lo
91 $(LTLINK_MOD) -module -o $@ ppolicy.lo version.lo $(LINK_LIBS) $(MODULES_LIBS)
94 $(LTLINK_MOD) -module -o $@ refint.lo version.lo $(LINK_LIBS)
96 retcode.la : retcode.lo
97 $(LTLINK_MOD) -module -o $@ retcode.lo version.lo $(LINK_LIBS)
99 rwm_x.o: rwm.o rwmconf.o rwmdn.o rwmmap.o
100 $(LD) -r -o $@ rwm.o rwmconf.o rwmdn.o rwmmap.o
102 rwm.la : rwm.lo rwmconf.lo rwmdn.lo rwmmap.lo
103 $(LTLINK_MOD) -module -o $@ rwm.lo rwmconf.lo rwmdn.lo rwmmap.lo version.lo $(LINK_LIBS)
105 seqmod.la : seqmod.lo
106 $(LTLINK_MOD) -module -o $@ seqmod.lo version.lo $(LINK_LIBS)
108 syncprov.la : syncprov.lo
109 $(LTLINK_MOD) -module -o $@ syncprov.lo version.lo $(LINK_LIBS)
111 translucent.la : translucent.lo
112 $(LTLINK_MOD) -module -o $@ translucent.lo version.lo $(LINK_LIBS)
114 unique.la : unique.lo
115 $(LTLINK_MOD) -module -o $@ unique.lo version.lo $(LINK_LIBS)
117 valsort.la : valsort.lo
118 $(LTLINK_MOD) -module -o $@ valsort.lo version.lo $(LINK_LIBS)
120 install-local: $(PROGRAMS)
121 @if test -n "$?" ; then \
122 $(MKDIR) $(DESTDIR)$(moduledir); \
123 $(LTINSTALL) $(INSTALLFLAGS) -m 755 $? $(DESTDIR)$(moduledir);\
133 statover.o: statover.c $(srcdir)/../slap.h
135 $(LIBRARY): $(OBJS) version.lo
138 # Must fixup depends for non-libtool objects
139 depend-local: depend-common
140 @if test -n "$(OBJS)"; then \
141 OBJ2=`echo $(OBJS) $(OBJDEP) | $(SED) -e 's/\.o//g'`; \
142 SCR=''; for i in $$OBJ2; do SCR="$$SCR -e s/^$$i.lo:/$$i.o:/"; done; \
143 mv Makefile Makefile.bak; $(SED) $$SCR Makefile.bak > Makefile && \
144 $(RM) Makefile.bak; fi