1 SRCS= main.c find.c mod.c print.c auth.c util.c help.c \
2 string_to_key.c group.c edit.c globals.c
4 OBJS= main.o find.o mod.o print.o auth.o util.o help.o \
5 string_to_key.o group.o globals.o edit.o
9 LDAP_INCDIR= ../../include
10 LDAP_LIBDIR= ../../libraries
12 XLIBS = $(TERMCAP_LIBS)
15 $(CC) $(LDFLAGS) -o $@ version.o $(OBJS) $(LIBS)
17 version.c: ${OBJS} $(LDAP_LIBDEPEND)
19 (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
20 t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
21 -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
22 -e "s|%VERSION%|$${v}|" \
23 < $(srcdir)/Version.c > $@)
25 install: $(PROGRAMS) FORCE
26 -$(MKDIR) -p $(bindir)
27 -mv -f $(bindir)/ud $(bindir)/ud-
28 $(INSTALL) $(INSTALLFLAGS) -m 775 ud $(bindir)