~ubuntu-branches/ubuntu/warty/openafs/warty

« back to all changes in this revision

Viewing changes to src/bozo/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-01-10 16:37:33 UTC
  • Revision ID: james.westby@ubuntu.com-20040110163733-jvr0n1uahshlb1uu
Tags: upstream-1.2.11
ImportĀ upstreamĀ versionĀ 1.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
DEST=@DEST@
 
9
TOP_INCDIR=@TOP_INCDIR@
 
10
TOP_LIBDIR=@TOP_LIBDIR@
 
11
prefix=@prefix@
 
12
exec_prefix=@exec_prefix@
 
13
bindir=@bindir@
 
14
sbindir=@sbindir@
 
15
libexecdir=@libexecdir@
 
16
libdir=@libdir@
 
17
includedir=@includedir@
 
18
mandir=@mandir@
 
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@
 
25
 
 
26
SHELL=/bin/sh
 
27
 
 
28
include ../config/Makefile.${SYS_NAME}
 
29
 
 
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
 
33
 
 
34
INCLS=bnode.h \
 
35
        ${RPCINCLS} \
 
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
 
41
 
 
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
 
59
 
 
60
OBJS=bosserver.o bnode.o ezbnodeops.o fsbnodeops.o bosint.ss.o bosint.xdr.o \
 
61
bosoprocs.o cronbnodeops.o
 
62
 
 
63
all: bosserver ${TOP_INCDIR}/afs/bosint.h bos ${TOP_LIBDIR}/libbos.a ${TOP_INCDIR}/afs/bnode.h bos_util
 
64
 
 
65
$(OBJS) bosint.xdr.o bosint.cs.o boserr.o: $(INCLS)
 
66
 
 
67
bosint.ss.o: bosint.ss.c ${RPCINCLS}
 
68
bosint.xdr.o: bosint.xdr.c ${RPCINCLS}
 
69
bosint.cs.o: bosint.cs.c ${RPCINCLS}
 
70
 
 
71
bosint.xdr.c bosint.ss.c bosint.cs.c bosint.h: bosint.xg
 
72
        ${RXGEN} -x bosint.xg
 
73
 
 
74
bnode.h boserr.c: bnode.p.h boserr.et
 
75
        $(RM) -f boserr.c bnode.h; $(COMPILE_ET) boserr -h bnode
 
76
 
 
77
bosserver.o: bosserver.c ${INCLS} AFS_component_version_number.o
 
78
 
 
79
cronbnodeops.o: cronbnodeops.c ${INCLS}
 
80
 
 
81
bnode.o: bnode.c ${INCLS}
 
82
 
 
83
bosoprocs.o: bosoprocs.c ${INCLS}
 
84
 
 
85
bos.o: bos.c ${INCLS} AFS_component_version_number.o
 
86
 
 
87
bos: bos.o $(LIBS) libbos.a
 
88
        ${CC} ${CFLAGS} -o bos bos.o libbos.a $(LIBS)  ${XLIBS}
 
89
 
 
90
bos_util.o: bos_util.c ${INCLS} AFS_component_version_number.o
 
91
 
 
92
bos_util: bos_util.o $(LIBS) 
 
93
        ${CC} ${CFLAGS} -o bos_util bos_util.o $(LIBS)  ${XLIBS}
 
94
 
 
95
ezbnodeops.o: ezbnodeops.c ${INCLS}
 
96
 
 
97
fsbnodeops.o: fsbnodeops.c ${INCLS}
 
98
 
 
99
libbos.a: bosint.xdr.o bosint.cs.o boserr.o AFS_component_version_number.o
 
100
        -$(RM) -f $@
 
101
        $(AR) crv $@ bosint.xdr.o bosint.cs.o boserr.o AFS_component_version_number.o
 
102
        $(RANLIB) $@
 
103
 
 
104
bosserver: $(OBJS) $(LIBS)
 
105
        ${CC} $(CFLAGS) -o bosserver $(OBJS) ${TOP_LIBDIR}/libaudit.a $(LIBS)  ${XLIBS} 
 
106
 
 
107
#
 
108
# Install targets
 
109
#
 
110
install: \
 
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
 
118
 
 
119
${DEST}/root.server/usr/afs/bin/bosserver: bosserver
 
120
        ${INSTALL} $? $@
 
121
 
 
122
${DEST}/include/afs/bosint.h: bosint.h
 
123
        ${INSTALL} $? $@
 
124
 
 
125
${DEST}/bin/bos: bos
 
126
        ${INSTALL} $? $@
 
127
 
 
128
${DEST}/root.server/usr/afs/bin/bos: bos
 
129
        ${INSTALL} $? $@
 
130
 
 
131
${DEST}/root.server/usr/afs/bin/bos_util: bos_util
 
132
        ${INSTALL} $? $@
 
133
 
 
134
${DEST}/lib/afs/libbos.a: libbos.a
 
135
        ${INSTALL} $? $@
 
136
 
 
137
${DEST}/include/afs/bnode.h: bnode.h
 
138
        ${INSTALL} $? $@
 
139
 
 
140
#
 
141
# Misc. targets
 
142
#
 
143
clean:
 
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 
 
147
 
 
148
test: 
 
149
        cd test; $(MAKE) 
 
150
 
 
151
include ../config/Makefile.version
 
152
${DESTDIR}${afssrvsbindir}/bosserver: bosserver
 
153
        ${INSTALL} $? $@
 
154
 
 
155
${DESTDIR}${includedir}/afs/bosint.h: bosint.h
 
156
        ${INSTALL} $? $@
 
157
 
 
158
${TOP_INCDIR}/afs/bosint.h: bosint.h
 
159
        ${INSTALL} $? $@
 
160
 
 
161
${DESTDIR}${bindir}/bos: bos
 
162
        ${INSTALL} $? $@
 
163
 
 
164
${DESTDIR}${afssrvbindir}/bos: bos
 
165
        ${INSTALL} $? $@
 
166
 
 
167
${DESTDIR}${afssrvsbindir}/bos_util: bos_util
 
168
        ${INSTALL} $? $@
 
169
 
 
170
${DESTDIR}${libdir}/afs/libbos.a: libbos.a
 
171
        ${INSTALL} $? $@
 
172
 
 
173
${TOP_LIBDIR}/libbos.a: libbos.a
 
174
        ${INSTALL} $? $@
 
175
 
 
176
${DESTDIR}${includedir}/afs/bnode.h: bnode.h
 
177
        ${INSTALL} $? $@
 
178
 
 
179
${TOP_INCDIR}/afs/bnode.h: bnode.h
 
180
        ${INSTALL} $? $@
 
181
 
 
182
dest: \
 
183
        ${DEST}/root.server/usr/afs/bin/bosserver \
 
184
        ${DEST}/include/afs/bosint.h \
 
185
        ${DEST}/bin/bos \
 
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