Call rx_InitHost once during daemon startup
[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_FS $(PTH_CFLAGS)
22
23 SCCRULE=$(RUN_CC) ${MT_CC} ${SCFLAGS} -c $? -o $@
24
25 DIR=$(srcdir)/../dir
26 VOL=$(srcdir)/../vol
27
28 SALVAGEDOBJS=salvaged.o vol-salvage.o physio.o
29 SALVAGEROBJS=salvager.o s_vol-salvage.o s_physio.o
30
31 DIROBJS=buffer.o dir.o salvage.o
32 SDIROBJS=s_buffer.o s_dir.o s_salvage.o
33
34 VLIBOBJS=volume.o vnode.o vutil.o partition.o fssync-client.o \
35          clone.o nuke.o devname.o listinodes.o ihandle.o \
36          namei_ops.o salvsync-server.o salvsync-client.o daemon_com.o
37 SVLIBOBJS=s_volume.o s_vnode.o s_vutil.o s_partition.o s_fssync-client.o \
38          s_clone.o s_nuke.o s_devname.o s_listinodes.o s_ihandle.o \
39          s_namei_ops.o s_salvsync-server.o s_salvsync-client.o s_daemon_com.o
40
41 OBJECTS= ${SALVAGEDOBJS} ${VLIBOBJS} ${DIROBJS}
42 SOBJECTS= ${SALVAGEROBJS} ${SVLIBOBJS} ${SDIROBJS}
43
44 FSSDEBUG_OBJS = fssync-debug.o physio.o common.o ${VLIBOBJS} ${DIROBJS}
45
46 SSSDEBUG_OBJS = salvsync-debug.o physio.o common.o ${VLIBOBJS} ${DIROBJS}
47
48 LIBS=   \
49         $(top_builddir)/src/sys/liboafs_sys.la \
50         $(top_builddir)/src/rx/liboafs_rx.la \
51         $(top_builddir)/src/util/liboafs_util.la \
52         $(top_builddir)/src/cmd/liboafs_cmd.la \
53         $(top_builddir)/src/lwp/liboafs_lwpcompat.la \
54         $(top_builddir)/src/opr/liboafs_opr.la
55
56 all: salvageserver dafssync-debug salvsync-debug dasalvager
57
58 salvager.o: ${VOL}/salvager.c
59         ${SCCRULE}
60 s_vol-salvage.o: ${VOL}/vol-salvage.c
61         ${SCCRULE}
62 s_physio.o: ${VOL}/physio.c
63         ${SCCRULE}
64 s_volume.o: ${VOL}/volume.c
65         ${SCCRULE}
66 s_vnode.o: ${VOL}/vnode.c
67         ${SCCRULE}
68 s_vutil.o: ${VOL}/vutil.c
69         ${SCCRULE}
70 s_partition.o: ${VOL}/partition.c
71         ${SCCRULE}
72 s_fssync-client.o: ${VOL}/fssync-client.c
73         ${SCCRULE}
74 s_clone.o: ${VOL}/clone.c
75         ${SCCRULE}
76 s_nuke.o: ${VOL}/nuke.c
77         ${SCCRULE}
78 s_devname.o: ${VOL}/devname.c
79         ${SCCRULE}
80 s_listinodes.o: ${VOL}/listinodes.c
81         ${SCCRULE}
82 s_ihandle.o: ${VOL}/ihandle.c
83         ${SCCRULE}
84 s_namei_ops.o: ${VOL}/namei_ops.c
85         ${SCCRULE}
86 s_salvsync-server.o: ${VOL}/salvsync-server.c
87         ${SCCRULE}
88 s_salvsync-client.o: ${VOL}/salvsync-client.c
89         ${SCCRULE}
90 s_daemon_com.o: ${VOL}/daemon_com.c
91         ${SCCRULE}
92 s_buffer.o: ${DIR}/buffer.c
93         $(SCCRULE)
94 s_dir.o: ${DIR}/dir.c
95         $(SCCRULE)
96 s_salvage.o: ${DIR}/salvage.c
97         $(SCCRULE)
98
99 salvaged.o: ${VOL}/salvaged.c
100         $(AFS_CCRULE) $(VOL)/salvaged.c
101
102 vol-salvage.o: ${VOL}/vol-salvage.c
103         $(AFS_CCRULE) $(VOL)/vol-salvage.c
104
105 physio.o: ${VOL}/physio.c
106         $(AFS_CCRULE) $(VOL)/physio.c
107
108 fssync-debug.o: ${VOL}/fssync-debug.c
109         $(AFS_CCRULE) $(VOL)/fssync-debug.c
110
111 buffer.o: ${DIR}/buffer.c
112         $(AFS_CCRULE) $(DIR)/buffer.c
113
114 dir.o: ${DIR}/dir.c
115         $(AFS_CCRULE) $(DIR)/dir.c
116
117 salvage.o: ${DIR}/salvage.c
118         $(AFS_CCRULE) $(DIR)/salvage.c
119
120 vnode.o: ${VOL}/vnode.c
121         $(AFS_CCRULE) $(VOL)/vnode.c
122
123 volume.o: ${VOL}/volume.c
124         $(AFS_CCRULE) $(VOL)/volume.c
125
126 vutil.o: ${VOL}/vutil.c
127         $(AFS_CCRULE) $(VOL)/vutil.c
128
129 partition.o: ${VOL}/partition.c
130         $(AFS_CCRULE) $(VOL)/partition.c
131
132 fssync-client.o: ${VOL}/fssync-client.c
133         $(AFS_CCRULE) $(VOL)/fssync-client.c
134
135 salvsync-server.o: ${VOL}/salvsync-server.c
136         $(AFS_CCRULE) $(VOL)/salvsync-server.c
137
138 salvsync-client.o: ${VOL}/salvsync-client.c
139         $(AFS_CCRULE) $(VOL)/salvsync-client.c
140
141 daemon_com.o: ${VOL}/daemon_com.c
142         $(AFS_CCRULE) $(VOL)/daemon_com.c
143
144 clone.o: ${VOL}/clone.c
145         $(AFS_CCRULE) $(VOL)/clone.c
146
147 nuke.o: ${VOL}/nuke.c
148         $(AFS_CCRULE) $(VOL)/nuke.c
149
150 devname.o: ${VOL}/devname.c
151         $(AFS_CCRULE) $(VOL)/devname.c
152
153 common.o: ${VOL}/common.c
154         $(AFS_CCRULE) $(VOL)/common.c
155
156 listinodes.o: ${VOL}/listinodes.c
157         $(AFS_CCRULE) $(VOL)/listinodes.c
158
159 ihandle.o: ${VOL}/ihandle.c
160         $(AFS_CCRULE) $(VOL)/ihandle.c
161
162 namei_ops.o: ${VOL}/namei_ops.c
163         $(AFS_CCRULE) $(VOL)/namei_ops.c
164
165 salvageserver: ${OBJECTS} ${LIBS}
166         $(LT_LDRULE_static) ${OBJECTS} ${LIBS} \
167                 $(LIB_hcrypto) $(LIB_roken) $(LIB_crypt) ${MT_LIBS}
168
169 dasalvager: ${SOBJECTS} ${LIBS}
170         $(LT_LDRULE_static) ${SOBJECTS} ${LIBS} \
171                 $(LIB_hcrypto) $(LIB_roken) $(LIB_crypt) ${MT_LIBS} ${XLIBS}
172
173 dafssync-debug: ${FSSDEBUG_OBJS} ${LIBS}
174         $(LT_LDRULE_static) ${FSSDEBUG_OBJS} ${LIBS} \
175                 $(LIB_hcrypto) $(LIB_roken) $(LIB_crypt) ${MT_LIBS}
176
177 salvsync-debug: ${SSSDEBUG_OBJS} ${LIBS}
178         $(LT_LDRULE_static) ${SSSDEBUG_OBJS} ${LIBS} \
179                 $(LIB_hcrypto) $(LIB_roken) $(LIB_crypt) ${MT_LIBS}
180
181 install: salvageserver dafssync-debug salvsync-debug dasalvager
182         ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
183         ${INSTALL} -d ${DESTDIR}${afssrvsbindir}
184         ${LT_INSTALL_PROGRAM} dasalvager \
185                 ${DESTDIR}${afssrvlibexecdir}/dasalvager
186         ${LT_INSTALL_PROGRAM} salvageserver \
187                 ${DESTDIR}${afssrvlibexecdir}/salvageserver
188         ${LT_INSTALL_PROGRAM} dafssync-debug \
189                 ${DESTDIR}${afssrvsbindir}/dafssync-debug
190         ${LT_INSTALL_PROGRAM} salvsync-debug \
191                 ${DESTDIR}${afssrvsbindir}/salvsync-debug
192
193 dest: salvageserver dafssync-debug salvsync-debug dasalvager
194         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
195         ${INSTALL_PROGRAM} dasalvager \
196                 ${DEST}/root.server/usr/afs/bin/dasalvager
197         ${INSTALL_PROGRAM} salvageserver \
198                 ${DEST}/root.server/usr/afs/bin/salvageserver
199         ${INSTALL_PROGRAM} dafssync-debug \
200                 ${DEST}/root.server/usr/afs/bin/dafssync-debug
201         ${INSTALL_PROGRAM} salvsync-debug \
202                 ${DEST}/root.server/usr/afs/bin/salvsync-debug
203
204 clean:
205         $(LT_CLEAN)
206         $(RM) -f *.o salvageserver core AFS_component_version_number.c dafssync-debug salvsync-debug dasalvager
207
208 include ../config/Makefile.version