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