Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / procmgmt / 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}/libprocmgmt.a ${TOP_INCDIR}/afs/procmgmt.h \
14 ${TOP_INCDIR}/afs/procmgmt_softsig.h
15
16 buildtools: ${TOP_INCDIR}/afs/procmgmt.h
17
18 ${TOP_LIBDIR}/libprocmgmt.a: libprocmgmt.a
19 ${INSTALL_DATA} $? $@
20
21 ${TOP_INCDIR}/afs/procmgmt.h: ${srcdir}/procmgmt.h
22 ${INSTALL_DATA} $? $@
23
24 ${TOP_INCDIR}/afs/procmgmt_softsig.h: ${srcdir}/procmgmt_softsig.h
25 ${INSTALL_DATA} $? $@
26
27 #
28 # Build targets
29 #
30 libprocmgmt.a: procmgmt_unix.o AFS_component_version_number.o
31 $(RM) -f $@
32 $(AR) crv $@ procmgmt_unix.o AFS_component_version_number.o
33 $(RANLIB) $@
34
35 procmgmt_unix.o: ${srcdir}/procmgmt_unix.c ${srcdir}/procmgmt.h
36
37 #
38 # Install targets
39 #
40 install: libprocmgmt.a
41 ${INSTALL} -d ${DESTDIR}${libdir}/afs
42 ${INSTALL} -d ${DESTDIR}${includedir}/afs
43 ${INSTALL_DATA} libprocmgmt.a ${DESTDIR}${libdir}/afs/libprocmgmt.a
44 ${INSTALL_DATA} ${srcdir}/procmgmt.h \
45 ${DESTDIR}${includedir}/afs/procmgmt.h
46 ${INSTALL_DATA} ${srcdir}/procmgmt_softsig.h \
47 ${DESTDIR}${includedir}/afs/procmgmt_softsig.h
48
49 dest: libprocmgmt.a
50 ${INSTALL} -d ${DEST}/lib/afs
51 ${INSTALL} -d ${DEST}/include/afs
52 ${INSTALL_DATA} libprocmgmt.a ${DEST}/lib/afs/libprocmgmt.a
53 ${INSTALL_DATA} ${srcdir}/procmgmt.h \
54 ${DEST}/include/afs/procmgmt.h
55 ${INSTALL_DATA} ${srcdir}/procmgmt_softsig.h \
56 ${DEST}/include/afs/procmgmt_softsig.h
57
58 #
59 # Misc targets
60 #
61 clean:
62 $(RM) -f *.a *.o core AFS_component_version_number.c
63
64 include ../config/Makefile.version