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