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