2003-12-06 18:59:27 +08:00
|
|
|
# Makefile.in for overlays
|
|
|
|
# $OpenLDAP$
|
|
|
|
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
##
|
2014-01-25 21:21:25 +08:00
|
|
|
## Copyright 2003-2014 The OpenLDAP Foundation.
|
2003-12-06 18:59:27 +08:00
|
|
|
## All rights reserved.
|
|
|
|
##
|
|
|
|
## Redistribution and use in source and binary forms, with or without
|
|
|
|
## modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
## Public License.
|
|
|
|
##
|
|
|
|
## A copy of this license is available in the file LICENSE in the
|
|
|
|
## top-level directory of the distribution or, alternatively, at
|
|
|
|
## <http://www.OpenLDAP.org/license.html>.
|
|
|
|
|
2004-03-19 02:59:46 +08:00
|
|
|
SRCS = overlays.c \
|
2005-06-10 17:18:01 +08:00
|
|
|
accesslog.c \
|
2006-02-27 19:20:08 +08:00
|
|
|
auditlog.c \
|
2006-04-29 18:03:36 +08:00
|
|
|
constraint.c \
|
2006-01-07 01:46:52 +08:00
|
|
|
dds.c \
|
2008-10-23 06:19:49 +08:00
|
|
|
deref.c \
|
2004-03-19 02:59:46 +08:00
|
|
|
dyngroup.c \
|
2005-04-08 07:35:36 +08:00
|
|
|
dynlist.c \
|
2007-08-24 10:46:55 +08:00
|
|
|
memberof.c \
|
2004-03-19 02:59:46 +08:00
|
|
|
pcache.c \
|
2008-09-11 08:29:56 +08:00
|
|
|
collect.c \
|
2004-04-17 21:35:54 +08:00
|
|
|
ppolicy.c \
|
2004-04-17 16:17:43 +08:00
|
|
|
refint.c \
|
2005-06-20 06:42:12 +08:00
|
|
|
retcode.c \
|
2004-09-27 06:53:54 +08:00
|
|
|
rwm.c rwmconf.c rwmdn.c rwmmap.c \
|
2006-02-13 10:24:26 +08:00
|
|
|
seqmod.c \
|
2009-07-13 21:35:30 +08:00
|
|
|
sssvlv.c \
|
2004-11-26 05:16:54 +08:00
|
|
|
syncprov.c \
|
2005-03-10 11:13:24 +08:00
|
|
|
translucent.c \
|
2005-08-23 16:47:38 +08:00
|
|
|
unique.c \
|
|
|
|
valsort.c
|
2007-03-27 06:16:45 +08:00
|
|
|
OBJS = statover.o \
|
|
|
|
@SLAPD_STATIC_OVERLAYS@ \
|
|
|
|
overlays.o
|
2003-12-06 18:59:27 +08:00
|
|
|
|
2005-08-24 06:54:07 +08:00
|
|
|
# Add here the objs that are needed by overlays, but do not make it
|
|
|
|
# into SLAPD_STATIC_OVERLAYS...
|
|
|
|
OBJDEP=rwm.o rwmconf.o rwmdn.o rwmmap.o
|
|
|
|
|
2005-05-09 08:13:47 +08:00
|
|
|
LTONLY_MOD = $(LTONLY_mod)
|
2003-12-06 18:59:27 +08:00
|
|
|
LDAP_INCDIR= ../../../include
|
|
|
|
LDAP_LIBDIR= ../../../libraries
|
|
|
|
|
|
|
|
MOD_DEFS = -DSLAPD_IMPORT
|
|
|
|
|
|
|
|
shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
|
|
|
|
NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|
|
|
|
UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
|
|
|
|
|
|
|
|
LIBRARY = ../liboverlays.a
|
|
|
|
PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@
|
|
|
|
|
|
|
|
XINCPATH = -I.. -I$(srcdir)/..
|
|
|
|
XDEFS = $(MODULES_CPPFLAGS)
|
|
|
|
|
2005-05-06 06:57:19 +08:00
|
|
|
static: $(LIBRARY)
|
|
|
|
|
|
|
|
dynamic: $(PROGRAMS)
|
|
|
|
|
2005-06-10 17:18:01 +08:00
|
|
|
accesslog.la : accesslog.lo
|
|
|
|
$(LTLINK_MOD) -module -o $@ accesslog.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2006-02-27 19:20:08 +08:00
|
|
|
auditlog.la : auditlog.lo
|
|
|
|
$(LTLINK_MOD) -module -o $@ auditlog.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2006-04-29 18:03:36 +08:00
|
|
|
constraint.la : constraint.lo
|
|
|
|
$(LTLINK_MOD) -module -o $@ constraint.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2006-01-07 01:46:52 +08:00
|
|
|
dds.la : dds.lo
|
|
|
|
$(LTLINK_MOD) -module -o $@ dds.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2008-10-23 06:19:49 +08:00
|
|
|
deref.la : deref.lo
|
|
|
|
$(LTLINK_MOD) -module -o $@ deref.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2005-05-06 08:39:25 +08:00
|
|
|
dyngroup.la : dyngroup.lo
|
2003-12-06 18:59:27 +08:00
|
|
|
$(LTLINK_MOD) -module -o $@ dyngroup.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2005-05-06 08:39:25 +08:00
|
|
|
dynlist.la : dynlist.lo
|
2005-04-08 07:35:36 +08:00
|
|
|
$(LTLINK_MOD) -module -o $@ dynlist.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2007-08-24 10:46:55 +08:00
|
|
|
memberof.la : memberof.lo
|
|
|
|
$(LTLINK_MOD) -module -o $@ memberof.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2005-05-06 08:39:25 +08:00
|
|
|
pcache.la : pcache.lo
|
2003-12-06 18:59:27 +08:00
|
|
|
$(LTLINK_MOD) -module -o $@ pcache.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2008-09-11 08:29:56 +08:00
|
|
|
collect.la : collect.lo
|
|
|
|
$(LTLINK_MOD) -module -o $@ collect.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2005-05-06 08:39:25 +08:00
|
|
|
ppolicy.la : ppolicy.lo
|
2005-04-26 20:54:24 +08:00
|
|
|
$(LTLINK_MOD) -module -o $@ ppolicy.lo version.lo $(LINK_LIBS) $(MODULES_LIBS)
|
2004-04-17 21:35:54 +08:00
|
|
|
|
2005-05-06 08:39:25 +08:00
|
|
|
refint.la : refint.lo
|
2004-04-17 16:17:43 +08:00
|
|
|
$(LTLINK_MOD) -module -o $@ refint.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2005-06-20 06:42:12 +08:00
|
|
|
retcode.la : retcode.lo
|
|
|
|
$(LTLINK_MOD) -module -o $@ retcode.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2005-05-06 08:39:25 +08:00
|
|
|
rwm_x.o: rwm.o rwmconf.o rwmdn.o rwmmap.o
|
2005-05-06 06:57:19 +08:00
|
|
|
$(LD) -r -o $@ rwm.o rwmconf.o rwmdn.o rwmmap.o
|
2006-04-02 07:29:41 +08:00
|
|
|
|
2005-05-06 08:39:25 +08:00
|
|
|
rwm.la : rwm.lo rwmconf.lo rwmdn.lo rwmmap.lo
|
2005-08-26 10:20:45 +08:00
|
|
|
$(LTLINK_MOD) -module -o $@ rwm.lo rwmconf.lo rwmdn.lo rwmmap.lo version.lo $(LINK_LIBS)
|
2003-12-10 07:50:10 +08:00
|
|
|
|
2006-02-13 10:24:26 +08:00
|
|
|
seqmod.la : seqmod.lo
|
|
|
|
$(LTLINK_MOD) -module -o $@ seqmod.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2009-07-13 21:35:30 +08:00
|
|
|
sssvlv.la : sssvlv.lo
|
|
|
|
$(LTLINK_MOD) -module -o $@ sssvlv.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2005-05-06 08:39:25 +08:00
|
|
|
syncprov.la : syncprov.lo
|
2004-11-23 21:08:45 +08:00
|
|
|
$(LTLINK_MOD) -module -o $@ syncprov.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2005-05-06 08:39:25 +08:00
|
|
|
translucent.la : translucent.lo
|
2005-03-10 11:13:24 +08:00
|
|
|
$(LTLINK_MOD) -module -o $@ translucent.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2005-05-06 08:39:25 +08:00
|
|
|
unique.la : unique.lo
|
2004-09-27 06:53:54 +08:00
|
|
|
$(LTLINK_MOD) -module -o $@ unique.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2005-08-23 16:47:38 +08:00
|
|
|
valsort.la : valsort.lo
|
|
|
|
$(LTLINK_MOD) -module -o $@ valsort.lo version.lo $(LINK_LIBS)
|
|
|
|
|
2003-12-06 18:59:27 +08:00
|
|
|
install-local: $(PROGRAMS)
|
2003-12-19 04:26:05 +08:00
|
|
|
@if test -n "$?" ; then \
|
|
|
|
$(MKDIR) $(DESTDIR)$(moduledir); \
|
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 $? $(DESTDIR)$(moduledir);\
|
|
|
|
fi
|
2003-12-06 18:59:27 +08:00
|
|
|
|
2003-12-10 16:45:53 +08:00
|
|
|
MKDEPFLAG = -l
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o .lo
|
|
|
|
|
2005-05-06 08:39:25 +08:00
|
|
|
.c.lo:
|
|
|
|
$(LTCOMPILE_MOD) $<
|
|
|
|
|
2005-11-25 20:43:43 +08:00
|
|
|
statover.o: statover.c $(srcdir)/../slap.h
|
|
|
|
|
2005-06-13 18:24:39 +08:00
|
|
|
$(LIBRARY): $(OBJS) version.lo
|
2005-05-08 07:14:57 +08:00
|
|
|
$(AR) rs $@ $(OBJS)
|
2003-12-10 16:52:19 +08:00
|
|
|
|
2005-06-13 18:24:39 +08:00
|
|
|
# Must fixup depends for non-libtool objects
|
2007-10-20 12:29:11 +08:00
|
|
|
depend-local: depend-common
|
2005-06-13 18:24:39 +08:00
|
|
|
@if test -n "$(OBJS)"; then \
|
2005-08-24 06:54:07 +08:00
|
|
|
OBJ2=`echo $(OBJS) $(OBJDEP) | $(SED) -e 's/\.o//g'`; \
|
2005-06-13 18:24:39 +08:00
|
|
|
SCR=''; for i in $$OBJ2; do SCR="$$SCR -e s/^$$i.lo:/$$i.o:/"; done; \
|
|
|
|
mv Makefile Makefile.bak; $(SED) $$SCR Makefile.bak > Makefile && \
|
|
|
|
$(RM) Makefile.bak; fi
|
|
|
|
|
2005-11-25 20:43:43 +08:00
|
|
|
veryclean-local:
|
|
|
|
$(RM) statover.c
|
|
|
|
|