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/>.
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>.
28 rwm.c rwmconf.c rwmdn.c rwmmap.c \
35 @SLAPD_STATIC_OVERLAYS@ \
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
)
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
)
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
)
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
)
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
);\
129 statover.o
: statover.c
$(srcdir)/..
/slap.h
131 $(LIBRARY
): $(OBJS
) version.lo
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