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