# Copyright 2000, International Business Machines Corporation and others. # All Rights Reserved. # # This software has been released under the terms of the IBM Public # License. For details, see the LICENSE file in the top-level source # directory or online at http://www.openafs.org/dl/license10.html srcdir=@srcdir@ include @TOP_OBJDIR@/src/config/Makefile.config include @TOP_OBJDIR@/src/config/Makefile.lwp all: ${TOP_LIBDIR}/libusd.a ${TOP_INCDIR}/afs/usd.h ${TOP_LIBDIR}/libusd.a: libusd.a ${INSTALL_DATA} $? $@ ${TOP_INCDIR}/afs/usd.h: usd.h ${INSTALL_DATA} $? $@ # # Build targets # libusd.a: usd_file.o AFS_component_version_number.o $(RM) -f $@ $(AR) crv $@ usd_file.o AFS_component_version_number.o $(RANLIB) $@ usd_file.o: usd_file.c usd.h # # Installation targets # install: libusd.a usd.h ${INSTALL} -d ${DESTDIR}${libdir}/afs ${INSTALL} -d ${DESTDIR}${includedir}/afs ${INSTALL_DATA} libusd.a ${DESTDIR}${libdir}/afs/libusd.a ${INSTALL_DATA} ${srcdir}/usd.h ${DESTDIR}${includedir}/afs/usd.h dest: libusd.a usd.h ${INSTALL} -d ${DEST}/lib/afs ${INSTALL} -d ${DEST}/include/afs ${INSTALL_DATA} libusd.a ${DEST}/lib/afs/libusd.a ${INSTALL_DATA} ${srcdir}/usd.h ${DEST}/include/afs/usd.h # # Misc. targets # clean: $(RM) -f *.o libusd.a core AFS_component_version_number.c include ../config/Makefile.version