CFLAGS=@CFLAGS@
DEFS=@DEFS@
ALL_CFLAGS=$(CPPFLAGS) $(AFS_CPPFLAGS) $(CFLAGS) $(DEFS)
+LIBTOOL=@LIBTOOL@
LDFLAGS=@LDFLAGS@
AFS_LIBS=@AFS_LIBS@
AFS_DIR=@AFS_DIR@
srcdir=@srcdir@
VPATH=@srcdir@
SRCTOP=@top_srcdir@
+top_builddir=@top_builddir@
BUILDTOP=../..
mrbindir=@mrbindir@
-AFS_OBJS=afs.o
+AFS_OBJS=afs.lo
TARGET=afs.incr
-.SUFFIXES: .pc
+.SUFFIXES: .pc .lo
.pc.c:
$(PRO_C) $(PRO_C_FLAGS) INAME=$<
-.c.o:
- $(CC) -c $(ALL_CFLAGS) $<
+.c.lo:
+ $(LIBTOOL) --mode=compile $(CC) -c $(ALL_CFLAGS) $<
all: $(TARGET)
clean:
- rm -f $(AFS_OBJS) $(TARGET)
+ $(LIBTOOL) --mode=clean rm -f $(AFS_OBJS) $(TARGET)
cleandir distclean: clean
rm -f Makefile
depend:
install:
- $(INSTALL_PROGRAM) afs.incr $(mrbindir)
- @set -x; for p in afs_create.pl afs_nightly.pl afs_quota.pl afs_rename.pl afs_utils.pl; do $(INSTALL_PROGRAM) $$p $(mrbindir); done
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) afs.incr $(DESTDIR)$(mrbindir)
+ @set -x; for p in afs_create.pl afs_nightly.pl afs_quota.pl afs_rename.pl afs_utils.pl; do $(INSTALL_PROGRAM) $$p $(DESTDIR)$(mrbindir); done
afs.incr: $(AFS_OBJS) $(MR_LIBDEP)
- $(CC) -o $@ $(LDFLAGS) $(AFS_OBJS) $(AFS_LIBS) -lprot -lauth \
+ $(LIBTOOL) --mode=link $(CC) -o $@ $(LDFLAGS) $(AFS_OBJS) $(AFS_LIBS) -lprot -lauth \
-lrxkad -ldes -lrx -llwp -lubik -lsys -laudit \
$(AFS_DIR)/lib/afs/util.a $(LIBS)