openldap/clients/ud/Makefile.in

36 lines
824 B
Makefile
Raw Normal View History

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 \
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 \
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
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
$(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
1998-10-25 09:41:42 +08:00
version.c: ${OBJS} $(XLIBS)
@-$(RM) $@
$(MKVERSION) -s -c -n Version UserDirectory > $@
1998-10-25 09:41:42 +08:00
install-local: FORCE
-$(MKDIR) $(DESTDIR)$(bindir)
-mv -f $(DESTDIR)$(bindir)/ud $(DESTDIR)$(bindir)/ud-
@( \
for prg in $(PROGRAMS); do \
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT) \
$(DESTDIR)$(bindir); \
done \
)