1 # Copyright 2000, International Business Machines Corporation and others.
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
9 include @TOP_OBJDIR@/src/config/Makefile.config
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
15 all: ${TOP_LIBDIR}/libprocmgmt.a ${TOP_INCDIR}/afs/procmgmt.h
17 buildtools: ${TOP_INCDIR}/afs/procmgmt.h
19 ${TOP_LIBDIR}/libprocmgmt.a: libprocmgmt.a
22 ${TOP_INCDIR}/afs/procmgmt.h: ${srcdir}/procmgmt.h
28 libprocmgmt.a: procmgmt_unix.o AFS_component_version_number.o
30 $(AR) crv $@ procmgmt_unix.o AFS_component_version_number.o
33 procmgmt_unix.o: ${srcdir}/procmgmt_unix.c ${srcdir}/procmgmt.h
34 $(CC) $(CFLAGS) -c ${srcdir}/procmgmt_unix.c
39 install: libprocmgmt.a
40 ${INSTALL} -d ${DESTDIR}${libdir}/afs
41 ${INSTALL} -d ${DESTDIR}${includedir}/afs
42 ${INSTALL_DATA} libprocmgmt.a ${DESTDIR}${libdir}/afs/libprocmgmt.a
43 ${INSTALL_DATA} ${srcdir}/procmgmt.h \
44 ${DESTDIR}${includedir}/afs/procmgmt.h
47 ${INSTALL} -d ${DEST}/lib/afs
48 ${INSTALL} -d ${DEST}/include/afs
49 ${INSTALL_DATA} libprocmgmt.a ${DEST}/lib/afs/libprocmgmt.a
50 ${INSTALL_DATA} ${srcdir}/procmgmt.h \
51 ${DEST}/include/afs/procmgmt.h
57 $(RM) -f *.a *.o core AFS_component_version_number.c
59 include ../config/Makefile.version