2c2b3195db66615ae69ac858c868ddc5ebdc0d68
[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 DEST=@DEST@
9 TOP_INCDIR=@TOP_INCDIR@
10 TOP_LIBDIR=@TOP_LIBDIR@
11 TOP_OBJDIR=@TOP_OBJDIR@
12 srcdir=@srcdir@
13 VPATH=${srcdir}
14 prefix=@prefix@
15 exec_prefix=@exec_prefix@
16 bindir=@bindir@
17 sbindir=@sbindir@
18 libexecdir=@libexecdir@
19 libdir=@libdir@
20 includedir=@includedir@
21 mandir=@mandir@
22 afssrvbindir=@afssrvbindir@
23 afssrvsbindir=@afssrvsbindir@
24 afssrvlibexecdir=@afssrvlibexecdir@
25 COMPILE_ET=${TOP_OBJDIR}/src/comerr/compile_et
26 RXGEN=${TOP_OBJDIR}/src/rxgen/rxgen
27 TOP_SRCDIR=@TOP_SRCDIR@
28 SYS_NAME=@AFS_SYSNAME@
29 SHELL = /bin/sh
30
31 include ../config/Makefile.${SYS_NAME}
32
33 CFLAGS=-I. -I${srcdir} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS}
34
35 all: ${TOP_LIBDIR}/libusd.a ${TOP_INCDIR}/afs/usd.h
36
37 #
38 # Build targets
39 #
40 libusd.a: usd_file.o AFS_component_version_number.o
41         $(RM) -f $@
42         $(AR) crv $@ usd_file.o AFS_component_version_number.o
43         $(RANLIB) $@
44
45 usd_file.o: usd_file.c usd.h
46
47 #
48 # Installation targets
49 #
50 install: ${DESTDIR}${libdir}/afs/libusd.a ${DESTDIR}${includedir}/afs/usd.h
51
52 ${DEST}/lib/afs/libusd.a: libusd.a
53         ${INSTALL} $? $@
54
55 ${DEST}/include/afs/usd.h: usd.h
56         ${INSTALL} $? $@
57
58 #
59 # Misc. targets
60 #
61 clean:
62         $(RM) -f *.o libusd.a core AFS_component_version_number.c
63
64 include ../config/Makefile.version
65 ${DESTDIR}${libdir}/afs/libusd.a: libusd.a
66         ${INSTALL} $? $@
67
68 ${TOP_LIBDIR}/libusd.a: libusd.a
69         ${INSTALL} $? $@
70
71 ${DESTDIR}${includedir}/afs/usd.h: usd.h
72         ${INSTALL} $? $@
73
74 ${TOP_INCDIR}/afs/usd.h: usd.h
75         ${INSTALL} $? $@
76
77 dest: ${DEST}/lib/afs/libusd.a ${DEST}/include/afs/usd.h
78