makefile-updates-20010828
[openafs.git] / src / cmd / 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 SHELL = /bin/sh
14
15
16 BACKDIR=../../../../PARENT/dest/
17 OPTIMIZE=-O
18
19 LDIRS= -L${DESTDIR}/lib -L${DESTDIR}/lib/afs -L.. L${BACKDIR}/lib -L${BACKDIR}/lib/afs
20 LIBS=-lcmd -lcom_err -lafsutil
21
22 INCDIRS=  -I${SRCDIR}/include -I${SRCDIR}/include/afs -I.. -I${BACKDIR}/include -I${BACKDIR}/include/afs
23
24 CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
25
26 all: test
27 test tests: ctest dtest itest
28
29 itest: itest.o 
30         cc ${CFLAGS} -o itest itest.o 
31
32 ctest: ctest.o
33         cc ${CFLAGS} -o ctest ctest.o 
34
35 dtest: dtest.o
36         cc ${CFLAGS} -o dtest dtest.o 
37
38 system: test
39
40 kinstall:
41         @echo No kernel source here.
42
43 clean:
44         rm -f  *.a *.o ctest dtest itest core
45