macos-fstab-fun-so-fileserver-works-20040401
[openafs.git] / src / tviced / 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
10 srcdir=@srcdir@
11 include @TOP_OBJDIR@/src/config/Makefile.config
12
13 CC=${MT_CC}
14 CFLAGS=${COMMON_CFLAGS} -I.. -DNINTERFACE ${MT_CFLAGS} -DRXDEBUG
15
16 CCRULE=${CC} ${CFLAGS} -c $?
17
18 VICED=../viced
19 VLSERVER=../vlserver
20 LWP=../lwp
21 LIBACL=../libacl
22 UTIL=../util
23 DIR=../dir
24 VOL=../vol
25 FSINT=../fsint
26
27 VICEDOBJS=viced.o afsfileprocs.o host.o physio.o callback.o     
28
29 VLSERVEROBJS=vldbint.cs.o vldbint.xdr.o
30
31 LWPOBJS=lock.o fasttime.o threadname.o
32
33 LIBACLOBJS=aclprocs.o netprocs.o
34
35 UTILOBJS=assert.o uuid.o serverLog.o fileutil.o netutils.o dirpath.o volparse.o flipbase64.o softsig.o
36
37 DIROBJS=buffer.o dir.o salvage.o
38
39 VOLOBJS= vnode.o volume.o vutil.o partition.o fssync.o purge.o \
40          clone.o devname.o common.o ihandle.o listinodes.o namei_ops.o \
41          fstab.o
42
43 FSINTOBJS= afsaux.o afscbint.cs.o afsint.ss.o afsint.xdr.o
44
45 objects= ${VICEDOBJS} ${VLSERVEROBJS} ${LWPOBJS} ${LIBACLOBJS} \
46          ${UTILOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS}
47
48 LIBS=${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/util.a
49
50 all: fileserver
51
52 viced.o: ${VICED}/viced.c
53         ${CCRULE}
54
55 afsfileprocs.o: ${VICED}/afsfileprocs.c
56         ${CCRULE}
57
58 host.o: ${VICED}/host.c
59         ${CCRULE}
60
61 physio.o: ${VICED}/physio.c
62         ${CCRULE}
63
64 callback.o: ${VICED}/callback.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 lock.o: ${LWP}/lock.c
95         ${CCRULE}
96
97 fasttime.o: ${LWP}/fasttime.c
98         ${CCRULE}
99
100 threadname.o: ${LWP}/threadname.c
101         ${CCRULE}
102
103 aclprocs.o: ${LIBACL}/aclprocs.c
104         ${CCRULE}
105
106 netprocs.o: ${LIBACL}/netprocs.c
107         ${CCRULE}
108
109 vldbint.cs.o: ${VLSERVER}/vldbint.cs.c
110         ${CCRULE}
111
112 vldbint.xdr.o: ${VLSERVER}/vldbint.xdr.c
113         ${CCRULE}
114
115 buffer.o: ${DIR}/buffer.c
116         ${CCRULE}
117
118 dir.o: ${DIR}/dir.c
119         ${CCRULE}
120
121 salvage.o: ${DIR}/salvage.c
122         ${CCRULE}
123
124 vnode.o: ${VOL}/vnode.c
125         ${CCRULE}
126
127 volume.o: ${VOL}/volume.c
128         ${CCRULE}
129
130 vutil.o: ${VOL}/vutil.c
131         ${CCRULE}
132
133 partition.o: ${VOL}/partition.c
134         ${CCRULE}
135
136 fssync.o: ${VOL}/fssync.c
137         ${CCRULE}
138
139 purge.o: ${VOL}/purge.c
140         ${CCRULE}
141
142 clone.o: ${VOL}/clone.c
143         ${CCRULE}
144
145 nuke.o: ${VOL}/nuke.c
146         ${CCRULE}
147
148 devname.o: ${VOL}/devname.c
149         ${CCRULE}
150
151 # only for darwin
152 fstab.o: ${VOL}/fstab.c
153         ${CCRULE}
154
155 common.o: ${VOL}/common.c
156         ${CCRULE}
157
158 listinodes.o: ${VOL}/listinodes.c
159         ${CCRULE}
160
161 ihandle.o: ${VOL}/ihandle.c
162         ${CCRULE}
163
164 namei_ops.o: ${VOL}/namei_ops.c
165         ${CCRULE}
166
167 afsaux.o: ${FSINT}/afsaux.c
168         ${CCRULE}
169
170 afscbint.cs.o: ${FSINT}/afscbint.cs.c
171         ${CCRULE}
172
173 afscbint.ss.o: ${FSINT}/afscbint.ss.c
174         ${CCRULE}
175
176 afsint.cs.o: ${FSINT}/afsint.cs.c
177         ${CCRULE}
178
179 afsint.ss.o: ${FSINT}/afsint.ss.c
180         ${CCRULE}
181
182 afsint.xdr.o: ${FSINT}/afsint.xdr.c
183         ${CCRULE}
184
185 fileserver: ${objects} ${LIBS}
186         ${CC} ${LDFLAGS} -o fileserver ${objects} ${LIBS} ${MT_LIBS} ${XLIBS}
187
188 ${DEST}/root.server/usr/afs/bin/fileserver: fileserver
189         ${INSTALL} -ns $? $@
190
191 install: ${DESTDIR}${afssrvlibexecdir}/fileserver
192
193 clean:
194         $(RM) -f *.o fileserver core AFS_component_version_number.c
195
196 include ../config/Makefile.version
197
198 ${DESTDIR}${afssrvlibexecdir}/fileserver: fileserver
199         ${INSTALL} -ns $? $@
200
201 dest: ${DEST}/root.server/usr/afs/bin/fileserver
202