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