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