openafs/src/procmgmt/Makefile.in
Derrick Brashear de75d9d8aa buildtools target
if you wish to cross compile, you want these things. arrange to
be able to build just them

Change-Id: I6bee40b61a16722c402832bba39d2e88dcabec25
Reviewed-on: http://gerrit.openafs.org/2145
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2010-06-13 20:18:48 -07:00

60 lines
1.6 KiB
Makefile

# Copyright 2000, International Business Machines Corporation and others.
# All Rights Reserved.
#
# This software has been released under the terms of the IBM Public
# License. For details, see the LICENSE file in the top-level source
# directory or online at http://www.openafs.org/dl/license10.html
srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
all: ${TOP_LIBDIR}/libprocmgmt.a ${TOP_INCDIR}/afs/procmgmt.h
buildtools: ${TOP_INCDIR}/afs/procmgmt.h
${TOP_LIBDIR}/libprocmgmt.a: libprocmgmt.a
${INSTALL_DATA} $? $@
${TOP_INCDIR}/afs/procmgmt.h: ${srcdir}/procmgmt.h
${INSTALL_DATA} $? $@
#
# Build targets
#
libprocmgmt.a: procmgmt_unix.o AFS_component_version_number.o
$(RM) -f $@
$(AR) crv $@ procmgmt_unix.o AFS_component_version_number.o
$(RANLIB) $@
procmgmt_unix.o: ${srcdir}/procmgmt_unix.c ${srcdir}/procmgmt.h
$(CC) $(CFLAGS) -c ${srcdir}/procmgmt_unix.c
#
# Install targets
#
install: libprocmgmt.a
${INSTALL} -d ${DESTDIR}${libdir}/afs
${INSTALL} -d ${DESTDIR}${includedir}/afs
${INSTALL_DATA} libprocmgmt.a ${DESTDIR}${libdir}/afs/libprocmgmt.a
${INSTALL_DATA} ${srcdir}/procmgmt.h \
${DESTDIR}${includedir}/afs/procmgmt.h
dest: libprocmgmt.a
${INSTALL} -d ${DEST}/lib/afs
${INSTALL} -d ${DEST}/include/afs
${INSTALL_DATA} libprocmgmt.a ${DEST}/lib/afs/libprocmgmt.a
${INSTALL_DATA} ${srcdir}/procmgmt.h \
${DEST}/include/afs/procmgmt.h
#
# Misc targets
#
clean:
$(RM) -f *.a *.o core AFS_component_version_number.c
include ../config/Makefile.version