fs-sysname-output-syntax-compatibility-20010723
[openafs.git] / src / libadmin / cfg / 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 include ../../config/Makefile.${SYS_NAME}
15
16 CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
17 CCRULE = ${CC} ${CFLAGS} -c $?
18
19 UBIKOBJS=\
20         ubik_int.cs.o \
21         ubik_int.xdr.o
22
23 CFGOBJS=\
24         cfgclient.o \
25         cfgdb.o \
26         cfghost.o \
27         cfgservers.o \
28         cfginternal.o
29
30 LIBOBJS =\
31         ${UBIKOBJS} \
32         ${CFGOBJS}
33
34
35 LIBCFGADMIN = ${DESTDIR}/lib/afs/libcfgadmin.a
36
37 system install: ${LIBCFGADMIN}
38
39 ${LIBCFGADMIN}: libcfgadmin.a
40         ${INSTALL} afs_cfgAdmin.h ${DESTDIR}include/afs
41         ${INSTALL} libcfgadmin.a ${LIBCFGADMIN}
42
43 libcfgadmin.a: ${LIBOBJS}
44         -rm -f $@
45         ar rv $@ ${LIBOBJS}
46         ${RANLIB} $@
47
48 UBIKDIR=../../ubik
49
50 ubik_int.cs.o: ${UBIKDIR}/ubik_int.cs.c
51         ${CCRULE}
52
53 ubik_int.xdr.o: ${UBIKDIR}/ubik_int.xdr.c
54         ${CCRULE}
55
56 ${CFGOBJS}: afs_cfgAdmin.h
57
58 clean:
59         rm -f *.o libcfgadmin*