1999-09-02 08:52:43 +08:00
|
|
|
# $OpenLDAP$
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
SRCS= main.c find.c mod.c print.c auth.c util.c help.c \
|
2001-06-14 13:28:46 +08:00
|
|
|
group.c edit.c globals.c
|
1998-10-25 09:41:42 +08:00
|
|
|
XSRCS= version.c
|
|
|
|
OBJS= main.o find.o mod.o print.o auth.o util.o help.o \
|
2001-06-14 13:28:46 +08:00
|
|
|
group.o globals.o edit.o
|
1998-10-25 09:41:42 +08:00
|
|
|
HDRS= ud.h
|
2001-12-07 12:03:25 +08:00
|
|
|
|
|
|
|
UNIX_PRGS = ud
|
|
|
|
PROGRAMS = $(@PLAT@_PRGS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
2002-02-11 06:42:51 +08:00
|
|
|
XLIBS = $(LDAP_L)
|
2001-12-07 12:03:25 +08:00
|
|
|
XXLIBS = $(TERMCAP_LIBS) $(SECURITY_LIBS) $(LDIF_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
|
|
|
|
2002-02-11 06:42:51 +08:00
|
|
|
version.c: ${OBJS} $(XLIBS)
|
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
|
1999-09-23 05:51:30 +08:00
|
|
|
-$(MKDIR) $(DESTDIR)$(bindir)
|
|
|
|
-mv -f $(DESTDIR)$(bindir)/ud $(DESTDIR)$(bindir)/ud-
|
1999-10-28 15:31:59 +08:00
|
|
|
@( \
|
|
|
|
for prg in $(PROGRAMS); do \
|
2000-05-31 02:23:56 +08:00
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT) \
|
1999-10-28 15:31:59 +08:00
|
|
|
$(DESTDIR)$(bindir); \
|
|
|
|
done \
|
|
|
|
)
|
|
|
|
|