2003-11-26 10:58:56 +08:00
|
|
|
# Makefile.in for slurpd
|
1999-09-09 06:52:19 +08:00
|
|
|
# $OpenLDAP$
|
2003-11-27 02:19:00 +08:00
|
|
|
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
##
|
2004-01-02 03:15:16 +08:00
|
|
|
## Copyright 1998-2004 The OpenLDAP Foundation.
|
2003-11-26 10:58:56 +08:00
|
|
|
## All rights reserved.
|
1998-10-25 09:41:42 +08:00
|
|
|
##
|
2003-11-26 10:58:56 +08:00
|
|
|
## Redistribution and use in source and binary forms, with or without
|
|
|
|
## modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
## Public License.
|
1998-10-25 09:41:42 +08:00
|
|
|
##
|
2003-11-26 10:58:56 +08:00
|
|
|
## 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>.
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2002-05-16 19:00:37 +08:00
|
|
|
PROGRAMS = slurpd
|
1998-11-22 12:22:28 +08:00
|
|
|
XPROGRAMS = sslurpd
|
|
|
|
|
1998-11-22 14:24:59 +08:00
|
|
|
XSRCS = version.c
|
|
|
|
|
2003-03-03 19:47:16 +08:00
|
|
|
NT_SRCS = nt_svc.c
|
|
|
|
NT_OBJS = nt_svc.o ../../libraries/liblutil/slapdmsg.res
|
|
|
|
|
1998-11-05 09:56:41 +08:00
|
|
|
SRCS = admin.c args.c ch_malloc.c config.c \
|
1998-10-25 09:41:42 +08:00
|
|
|
fm.c globals.c ldap_op.c lock.c main.c re.c \
|
2003-03-03 19:47:16 +08:00
|
|
|
reject.c replica.c replog.c ri.c rq.c sanity.c st.c \
|
|
|
|
$(@PLAT@_SRCS)
|
1998-11-05 09:56:41 +08:00
|
|
|
OBJS = admin.o args.o ch_malloc.o config.o \
|
1998-10-25 09:41:42 +08:00
|
|
|
fm.o globals.o ldap_op.o lock.o main.o re.o \
|
2003-03-03 19:47:16 +08:00
|
|
|
reject.o replica.o replog.o ri.o rq.o sanity.o st.o \
|
|
|
|
$(@PLAT@_OBJS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
|
|
|
BUILD_OPT = "--enable-slurpd"
|
|
|
|
BUILD_SRV = @BUILD_SLURPD@
|
|
|
|
|
1999-10-28 15:31:59 +08:00
|
|
|
all-local-srv: $(PROGRAMS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1999-01-10 10:25:41 +08:00
|
|
|
# $(LTHREAD_LIBS) must be last!
|
2002-02-11 06:42:51 +08:00
|
|
|
XLIBS = $(SLURPD_L)
|
2003-11-26 07:22:12 +08:00
|
|
|
XXLIBS = $(SLURPD_LIBS) $(SECURITY_LIBS) $(LUTIL_LIBS)
|
1999-01-14 09:31:43 +08:00
|
|
|
XXXLIBS = $(LTHREAD_LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
slurpd: version.o
|
1998-11-22 12:22:28 +08:00
|
|
|
$(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
|
|
|
|
|
|
|
|
sslurpd: version.o
|
|
|
|
$(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-03-29 02:42:12 +08:00
|
|
|
version.c: Makefile
|
1999-04-28 13:40:17 +08:00
|
|
|
@-$(RM) $@
|
2003-12-03 00:57:34 +08:00
|
|
|
$(MKVERSION) -s -n Versionstr slurpd > $@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-03-29 02:42:12 +08:00
|
|
|
version.o: version.c $(OBJS) $(SLURPD_L)
|
|
|
|
|
1998-12-20 08:55:39 +08:00
|
|
|
install-local-srv: FORCE
|
1999-09-23 05:51:30 +08:00
|
|
|
-$(MKDIR) $(DESTDIR)$(libexecdir)
|
2000-10-17 00:43:42 +08:00
|
|
|
@-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-slurp
|
1999-10-28 15:31:59 +08:00
|
|
|
@( \
|
|
|
|
for prg in $(PROGRAMS); do \
|
2000-05-31 02:23:56 +08:00
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT) \
|
1999-10-28 15:31:59 +08:00
|
|
|
$(DESTDIR)$(libexecdir); \
|
|
|
|
done \
|
|
|
|
)
|
|
|
|
|