def0c21f59b4945be4021db89e5281943fdb44b9
[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 DESTDIR=@DESTDIR@
9 SRCDIR=@SRCDIR@
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
12
13 include ../config/Makefile.${SYS_NAME}
14 include ../config/Makefile.version
15
16 CFLAGS = $(DBUG) -I${SRCDIR}include -I${TOP_SRCDIR}/config ${XCFLAGS}
17
18 ########################################################################
19 # build libprocmgmt.a
20 LIBOBJS=procmgmt_unix.o
21
22 libprocmgmt.a: ${LIBOBJS} AFS_component_version_number.o
23         $(RM) -f libprocmgmt.a
24         $(AR) r libprocmgmt.a ${LIBOBJS} AFS_component_version_number.o
25         $(RANLIB) libprocmgmt.a
26
27 procmgmt_unix.o: procmgmt_unix.c procmgmt.h
28
29 #######################################################################
30 system: install
31
32 kinstall ukinstall webinstall: install
33         @echo No relevant source here.
34
35 ${DESTDIR}lib/afs/libprocmgmt.a: libprocmgmt.a
36         ${INSTALL}   $? $@
37
38
39 install: ${DESTDIR}lib/afs/libprocmgmt.a 
40         ${INSTALL} procmgmt.h ${DESTDIR}include/afs
41
42 includes:
43         ${INSTALL} procmgmt.h ${DESTDIR}include/afs
44
45 clean:
46         $(RM) -f *.o libprocmgmt.a   \
47          core  AFS_component_version_number.c