Remove tsalvaged warning inhibition
[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 INSTALL = @INSTALL@
14 INSTALL_DATA = @INSTALL_DATA@
15 INSTALL_PROGRAM = @INSTALL_PROGRAM@
16 INSTALL_SCRIPT = @INSTALL_SCRIPT@
17
18 CC=${MT_CC}
19 CFLAGS=${COMMON_CFLAGS} -I.. -DNINTERFACE ${MT_CFLAGS} -DRXDEBUG -DFSSYNC_BUILD_CLIENT \
20         -DSALVSYNC_BUILD_SERVER -DSALVSYNC_BUILD_CLIENT -DAFS_DEMAND_ATTACH_FS
21 SCFLAGS=${COMMON_CFLAGS} -I.. -DNINTERFACE ${XCFLAGS} ${ARCHFLAGS} -DRXDEBUG -DFSSYNC_BUILD_CLIENT
22
23 CCRULE=${CC} ${CFLAGS} -c $?
24 SCCRULE=${CC} ${SCFLAGS} -c $? -o $@
25
26 VICED=../viced
27 VLSERVER=../vlserver
28 LWP=../lwp
29 LIBACL=../libacl
30 UTIL=../util
31 DIR=../dir
32 VOL=../vol
33 FSINT=../fsint
34
35 SALVAGEDOBJS=salvaged.o vol-salvage.o physio.o
36 SALVAGEROBJS=salvager.o svol-salvage.o sphysio.o
37
38 DIROBJS=buffer.o dir.o salvage.o
39
40 LWPOBJS=lock.o threadname.o
41
42 UTILOBJS=assert.o uuid.o serverLog.o fileutil.o netutils.o dirpath.o volparse.o flipbase64.o softsig.o fstab.o
43
44 VLIBOBJS=volume.o vnode.o vutil.o partition.o fssync-client.o \
45          clone.o nuke.o devname.o listinodes.o ihandle.o \
46          namei_ops.o salvsync-server.o salvsync-client.o daemon_com.o
47
48 OBJECTS= ${SALVAGEDOBJS} ${UTILOBJS} ${VLIBOBJS} ${DIROBJS} ${LWPOBJS}
49 SOBJECTS= ${SALVAGEROBJS}
50
51 FSSDEBUG_OBJS = fssync-debug.o physio.o common.o ${UTILOBJS} ${VLIBOBJS} ${DIROBJS} ${LWPOBJS}
52
53 SSSDEBUG_OBJS = salvsync-debug.o physio.o common.o ${UTILOBJS} ${VLIBOBJS} ${DIROBJS} ${LWPOBJS}
54
55 LIBS=${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/util.a ${TOP_LIBDIR}/libcmd.a
56
57 SLIBS=${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/libdir.a \
58         ${TOP_LIBDIR}/libvlib.a ${TOP_LIBDIR}/liblwp.a \
59         ${TOP_LIBDIR}/libacl.a  ${TOP_LIBDIR}/util.a
60
61 all: salvageserver fssync-debug salvsync-debug dasalvager
62
63 salvaged.o: ${VOL}/salvaged.c
64         ${CCRULE}
65
66 salvager.o: ${VOL}/salvager.c
67         ${SCCRULE}
68
69 vol-salvage.o: ${VOL}/vol-salvage.c
70         ${CCRULE}
71
72 svol-salvage.o: ${VOL}/vol-salvage.c
73         ${SCCRULE}
74
75 physio.o: ${VOL}/physio.c
76         ${CCRULE}
77
78 sphysio.o: ${VOL}/physio.c
79         ${SCCRULE}
80
81 fssync-debug.o: ${VOL}/fssync-debug.c
82         ${CCRULE}
83
84 salvsync-debug.o: salvsync-debug.c
85         ${CCRULE}
86
87 assert.o: ${UTIL}/assert.c
88         ${CCRULE}
89
90 uuid.o: ${UTIL}/uuid.c
91         ${CCRULE}
92
93 serverLog.o: ${UTIL}/serverLog.c
94         ${CCRULE}
95
96 fileutil.o: ${UTIL}/fileutil.c
97         ${CCRULE}
98
99 volparse.o: ${UTIL}/volparse.c
100         ${CCRULE}
101
102 flipbase64.o: ${UTIL}/flipbase64.c
103         ${CCRULE}
104
105 netutils.o: ${UTIL}/netutils.c
106         ${CCRULE} -I ../util
107
108 dirpath.o: ${UTIL}/dirpath.c
109         ${CCRULE}
110
111 softsig.o: ${UTIL}/softsig.c
112         ${CCRULE}
113
114 buffer.o: ${DIR}/buffer.c
115         ${CCRULE}
116
117 dir.o: ${DIR}/dir.c
118         ${CCRULE}
119
120 salvage.o: ${DIR}/salvage.c
121         ${CCRULE}
122
123 lock.o: ${LWP}/lock.c
124         ${CCRULE}
125
126 threadname.o: ${LWP}/threadname.c
127         ${CCRULE}
128
129 vnode.o: ${VOL}/vnode.c
130         ${CCRULE}
131
132 volume.o: ${VOL}/volume.c
133         ${CCRULE}
134
135 vutil.o: ${VOL}/vutil.c
136         ${CCRULE}
137
138 partition.o: ${VOL}/partition.c
139         ${CCRULE}
140
141 fssync-client.o: ${VOL}/fssync-client.c
142         ${CCRULE}
143
144 salvsync-server.o: ${VOL}/salvsync-server.c
145         ${CCRULE}
146
147 salvsync-client.o: ${VOL}/salvsync-client.c
148         ${CCRULE}
149
150 daemon_com.o: ${VOL}/daemon_com.c
151         ${CCRULE}
152
153 clone.o: ${VOL}/clone.c
154         ${CCRULE}
155
156 nuke.o: ${VOL}/nuke.c
157         ${CCRULE}
158
159 devname.o: ${VOL}/devname.c
160         ${CCRULE}
161
162 # only for darwin?
163 fstab.o: ${UTIL}/fstab.c
164         ${CCRULE}
165
166 common.o: ${VOL}/common.c
167         ${CCRULE}
168
169 listinodes.o: ${VOL}/listinodes.c
170         ${CCRULE}
171
172 ihandle.o: ${VOL}/ihandle.c
173         ${CCRULE}
174
175 namei_ops.o: ${VOL}/namei_ops.c
176         ${CCRULE}
177
178 salvageserver: ${OBJECTS} ${LIBS}
179         ${CC} ${LDFLAGS} -o salvageserver ${OBJECTS} ${LIBS} ${MT_LIBS} ${XLIBS}
180
181 dasalvager: ${SOBJECTS} ${SLIBS}
182         ${CC} ${LDFLAGS} -o dasalvager ${SOBJECTS} ${SLIBS} ${XLIBS}
183
184 fssync-debug: ${FSSDEBUG_OBJS} ${LIBS}
185         ${CC} ${LDFLAGS} -o fssync-debug ${FSSDEBUG_OBJS} ${LIBS} ${MT_LIBS} ${XLIBS}
186
187 salvsync-debug: ${SSSDEBUG_OBJS} ${LIBS}
188         ${CC} ${LDFLAGS} -o salvsync-debug ${SSSDEBUG_OBJS} ${LIBS} ${MT_LIBS} ${XLIBS}
189
190 install: salvageserver fssync-debug salvsync-debug dasalvager
191         ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
192         ${INSTALL} -d ${DESTDIR}${afssrvsbindir}
193         ${INSTALL_PROGRAM} dasalvager \
194                 ${DESTDIR}${afssrvlibexecdir}/dasalvager
195         ${INSTALL_PROGRAM} salvageserver \
196                 ${DESTDIR}${afssrvlibexecdir}/salvageserver
197         ${INSTALL_PROGRAM} fssync-debug \
198                 ${DESTDIR}${afssrvsbindir}/fssync-debug
199         ${INSTALL_PROGRAM} salvsync-debug \
200                 ${DESTDIR}${afssrvsbindir}/salvsync-debug
201
202 dest: salvageserver fssync-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} fssync-debug \
209                 ${DEST}/root.server/usr/afs/bin/fssync-debug
210         ${INSTALL_PROGRAM} salvsync-debug \
211                 ${DEST}/root.server/usr/afs/bin/salvsync-debug
212
213 clean:
214         $(RM) -f *.o salvageserver core AFS_component_version_number.c fssync-debug salvsync-debug dasalvager
215
216 include ../config/Makefile.version