more-makefiles-cleanup-20010829
[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 DESTDIR=@DESTDIR@
9 SRCDIR=@SRCDIR@
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
12
13
14
15 OPTIMIZE= -g
16
17 INCDIRS= -I.. -I${DESTDIR}/include 
18 LIBS= ../liblwp.a
19
20 include ../../config/Makefile.${SYS_NAME}
21
22 CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${XCFLAGS}
23
24 system noversion: test
25
26 test:           test.c liblwp.a
27                 ${CC} -p ${CFLAGS} test.c -o test ${LIBS}
28
29 testlwp.o       : testlwp.c
30                 ${CC} -c -p ${CFLAGS} testlwp.c ${LIBS}
31
32
33 selclient.o: selclient.c seltest.h
34         ${CC} ${CFLAGS} -c -g selclient.c
35
36 selclient: selclient.o selsubs.o ${LIBS}
37         ${CC} ${CFLAGS} -g -o selclient selclient.o selsubs.o ${LIBS}
38
39 selserver.o: selserver.c seltest.h
40         ${CC} ${CFLAGS} -c -g selserver.c
41
42 selserver: selserver.o selsubs.o ${LIBS}
43         ${CC} ${CFLAGS} -g -o selserver selserver.o selsubs.o ${LIBS}
44
45 selsubs.o: selsubs.c seltest.h
46         ${CC} ${CFLAGS} -g -c selsubs.c
47
48
49 test_key: test_key.o
50         ${CC} ${CFLAGS} -g -o test_key test_key.o \
51                 ../liblwp.a $(DESTDIR)/lib/afs/util.a
52
53
54
55 clean:
56         -$(RM) -f *.o *.a test testlwp selclient selserver core