# 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@

CC = ${MT_CC}
CFLAGS=${COMMON_CFLAGS} ${MT_CFLAGS}

ADMINOBJS = afs_clientAdmin.o

LIBOBJS = ${ADMINOBJS}

all: ${TOP_INCDIR}/afs/afs_clientAdmin.h ${TOP_LIBDIR}/libclientadmin.a

${TOP_INCDIR}/afs/afs_clientAdmin.h: afs_clientAdmin.h
	${INSTALL_DATA} $? $@

${TOP_LIBDIR}/libclientadmin.a: libclientadmin.a
	${INSTALL_DATA} $? $@

install: afs_clientAdmin.h libclientadmin.a
	${INSTALL} -d ${DESTDIR}${includedir}/afs
	${INSTALL} -d ${DESTDIR}${libdir}/afs
	${INSTALL_DATA} ${srcdir}/afs_clientAdmin.h ${DESTDIR}${includedir}/afs/afs_clientAdmin.h
	${INSTALL_DATA} libclientadmin.a ${DESTDIR}${libdir}/afs/libclientadmin.a

dest: afs_clientAdmin.h libclientadmin.a
	${INSTALL} -d ${DEST}/include/afs
	${INSTALL} -d ${DEST}/lib/afs
	${INSTALL_DATA} ${srcdir}/afs_clientAdmin.h ${DEST}/include/afs/afs_clientAdmin.h
	${INSTALL_DATA} libclientadmin.a ${DEST}/lib/afs/libclientadmin.a

libclientadmin.a: ${LIBOBJS}
	-$(RM) -f $@
	$(AR) crv $@ ${LIBOBJS}
	${RANLIB} $@

afs_clientAdmin.o: afs_clientAdmin.h

clean:
	$(RM) -f *.o libclientadmin*
