946415a2080567b4a84ed048b08404531bb31a87
[openafs.git] / src / tviced / 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 # Portions Copyright (c) 2003 Apple Computer, Inc.
9
10 srcdir=@srcdir@
11 include @TOP_OBJDIR@/src/config/Makefile.config
12 INSTALL = @INSTALL@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16
17 CC=${MT_CC}
18 CFLAGS=${COMMON_CFLAGS} -I.. -DNINTERFACE ${MT_CFLAGS} -DRXDEBUG -DFSSYNC_BUILD_SERVER -DSALVSYNC_BUILD_CLIENT
19
20 CCRULE=${CC} ${CFLAGS} -c $?
21
22 RX=../rx
23 VICED=../viced
24 VLSERVER=../vlserver
25 LWP=../lwp
26 LIBACL=../libacl
27 UTIL=../util
28 DIR=../dir
29 VOL=../vol
30 FSINT=../fsint
31
32 VICEDOBJS=viced.o afsfileprocs.o host.o physio.o callback.o serialize_state.o   
33
34 VLSERVEROBJS=vldbint.cs.o vldbint.xdr.o
35
36 LWPOBJS=lock.o threadname.o
37
38 LIBACLOBJS=aclprocs.o netprocs.o
39
40 UTILOBJS=assert.o uuid.o serverLog.o fileutil.o netutils.o dirpath.o volparse.o flipbase64.o softsig.o
41
42 DIROBJS=buffer.o dir.o salvage.o
43
44 VOLOBJS= vnode.o volume.o vutil.o partition.o fssync-server.o \
45          clone.o devname.o common.o ihandle.o listinodes.o namei_ops.o \
46          fstab.o salvsync-client.o daemon_com.o
47
48 FSINTOBJS= afsaux.o afscbint.cs.o afsint.ss.o afsint.xdr.o
49
50 RXOBJS = rx_pthread.o 
51
52 objects= ${VICEDOBJS} ${VLSERVEROBJS} ${LWPOBJS} ${LIBACLOBJS} \
53          ${UTILOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS} ${RXOBJS}
54
55 SDBGOBJS = state_analyzer.o uuid.o dirpath.o fileutil.o ${TOP_LIBDIR}/util.a
56
57 LIBS=${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/util.a
58
59 all: fileserver state_analyzer
60
61 rx_pthread.o: ${RX}/rx_pthread.c
62         ${CCRULE} @CFLAGS_NOERROR@ -DDPF_FSLOG
63
64 viced.o: ${VICED}/viced.c
65         ${CCRULE}
66
67 afsfileprocs.o: ${VICED}/afsfileprocs.c
68         ${CCRULE} @CFLAGS_NOERROR@
69
70 host.o: ${VICED}/host.c
71         ${CCRULE}
72
73 physio.o: ${VICED}/physio.c
74         ${CCRULE}
75
76 callback.o: ${VICED}/callback.c
77         ${CCRULE}
78
79 serialize_state.o: ./serialize_state.c
80         ${CCRULE}
81
82 assert.o: ${UTIL}/assert.c
83         ${CCRULE}
84
85 uuid.o: ${UTIL}/uuid.c
86         ${CCRULE}
87
88 serverLog.o: ${UTIL}/serverLog.c
89         ${CCRULE}
90
91 fileutil.o: ${UTIL}/fileutil.c
92         ${CCRULE}
93
94 volparse.o: ${UTIL}/volparse.c
95         ${CCRULE}
96
97 flipbase64.o: ${UTIL}/flipbase64.c
98         ${CCRULE}
99
100 netutils.o: ${UTIL}/netutils.c
101         ${CCRULE}
102
103 dirpath.o: ${UTIL}/dirpath.c
104         ${CCRULE}
105
106 softsig.o: ${UTIL}/softsig.c
107         ${CCRULE}
108
109 lock.o: ${LWP}/lock.c
110         ${CCRULE}
111
112 threadname.o: ${LWP}/threadname.c
113         ${CCRULE}
114
115 aclprocs.o: ${LIBACL}/aclprocs.c
116         ${CCRULE}
117
118 netprocs.o: ${LIBACL}/netprocs.c
119         ${CCRULE}
120
121 vldbint.cs.o: ${VLSERVER}/vldbint.cs.c
122         ${CCRULE}
123
124 vldbint.xdr.o: ${VLSERVER}/vldbint.xdr.c
125         ${CCRULE}
126
127 buffer.o: ${DIR}/buffer.c
128         ${CCRULE}
129
130 dir.o: ${DIR}/dir.c
131         ${CCRULE}
132
133 salvage.o: ${DIR}/salvage.c
134         ${CCRULE}
135
136 vnode.o: ${VOL}/vnode.c
137         ${CCRULE}
138
139 volume.o: ${VOL}/volume.c
140         ${CCRULE}
141
142 vutil.o: ${VOL}/vutil.c
143         ${CCRULE}
144
145 partition.o: ${VOL}/partition.c
146         ${CCRULE}
147
148 fssync-server.o: ${VOL}/fssync-server.c
149         ${CCRULE}
150
151 fssync-client.o: ${VOL}/fssync-client.c
152         ${CCRULE}
153
154 salvsync-client.o: ${VOL}/salvsync-client.c
155         ${CCRULE}
156
157 daemon_com.o: ${VOL}/daemon_com.c
158         ${CCRULE}
159
160 clone.o: ${VOL}/clone.c
161         ${CCRULE}
162
163 nuke.o: ${VOL}/nuke.c
164         ${CCRULE}
165
166 devname.o: ${VOL}/devname.c
167         ${CCRULE}
168
169 # only for darwin?
170 fstab.o: ${UTIL}/fstab.c
171         ${CCRULE}
172
173 common.o: ${VOL}/common.c
174         ${CCRULE}
175
176 listinodes.o: ${VOL}/listinodes.c
177         ${CCRULE}
178
179 ihandle.o: ${VOL}/ihandle.c
180         ${CCRULE}
181
182 namei_ops.o: ${VOL}/namei_ops.c
183         ${CCRULE}
184
185 afsaux.o: ${FSINT}/afsaux.c
186         ${CCRULE}
187
188 afscbint.cs.o: ${FSINT}/afscbint.cs.c
189         ${CCRULE}
190
191 afscbint.ss.o: ${FSINT}/afscbint.ss.c
192         ${CCRULE}
193
194 afsint.cs.o: ${FSINT}/afsint.cs.c
195         ${CCRULE}
196
197 afsint.ss.o: ${FSINT}/afsint.ss.c
198         ${CCRULE}
199
200 afsint.xdr.o: ${FSINT}/afsint.xdr.c
201         ${CCRULE} @CFLAGS_NOERROR@
202
203 state_analyzer.o: state_analyzer.c
204         ${CCRULE}
205
206 fileserver: ${objects} ${LIBS}
207         ${CC} ${LDFLAGS} -o fileserver ${objects} ${LIBS} ${MT_LIBS} ${XLIBS}
208
209 state_analyzer: ${SDBGOBJS}
210         ${CC} ${LDFLAGS} -o state_analyzer ${SDBGOBJS} ${MT_LIBS} ${XLIBS}
211
212 install: fileserver state_analyzer
213         ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
214         ${INSTALL} -d ${DESTDIR}${afssrvsbindir}
215         ${INSTALL} fileserver \
216                 ${DESTDIR}${afssrvlibexecdir}/fileserver
217         ${INSTALL_PROGRAM} state_analyzer \
218                 ${DESTDIR}${afssrvsbindir}/state_analyzer
219
220 dest: fileserver state_analyzer
221         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
222         ${INSTALL} fileserver \
223                 ${DEST}/root.server/usr/afs/bin/fileserver
224         ${INSTALL_PROGRAM} state_analyzer \
225                 ${DEST}/root.server/usr/afs/bin/state_analyzer
226
227 clean:
228         $(RM) -f *.o fileserver state_analyzer core AFS_component_version_number.c
229
230 include ../config/Makefile.version