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