1
# Copyright 2000, International Business Machines Corporation and others.
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
9
TOP_INCDIR=@TOP_INCDIR@
10
TOP_LIBDIR=@TOP_LIBDIR@
12
exec_prefix=@exec_prefix@
15
libexecdir=@libexecdir@
17
includedir=@includedir@
19
afssrvbindir=@afssrvbindir@
20
afssrvsbindir=@afssrvsbindir@
21
afssrvlibexecdir=@afssrvlibexecdir@
22
RXGEN=${TOP_SRCDIR}/rxgen/rxgen
23
TOP_SRCDIR=@TOP_SRCDIR@
24
SYS_NAME=@AFS_SYSNAME@
28
include ../config/Makefile.${SYS_NAME}
30
COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
31
CFLAGS=${DBG} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS}
32
RPCINCLS=${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/rx/rx.h bosint.h
36
${TOP_INCDIR}/afs/auth.h \
37
${TOP_INCDIR}/afs/keys.h \
38
${TOP_INCDIR}/afs/cellconfig.h \
39
${TOP_INCDIR}/afs/cmd.h \
40
${TOP_INCDIR}/afs/ktime.h
42
# EH 12/18/90 - have to search librx.a twice on Ultrix 4.0
43
LIBS=${TOP_LIBDIR}/librx.a \
44
${TOP_LIBDIR}/liblwp.a \
45
${TOP_LIBDIR}/libcmd.a \
46
${TOP_LIBDIR}/libkauth.a \
47
${TOP_LIBDIR}/libvolser.a \
48
${TOP_LIBDIR}/libvldb.a \
49
${TOP_LIBDIR}/libauth.a \
50
${TOP_LIBDIR}/librxstat.a \
51
${TOP_LIBDIR}/librxkad.a \
52
${TOP_LIBDIR}/libdes.a \
53
${TOP_LIBDIR}/libubik.a \
54
${TOP_LIBDIR}/librx.a \
55
${TOP_LIBDIR}/libcom_err.a \
56
${TOP_LIBDIR}/util.a \
57
${TOP_LIBDIR}/libsys.a \
58
${TOP_LIBDIR}/libprocmgmt.a
60
OBJS=bosserver.o bnode.o ezbnodeops.o fsbnodeops.o bosint.ss.o bosint.xdr.o \
61
bosoprocs.o cronbnodeops.o
63
all: bosserver ${TOP_INCDIR}/afs/bosint.h bos ${TOP_LIBDIR}/libbos.a ${TOP_INCDIR}/afs/bnode.h bos_util
65
$(OBJS) bosint.xdr.o bosint.cs.o boserr.o: $(INCLS)
67
bosint.ss.o: bosint.ss.c ${RPCINCLS}
68
bosint.xdr.o: bosint.xdr.c ${RPCINCLS}
69
bosint.cs.o: bosint.cs.c ${RPCINCLS}
71
bosint.xdr.c bosint.ss.c bosint.cs.c bosint.h: bosint.xg
74
bnode.h boserr.c: bnode.p.h boserr.et
75
$(RM) -f boserr.c bnode.h; $(COMPILE_ET) boserr -h bnode
77
bosserver.o: bosserver.c ${INCLS} AFS_component_version_number.o
79
cronbnodeops.o: cronbnodeops.c ${INCLS}
81
bnode.o: bnode.c ${INCLS}
83
bosoprocs.o: bosoprocs.c ${INCLS}
85
bos.o: bos.c ${INCLS} AFS_component_version_number.o
87
bos: bos.o $(LIBS) libbos.a
88
${CC} ${CFLAGS} -o bos bos.o libbos.a $(LIBS) ${XLIBS}
90
bos_util.o: bos_util.c ${INCLS} AFS_component_version_number.o
92
bos_util: bos_util.o $(LIBS)
93
${CC} ${CFLAGS} -o bos_util bos_util.o $(LIBS) ${XLIBS}
95
ezbnodeops.o: ezbnodeops.c ${INCLS}
97
fsbnodeops.o: fsbnodeops.c ${INCLS}
99
libbos.a: bosint.xdr.o bosint.cs.o boserr.o AFS_component_version_number.o
101
$(AR) crv $@ bosint.xdr.o bosint.cs.o boserr.o AFS_component_version_number.o
104
bosserver: $(OBJS) $(LIBS)
105
${CC} $(CFLAGS) -o bosserver $(OBJS) ${TOP_LIBDIR}/libaudit.a $(LIBS) ${XLIBS}
111
${DESTDIR}${afssrvsbindir}/bosserver \
112
${DESTDIR}${includedir}/afs/bosint.h \
113
${DESTDIR}${bindir}/bos \
114
${DESTDIR}${afssrvbindir}/bos \
115
${DESTDIR}${afssrvsbindir}/bos_util \
116
${DESTDIR}${libdir}/afs/libbos.a \
117
${DESTDIR}${includedir}/afs/bnode.h
119
${DEST}/root.server/usr/afs/bin/bosserver: bosserver
122
${DEST}/include/afs/bosint.h: bosint.h
128
${DEST}/root.server/usr/afs/bin/bos: bos
131
${DEST}/root.server/usr/afs/bin/bos_util: bos_util
134
${DEST}/lib/afs/libbos.a: libbos.a
137
${DEST}/include/afs/bnode.h: bnode.h
144
$(RM) -f *.a *.o bos bosserver testproc bos_util \
145
bosint.cs.c bosint.ss.c bosint.xdr.c bosint.h \
146
core boserr.c bnode.h AFS_component_version_number.c
151
include ../config/Makefile.version
152
${DESTDIR}${afssrvsbindir}/bosserver: bosserver
155
${DESTDIR}${includedir}/afs/bosint.h: bosint.h
158
${TOP_INCDIR}/afs/bosint.h: bosint.h
161
${DESTDIR}${bindir}/bos: bos
164
${DESTDIR}${afssrvbindir}/bos: bos
167
${DESTDIR}${afssrvsbindir}/bos_util: bos_util
170
${DESTDIR}${libdir}/afs/libbos.a: libbos.a
173
${TOP_LIBDIR}/libbos.a: libbos.a
176
${DESTDIR}${includedir}/afs/bnode.h: bnode.h
179
${TOP_INCDIR}/afs/bnode.h: bnode.h
183
${DEST}/root.server/usr/afs/bin/bosserver \
184
${DEST}/include/afs/bosint.h \
186
${DEST}/root.server/usr/afs/bin/bos \
187
${DEST}/root.server/usr/afs/bin/bos_util \
188
${DEST}/lib/afs/libbos.a \
189
${DEST}/include/afs/bnode.h