util: Convert to using libtool
[openafs.git] / src / tsalvaged / 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 # Portions Copyright (c) 2006 Sine Nomine Associates
10
11 srcdir=@srcdir@
12 include @TOP_OBJDIR@/src/config/Makefile.config
13 include @TOP_OBJDIR@/src/config/Makefile.pthread
14
15
16 MODULE_CFLAGS = -DRXDEBUG -DFSSYNC_BUILD_CLIENT \
17                 -DSALVSYNC_BUILD_SERVER -DSALVSYNC_BUILD_CLIENT \
18                 -DAFS_DEMAND_ATTACH_FS
19
20 SCFLAGS=$(COMMON_CFLAGS) -I.. -DRXDEBUG -DFSSYNC_BUILD_CLIENT \
21         -DAFS_DEMAND_ATTACH_UTIL
22
23 SCCRULE=${MT_CC} ${SCFLAGS} -c $? -o $@
24
25 LWP=$(srcdir)/../lwp
26 DIR=$(srcdir)/../dir
27 VOL=$(srcdir)/../vol
28
29 SALVAGEDOBJS=salvaged.o vol-salvage.o physio.o
30 SALVAGEROBJS=salvager.o s_vol-salvage.o s_physio.o
31
32 DIROBJS=buffer.o dir.o salvage.o
33
34 LWPOBJS=lock.o threadname.o
35
36 VLIBOBJS=volume.o vnode.o vutil.o partition.o fssync-client.o \
37          clone.o nuke.o devname.o listinodes.o ihandle.o \
38          namei_ops.o salvsync-server.o salvsync-client.o daemon_com.o
39 SVLIBOBJS=s_volume.o s_vnode.o s_vutil.o s_partition.o s_fssync-client.o \
40          s_clone.o s_nuke.o s_devname.o s_listinodes.o s_ihandle.o \
41          s_namei_ops.o s_salvsync-server.o s_salvsync-client.o s_daemon_com.o
42
43 OBJECTS= ${SALVAGEDOBJS} ${VLIBOBJS} ${DIROBJS} ${LWPOBJS}
44 SOBJECTS= ${SALVAGEROBJS} ${SVLIBOBJS}
45
46 FSSDEBUG_OBJS = fssync-debug.o physio.o common.o ${VLIBOBJS} ${DIROBJS} ${LWPOBJS}
47
48 SSSDEBUG_OBJS = salvsync-debug.o physio.o common.o ${VLIBOBJS} ${DIROBJS} ${LWPOBJS}
49
50 LIBS=   ${TOP_LIBDIR}/libafsauthent.a \
51         ${TOP_LIBDIR}/libafsrpc.a \
52         $(top_builddir)/src/util/liboafs_util.la \
53         $(top_builddir)/src/cmd/liboafs_cmd.la \
54         $(top_builddir)/src/opr/liboafs_opr.la
55
56 SLIBS=  ${top_builddir}/src/cmd/liboafs_cmd.la \
57         ${TOP_LIBDIR}/libdir.a \
58         ${TOP_LIBDIR}/librx.a \
59         ${TOP_LIBDIR}/liblwp.a \
60         ${TOP_LIBDIR}/libsys.a \
61         ${TOP_LIBDIR}/libacl.a \
62         $(top_builddir)/src/util/liboafs_util.la \
63         $(top_builddir)/src/opr/liboafs_opr.la
64
65 all: salvageserver dafssync-debug salvsync-debug dasalvager
66
67 salvager.o: ${VOL}/salvager.c
68         ${SCCRULE}
69 s_vol-salvage.o: ${VOL}/vol-salvage.c
70         ${SCCRULE}
71 s_physio.o: ${VOL}/physio.c
72         ${SCCRULE}
73 s_volume.o: ${VOL}/volume.c
74         ${SCCRULE}
75 s_vnode.o: ${VOL}/vnode.c
76         ${SCCRULE}
77 s_vutil.o: ${VOL}/vutil.c
78         ${SCCRULE}
79 s_partition.o: ${VOL}/partition.c
80         ${SCCRULE}
81 s_fssync-client.o: ${VOL}/fssync-client.c
82         ${SCCRULE}
83 s_clone.o: ${VOL}/clone.c
84         ${SCCRULE}
85 s_nuke.o: ${VOL}/nuke.c
86         ${SCCRULE}
87 s_devname.o: ${VOL}/devname.c
88         ${SCCRULE}
89 s_listinodes.o: ${VOL}/listinodes.c
90         ${SCCRULE}
91 s_ihandle.o: ${VOL}/ihandle.c
92         ${SCCRULE}
93 s_namei_ops.o: ${VOL}/namei_ops.c
94         ${SCCRULE}
95 s_salvsync-server.o: ${VOL}/salvsync-server.c
96         ${SCCRULE}
97 s_salvsync-client.o: ${VOL}/salvsync-client.c
98         ${SCCRULE}
99 s_daemon_com.o: ${VOL}/daemon_com.c
100         ${SCCRULE}
101
102 salvaged.o: ${VOL}/salvaged.c
103         $(AFS_CCRULE) $(VOL)/salvaged.c
104
105 vol-salvage.o: ${VOL}/vol-salvage.c
106         $(AFS_CCRULE) $(VOL)/vol-salvage.c
107
108 physio.o: ${VOL}/physio.c
109         $(AFS_CCRULE) $(VOL)/physio.c
110
111 fssync-debug.o: ${VOL}/fssync-debug.c
112         $(AFS_CCRULE) $(VOL)/fssync-debug.c
113
114 buffer.o: ${DIR}/buffer.c
115         $(AFS_CCRULE) $(DIR)/buffer.c
116
117 dir.o: ${DIR}/dir.c
118         $(AFS_CCRULE) $(DIR)/dir.c
119
120 salvage.o: ${DIR}/salvage.c
121         $(AFS_CCRULE) $(DIR)/salvage.c
122
123 lock.o: ${LWP}/lock.c
124         $(AFS_CCRULE) $(LWP)/lock.c
125
126 threadname.o: ${LWP}/threadname.c
127         $(AFS_CCRULE) $(LWP)/threadname.c
128
129 vnode.o: ${VOL}/vnode.c
130         $(AFS_CCRULE) $(VOL)/vnode.c
131
132 volume.o: ${VOL}/volume.c
133         $(AFS_CCRULE) $(VOL)/volume.c
134
135 vutil.o: ${VOL}/vutil.c
136         $(AFS_CCRULE) $(VOL)/vutil.c
137
138 partition.o: ${VOL}/partition.c
139         $(AFS_CCRULE) $(VOL)/partition.c
140
141 fssync-client.o: ${VOL}/fssync-client.c
142         $(AFS_CCRULE) $(VOL)/fssync-client.c
143
144 salvsync-server.o: ${VOL}/salvsync-server.c
145         $(AFS_CCRULE) $(VOL)/salvsync-server.c
146
147 salvsync-client.o: ${VOL}/salvsync-client.c
148         $(AFS_CCRULE) $(VOL)/salvsync-client.c
149
150 daemon_com.o: ${VOL}/daemon_com.c
151         $(AFS_CCRULE) $(VOL)/daemon_com.c
152
153 clone.o: ${VOL}/clone.c
154         $(AFS_CCRULE) $(VOL)/clone.c
155
156 nuke.o: ${VOL}/nuke.c
157         $(AFS_CCRULE) $(VOL)/nuke.c
158
159 devname.o: ${VOL}/devname.c
160         $(AFS_CCRULE) $(VOL)/devname.c
161
162 common.o: ${VOL}/common.c
163         $(AFS_CCRULE) $(VOL)/common.c
164
165 listinodes.o: ${VOL}/listinodes.c
166         $(AFS_CCRULE) $(VOL)/listinodes.c
167
168 ihandle.o: ${VOL}/ihandle.c
169         $(AFS_CCRULE) $(VOL)/ihandle.c
170
171 namei_ops.o: ${VOL}/namei_ops.c
172         $(AFS_CCRULE) $(VOL)/namei_ops.c
173
174 salvageserver: ${OBJECTS} ${LIBS}
175         $(LT_LDRULE_static) ${OBJECTS} ${LIBS} \
176                 $(LIB_hcrypto) $(LIB_roken) $(LIB_crypt) ${MT_LIBS} ${XLIBS}
177
178 dasalvager: ${SOBJECTS} ${SLIBS}
179         $(LT_LDRULE_static) ${SOBJECTS} ${SLIBS} \
180                 $(LIB_roken) ${XLIBS}
181
182 dafssync-debug: ${FSSDEBUG_OBJS} ${LIBS}
183         $(LT_LDRULE_static) ${FSSDEBUG_OBJS} ${LIBS} \
184                 $(LIB_hcrypto) $(LIB_roken) $(LIB_crypt) ${MT_LIBS} ${XLIBS}
185
186 salvsync-debug: ${SSSDEBUG_OBJS} ${LIBS}
187         $(LT_LDRULE_static) ${SSSDEBUG_OBJS} ${LIBS} \
188                 $(LIB_hcrypto) $(LIB_roken) $(LIB_crypt) ${MT_LIBS} ${XLIBS}
189
190 install: salvageserver dafssync-debug salvsync-debug dasalvager
191         ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
192         ${INSTALL} -d ${DESTDIR}${afssrvsbindir}
193         ${LT_INSTALL_PROGRAM} dasalvager \
194                 ${DESTDIR}${afssrvlibexecdir}/dasalvager
195         ${LT_INSTALL_PROGRAM} salvageserver \
196                 ${DESTDIR}${afssrvlibexecdir}/salvageserver
197         ${LT_INSTALL_PROGRAM} dafssync-debug \
198                 ${DESTDIR}${afssrvsbindir}/dafssync-debug
199         ${LT_INSTALL_PROGRAM} salvsync-debug \
200                 ${DESTDIR}${afssrvsbindir}/salvsync-debug
201
202 dest: salvageserver dafssync-debug salvsync-debug dasalvager
203         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
204         ${INSTALL_PROGRAM} dasalvager \
205                 ${DEST}/root.server/usr/afs/bin/dasalvager
206         ${INSTALL_PROGRAM} salvageserver \
207                 ${DEST}/root.server/usr/afs/bin/salvageserver
208         ${INSTALL_PROGRAM} dafssync-debug \
209                 ${DEST}/root.server/usr/afs/bin/dafssync-debug
210         ${INSTALL_PROGRAM} salvsync-debug \
211                 ${DEST}/root.server/usr/afs/bin/salvsync-debug
212
213 clean:
214         $(LT_CLEAN)
215         $(RM) -f *.o salvageserver core AFS_component_version_number.c dafssync-debug salvsync-debug dasalvager
216
217 include ../config/Makefile.version