ac17da9a1f2af376a79b79cc29fc08951fc58993
[openafs.git] / src / lwp / test / 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 INCDIRS= -I.. -I${DESTDIR}/include 
12 LIBS= ../liblwp.a
13
14 CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${XCFLAGS}
15
16 system noversion: test
17
18 test:           test.c liblwp.a
19                 ${CC} -p ${CFLAGS} test.c -o test ${LIBS}
20
21 testlwp.o       : testlwp.c
22                 ${CC} -c -p ${CFLAGS} testlwp.c ${LIBS}
23
24
25 selclient.o: selclient.c seltest.h
26         ${CC} ${CFLAGS} -c -g selclient.c
27
28 selclient: selclient.o selsubs.o ${LIBS}
29         ${CC} ${CFLAGS} -g -o selclient selclient.o selsubs.o ${LIBS}
30
31 selserver.o: selserver.c seltest.h
32         ${CC} ${CFLAGS} -c -g selserver.c
33
34 selserver: selserver.o selsubs.o ${LIBS}
35         ${CC} ${CFLAGS} -g -o selserver selserver.o selsubs.o ${LIBS}
36
37 selsubs.o: selsubs.c seltest.h
38         ${CC} ${CFLAGS} -g -c selsubs.c
39
40
41 test_key: test_key.o
42         ${CC} ${CFLAGS} -g -o test_key test_key.o \
43                 ../liblwp.a $(DESTDIR)/lib/afs/util.a
44
45
46
47 clean:
48         -$(RM) -f *.o *.a test testlwp selclient selserver core