usd: Make test program build again
[openafs.git] / src / usd / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
11
12
13 all: ${TOP_LIBDIR}/libusd.a ${TOP_INCDIR}/afs/usd.h
14
15 ${TOP_LIBDIR}/libusd.a: libusd.a
16         ${INSTALL_DATA} $? $@
17
18 ${TOP_INCDIR}/afs/usd.h: usd.h
19         ${INSTALL_DATA} $? $@
20
21 #
22 # Build targets
23 #
24 libusd.a: usd_file.o AFS_component_version_number.o
25         $(RM) -f $@
26         $(AR) crv $@ usd_file.o AFS_component_version_number.o
27         $(RANLIB) $@
28
29 usd_file.o: usd_file.c usd.h
30
31 #
32 # Installation targets
33 #
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
39
40 dest: libusd.a 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
45
46 #
47 # Misc. targets
48 #
49 clean:
50         $(RM) -f *.o libusd.a core AFS_component_version_number.c
51
52 include ../config/Makefile.version