mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
34edec3107
better library clean
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
# $OpenLDAP$
|
|
## Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
|
|
## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
##
|
|
## Makefile.in for slurpd
|
|
##
|
|
|
|
UNIX_PRGS = slurpd
|
|
|
|
PROGRAMS = $(@PLAT@_PRGS)
|
|
XPROGRAMS = sslurpd
|
|
|
|
XSRCS = version.c
|
|
|
|
SRCS = admin.c args.c ch_malloc.c config.c \
|
|
fm.c globals.c ldap_op.c lock.c main.c re.c \
|
|
reject.c replica.c replog.c ri.c rq.c sanity.c st.c
|
|
OBJS = admin.o args.o ch_malloc.o config.o \
|
|
fm.o globals.o ldap_op.o lock.o main.o re.o \
|
|
reject.o replica.o replog.o ri.o rq.o sanity.o st.o
|
|
|
|
LDAP_INCDIR= ../../include
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
BUILD_OPT = "--enable-slurpd"
|
|
BUILD_SRV = @BUILD_SLURPD@
|
|
|
|
all-local-srv: $(PROGRAMS)
|
|
|
|
# $(LTHREAD_LIBS) must be last!
|
|
XLIBS = -lldif -lldap_r -llber -llutil
|
|
XXLIBS = $(SLURPD_LIBS) $(SECURITY_LIBS) \
|
|
$(LDIF_LIBS) $(LUTIL_LIBS)
|
|
XXXLIBS = $(LTHREAD_LIBS)
|
|
|
|
slurpd: version.o
|
|
$(LTLINK) -o $@ $(OBJS) version.o $(LIBS)
|
|
|
|
sslurpd: version.o
|
|
$(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS)
|
|
|
|
version.c: $(OBJS) $(LDAP_LIBDEPEND) $(LDAP_LIBTHREAD_DEPEND)
|
|
@-$(RM) $@
|
|
$(MKVERSION) slurpd > $@
|
|
|
|
install-local-srv: FORCE
|
|
-$(MKDIR) $(DESTDIR)$(libexecdir)
|
|
@( \
|
|
for prg in $(PROGRAMS); do \
|
|
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT) \
|
|
$(DESTDIR)$(libexecdir); \
|
|
done \
|
|
)
|
|
|