]> git.sur5r.net Git - openldap/blobdiff - clients/ud/Makefile.in
Add OpenLDAP RCS id
[openldap] / clients / ud / Makefile.in
index 1c72cf0e2228e17eeb1988a5bc75b3a3bbc988e1..54c16e29e13ed6144c913d3288bd85c401fdd425 100644 (file)
@@ -1,3 +1,5 @@
+# $OpenLDAP$
+
 SRCS=  main.c find.c mod.c print.c auth.c util.c help.c \
        string_to_key.c group.c edit.c globals.c
 XSRCS= version.c
@@ -9,20 +11,17 @@ PROGRAMS= ud
 LDAP_INCDIR= ../../include       
 LDAP_LIBDIR= ../../libraries
 
-XLIBS = $(TERMCAP_LIBS)
+XLIBS =  -lldif -lldap -llber -llutil
+XXLIBS = $(TERMCAP_LIBS) $(SECURITY_LIBS) $(LUTIL_LIBS)
 
 ud : version.o
-       $(CC) $(LDFLAGS) -o $@ version.o $(OBJS) $(LIBS)
+       $(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
 
 version.c: ${OBJS} $(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 > $@)
+       @-$(RM) $@
+       $(MKVERSION) -s -c -n Version UserDirectory > $@
 
-install: $(PROGRAMS) FORCE
-       -$(MKDIR) -p $(bindir)
+install-local: FORCE
+       -$(MKDIR) $(bindir)
        -mv -f $(bindir)/ud $(bindir)/ud-
-       $(INSTALL) $(INSTALLFLAGS) -m 775 ud $(bindir)
+       $(LTINSTALL) $(INSTALLFLAGS) -m 755 ud $(bindir)