# 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

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

install: ${DESTDIR}${includedir}/afs/afs_clientAdmin.h ${DESTDIR}${libdir}/afs/libclientadmin.a

dest: ${DEST}/include/afs/afs_clientAdmin.h ${DEST}/lib/afs/libclientadmin.a

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

${DESTDIR}${includedir}/afs/afs_clientAdmin.h: afs_clientAdmin.h
	${INSTALL} $? $@

${DEST}/include/afs/afs_clientAdmin.h: afs_clientAdmin.h
	${INSTALL} $? $@

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

${DESTDIR}${libdir}/afs/libclientadmin.a: libclientadmin.a
	${INSTALL} $? $@

${DEST}/lib/afs/libclientadmin.a: libclientadmin.a
	${INSTALL} $? $@

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

afs_clientAdmin.o: afs_clientAdmin.h

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