f9852fed88642ef953c7e8ac453ee7aa92b8787a
[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
11
12
13 CFLAGS=-I. -I${srcdir} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS}
14
15 all: ${TOP_LIBDIR}/libusd.a ${TOP_INCDIR}/afs/usd.h
16
17 #
18 # Build targets
19 #
20 libusd.a: usd_file.o AFS_component_version_number.o
21         $(RM) -f $@
22         $(AR) crv $@ usd_file.o AFS_component_version_number.o
23         $(RANLIB) $@
24
25 usd_file.o: usd_file.c usd.h
26
27 #
28 # Installation targets
29 #
30 install: ${DESTDIR}${libdir}/afs/libusd.a ${DESTDIR}${includedir}/afs/usd.h
31
32 ${DEST}/lib/afs/libusd.a: libusd.a
33         ${INSTALL} $? $@
34
35 ${DEST}/include/afs/usd.h: usd.h
36         ${INSTALL} $? $@
37
38 #
39 # Misc. targets
40 #
41 clean:
42         $(RM) -f *.o libusd.a core AFS_component_version_number.c
43
44 include ../config/Makefile.version
45 ${DESTDIR}${libdir}/afs/libusd.a: libusd.a
46         ${INSTALL} $? $@
47
48 ${TOP_LIBDIR}/libusd.a: libusd.a
49         ${INSTALL} $? $@
50
51 ${DESTDIR}${includedir}/afs/usd.h: usd.h
52         ${INSTALL} $? $@
53
54 ${TOP_INCDIR}/afs/usd.h: usd.h
55         ${INSTALL} $? $@
56
57 dest: ${DEST}/lib/afs/libusd.a ${DEST}/include/afs/usd.h
58