libroken: Build on windows
[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 include @TOP_OBJDIR@/src/config/Makefile.pthread
13
14 INSTALL = @INSTALL@
15 INSTALL_DATA = @INSTALL_DATA@
16 INSTALL_PROGRAM = @INSTALL_PROGRAM@
17 INSTALL_SCRIPT = @INSTALL_SCRIPT@
18
19 MODULE_CFLAGS=-DNINTERFACE -DRXDEBUG -DFSSYNC_BUILD_SERVER \
20               -DSALVSYNC_BUILD_CLIENT -DAFS_DEMAND_ATTACH_FS
21
22 RX=$(srcdir)/../rx
23 VICED=$(srcdir)/../viced
24 TVICED=$(srcdir)/../tviced
25 VLSERVER=$(srcdir)/../vlserver
26 LWP=$(srcdir)/../lwp
27 LIBACL=$(srcdir)/../libacl
28 UTIL=$(srcdir)/../util
29 DIR=$(srcdir)/../dir
30 VOL=$(srcdir)/../vol
31 FSINT=$(srcdir)/../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 CFLAGS_rx_pthread.o=-DDPF_FSLOG
63 rx_pthread.o: ${RX}/rx_pthread.c
64         $(AFS_CCRULE) $(RX)/rx_pthread.c
65
66 viced.o: ${VICED}/viced.c
67         $(AFS_CCRULE) $(VICED)/viced.c
68
69 afsfileprocs.o: ${VICED}/afsfileprocs.c
70         $(AFS_CCRULE) $(VICED)/afsfileprocs.c
71
72 host.o: ${VICED}/host.c
73         $(AFS_CCRULE) $(VICED)/host.c
74
75 physio.o: ${VICED}/physio.c
76         $(AFS_CCRULE) $(VICED)/physio.c
77
78 callback.o: ${VICED}/callback.c
79         $(AFS_CCRULE) $(VICED)/callback.c
80
81 serialize_state.o: ${TVICED}/serialize_state.c
82         $(AFS_CCRULE) $(TVICED)/serialize_state.c
83
84 assert.o: ${UTIL}/assert.c
85         $(AFS_CCRULE) $(UTIL)/assert.c
86
87 uuid.o: ${UTIL}/uuid.c
88         $(AFS_CCRULE) $(UTIL)/uuid.c
89
90 serverLog.o: ${UTIL}/serverLog.c
91         $(AFS_CCRULE) $(UTIL)/serverLog.c
92
93 fileutil.o: ${UTIL}/fileutil.c
94         $(AFS_CCRULE) $(UTIL)/fileutil.c
95
96 volparse.o: ${UTIL}/volparse.c
97         $(AFS_CCRULE) $(UTIL)/volparse.c
98
99 flipbase64.o: ${UTIL}/flipbase64.c
100         $(AFS_CCRULE) $(UTIL)/flipbase64.c
101
102 netutils.o: ${UTIL}/netutils.c
103         $(AFS_CCRULE) -I../util $(UTIL)/netutils.c
104
105 dirpath.o: ${UTIL}/dirpath.c
106         $(AFS_CCRULE) $(UTIL)/dirpath.c
107
108 softsig.o: ${UTIL}/softsig.c
109         $(AFS_CCRULE) $(UTIL)/softsig.c
110
111 lock.o: ${LWP}/lock.c
112         $(AFS_CCRULE) $(LWP)/lock.c
113
114 threadname.o: ${LWP}/threadname.c
115         $(AFS_CCRULE) $(LWP)/threadname.c
116
117 aclprocs.o: ${LIBACL}/aclprocs.c
118         $(AFS_CCRULE) $(LIBACL)/aclprocs.c
119
120 netprocs.o: ${LIBACL}/netprocs.c
121         $(AFS_CCRULE) $(LIBACL)/netprocs.c
122
123 vldbint.cs.o: ../vlserver/vldbint.cs.c
124         $(AFS_CCRULE) -I$(VLSERVER) ../vlserver/vldbint.cs.c
125
126 vldbint.xdr.o: ../vlserver/vldbint.xdr.c
127         $(AFS_CCRULE) -I$(VLSERVER) ../vlserver/vldbint.xdr.c
128
129
130 buffer.o: ${DIR}/buffer.c
131         $(AFS_CCRULE) $(DIR)/buffer.c
132
133 dir.o: ${DIR}/dir.c
134         $(AFS_CCRULE) $(DIR)/dir.c
135
136 salvage.o: ${DIR}/salvage.c
137         $(AFS_CCRULE) $(DIR)/salvage.c
138
139 vnode.o: ${VOL}/vnode.c
140         $(AFS_CCRULE) $(VOL)/vnode.c
141
142 volume.o: ${VOL}/volume.c
143         $(AFS_CCRULE) $(VOL)/volume.c
144
145 vutil.o: ${VOL}/vutil.c
146         $(AFS_CCRULE) $(VOL)/vutil.c
147
148 partition.o: ${VOL}/partition.c
149         $(AFS_CCRULE) $(VOL)/partition.c
150
151 vg_cache.o: ${VOL}/vg_cache.c
152         $(AFS_CCRULE) $(VOL)/vg_cache.c
153
154 vg_scan.o: ${VOL}/vg_scan.c
155         $(AFS_CCRULE) $(VOL)/vg_scan.c
156
157 fssync-server.o: ${VOL}/fssync-server.c
158         $(AFS_CCRULE) $(VOL)/fssync-server.c
159
160 fssync-client.o: ${VOL}/fssync-client.c
161         $(AFS_CCRULE) $(VOL)/fssync-client.c
162
163 salvsync-client.o: ${VOL}/salvsync-client.c
164         $(AFS_CCRULE) $(VOL)/salvsync-client.c
165
166 daemon_com.o: ${VOL}/daemon_com.c
167         $(AFS_CCRULE) $(VOL)/daemon_com.c
168
169 clone.o: ${VOL}/clone.c
170         $(AFS_CCRULE) $(VOL)/clone.c
171
172 nuke.o: ${VOL}/nuke.c
173         $(AFS_CCRULE) $(VOL)/nuke.c
174
175 devname.o: ${VOL}/devname.c
176         $(AFS_CCRULE) $(VOL)/devname.c
177
178 # only for darwin?
179 fstab.o: ${UTIL}/fstab.c
180         $(AFS_CCRULE) $(UTIL)/fstab.c
181
182 common.o: ${VOL}/common.c
183         $(AFS_CCRULE) $(VOL)/common.c
184
185 listinodes.o: ${VOL}/listinodes.c
186         $(AFS_CCRULE) $(VOL)/listinodes.c
187
188 ihandle.o: ${VOL}/ihandle.c
189         $(AFS_CCRULE) $(VOL)/ihandle.c
190
191 namei_ops.o: ${VOL}/namei_ops.c
192         $(AFS_CCRULE) $(VOL)/namei_ops.c
193
194 afsaux.o: ${FSINT}/afsaux.c
195         $(AFS_CCRULE) -I../fsint $(FSINT)/afsaux.c
196
197 afscbint.cs.o: ../fsint/afscbint.cs.c
198         $(AFS_CCRULE) ../fsint/afscbint.cs.c
199
200 afscbint.ss.o: ../fsint/afscbint.ss.c
201         $(AFS_CCRULE) ../fsint/afscbint.ss.c
202
203 afsint.cs.o: ../fsint/afsint.cs.c
204         $(AFS_CCRULE) ../fsint/afsint.cs.c
205
206 afsint.ss.o: ../fsint/afsint.ss.c
207         $(AFS_CCRULE) ../fsint/afsint.ss.c
208
209 afsint.xdr.o: ../fsint/afsint.xdr.c
210         $(AFS_CCRULE) ../fsint/afsint.xdr.c
211
212 state_analyzer.o: ${TVICED}/state_analyzer.c
213         $(AFS_CCRULE) $(TVICED)/state_analyzer.c
214
215 dafileserver: ${objects} ${LIBS}
216         $(AFS_LDRULE) ${objects} \
217                 ${LIBS} $(LIB_roken) ${MT_LIBS} ${XLIBS}
218
219 state_analyzer: ${SDBGOBJS}
220         $(AFS_LDRULE) ${SDBGOBJS} \
221                 $(LIB_roken) ${MT_LIBS} ${XLIBS}
222
223 install: dafileserver state_analyzer
224         ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
225         ${INSTALL} -d ${DESTDIR}${afssrvsbindir}
226         ${INSTALL} dafileserver \
227                 ${DESTDIR}${afssrvlibexecdir}/dafileserver
228         ${INSTALL_PROGRAM} state_analyzer \
229                 ${DESTDIR}${afssrvsbindir}/state_analyzer
230
231 dest: dafileserver state_analyzer
232         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
233         ${INSTALL} dafileserver \
234                 ${DEST}/root.server/usr/afs/bin/dafileserver
235         ${INSTALL_PROGRAM} state_analyzer \
236                 ${DEST}/root.server/usr/afs/bin/state_analyzer
237
238 clean:
239         $(RM) -f *.o dafileserver state_analyzer core AFS_component_version_number.c
240
241 include ../config/Makefile.version