# 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
include @TOP_OBJDIR@/src/config/Makefile.lwp


INCDIRS= -I.. -I${DESTDIR}/include 
LIBS= ../liblwp.a

system noversion: test

test:		test.c liblwp.a
		${CC} -p ${CFLAGS} test.c -o test ${LIBS}

testlwp.o	: testlwp.c
		${CC} -c -p ${CFLAGS} testlwp.c ${LIBS}


selclient.o: selclient.c seltest.h

selclient: selclient.o selsubs.o ${LIBS}
	$(AFS_LDRULE) selclient.o selsubs.o ${LIBS}

selserver.o: selserver.c seltest.h

selserver: selserver.o selsubs.o ${LIBS}
	$(AFS_LDRULE) selserver.o selsubs.o ${LIBS}

selsubs.o: selsubs.c seltest.h

test_key: test_key.o
	$(AFS_LDRULE) test_key.o ${LIBS} ${TOP_LIBDIR}/util.a

clean:
	-$(RM) -f *.o *.a test test_key selclient selserver core
