mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
8333a03346
updated clients to use ldap_get/set_options ld_options is renamed ld_booleans. ldap-int.h has accessor macros. updated libldap to use new accessor macros.
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
##
|
|
## Makefile for gopher clients
|
|
##
|
|
PROGRAMS= go500gw go500
|
|
|
|
SRCS= detach.c go500.c go500gw.c
|
|
XSRCS= gwversion.o goversion.o
|
|
GOOBJS = go500.o detach.o
|
|
GWOBJS = go500gw.o detach.o
|
|
|
|
LDAP_INCDIR= ../../include
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
XLIBS = -llutil @LUTIL_LIBS@
|
|
|
|
go500 : goversion.o
|
|
$(CC) $(LDFLAGS) -o $@ $(GOOBJS) goversion.o $(LIBS)
|
|
|
|
go500gw : gwversion.o
|
|
$(CC) $(LDFLAGS) -o $@ $(GWOBJS) gwversion.o $(LIBS)
|
|
|
|
goversion.c: ${GOOBJS} $(LDAP_LIBDEPEND)
|
|
$(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 > $@)
|
|
|
|
gwversion.c: ${GWOBJS} $(LDAP_LIBDEPEND)
|
|
$(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)/Versiongw.c > $@)
|
|
|
|
install: $(PROGRAMS) go500gw.help FORCE
|
|
-$(MKDIR) -p $(libexecdir) $(sysconfdir)
|
|
$(INSTALL) $(INSTALLFLAGS) -m 755 go500 $(libexecdir)
|
|
$(INSTALL) $(INSTALLFLAGS) -m 755 go500gw $(libexecdir)
|
|
-$(MV) $(sysconfdir)/go500gw.help $(sysconfdir)/go500gw.help-
|
|
$(INSTALL) $(INSTALLFLAGS) -m 644 go500gw.help $(sysconfdir)
|