mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
334768c1bb
make depend, make tests, and make install all work when build directory is not the $srcdir. Also modified library handling such that -lpthread more likely to be last. WARNING: new orderring requires use of LDFLAGS to set global loader options such as -L/usr/local/lib. If you put this in LIBS, some libraries may not be found a link time. Likely broke Kerberos/LDAPD support. Don't have those in my testbed.
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
##
|
|
## Makefile.in for slurpd
|
|
##
|
|
|
|
PROGRAMS = slurpd
|
|
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 \
|
|
tsleep.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 \
|
|
tsleep.o
|
|
|
|
LDAP_INCDIR= ../../include
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
BUILD_OPT = "--enable-slurpd"
|
|
BUILD_SRV = @BUILD_SLURPD@
|
|
|
|
all-local-srv: slurpd
|
|
|
|
# $(LTHREAD_LIBS) must be last!
|
|
XLIBS = $(SLURPD_LIBS) $(LDAP_LIBS)
|
|
XXLIBS = $(KRB_LIBS) $(LDAP_LIBLTHREAD)
|
|
|
|
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) $@
|
|
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
|
|
t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
-e "s|%VERSION%|$${v}|" \
|
|
< $(srcdir)/Version.c > $@)
|
|
|
|
install-local-srv: FORCE
|
|
@-$(MKDIR) $(libexecdir)
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 slurpd $(libexecdir)
|