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