1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
13 all: ${TOP_LIBDIR}/libusd.a ${TOP_INCDIR}/afs/usd.h
15 ${TOP_LIBDIR}/libusd.a: libusd.a
18 ${TOP_INCDIR}/afs/usd.h: usd.h
24 libusd.a: usd_file.o AFS_component_version_number.o
26 $(AR) crv $@ usd_file.o AFS_component_version_number.o
29 usd_file.o: usd_file.c usd.h
32 # Installation targets
34 install: libusd.a usd.h
35 ${INSTALL} -d ${DESTDIR}${libdir}/afs
36 ${INSTALL} -d ${DESTDIR}${includedir}/afs
37 ${INSTALL_DATA} libusd.a ${DESTDIR}${libdir}/afs/libusd.a
38 ${INSTALL_DATA} ${srcdir}/usd.h ${DESTDIR}${includedir}/afs/usd.h
41 ${INSTALL} -d ${DEST}/lib/afs
42 ${INSTALL} -d ${DEST}/include/afs
43 ${INSTALL_DATA} libusd.a ${DEST}/lib/afs/libusd.a
44 ${INSTALL_DATA} ${srcdir}/usd.h ${DEST}/include/afs/usd.h
50 $(RM) -f *.o libusd.a core AFS_component_version_number.c
52 include ../config/Makefile.version