1998-10-25 09:41:42 +08:00
|
|
|
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
|
|
|
|
OBJS= main.o find.o mod.o print.o auth.o util.o help.o \
|
|
|
|
string_to_key.o group.o globals.o edit.o
|
|
|
|
HDRS= ud.h
|
|
|
|
PROGRAMS= ud
|
|
|
|
|
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
1999-01-14 09:31:43 +08:00
|
|
|
XLIBS = -lldif -lldap -llber -llutil
|
1999-08-05 10:25:19 +08:00
|
|
|
XXLIBS = $(TERMCAP_LIBS) $(SECURITY_LIBS) $(LUTIL_LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
ud : version.o
|
1998-11-22 12:22:28 +08:00
|
|
|
$(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
version.c: ${OBJS} $(LDAP_LIBDEPEND)
|
1999-04-28 13:40:17 +08:00
|
|
|
@-$(RM) $@
|
1999-04-29 03:59:00 +08:00
|
|
|
$(MKVERSION) -s -c -n Version UserDirectory > $@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
install-local: FORCE
|
1998-11-30 03:48:28 +08:00
|
|
|
-$(MKDIR) $(bindir)
|
1998-10-25 09:41:42 +08:00
|
|
|
-mv -f $(bindir)/ud $(bindir)/ud-
|
1999-08-17 01:22:55 +08:00
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 ud $(bindir)
|