1 # Copyright 2000, International Business Machines Corporation and others.
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
9 include @TOP_OBJDIR@
/src
/config
/Makefile.config
11 INSTALL_DATA
= @INSTALL_DATA@
12 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
13 INSTALL_SCRIPT
= @INSTALL_SCRIPT@
14 HELPER_SPLINT
=@HELPER_SPLINT@
17 VINCLS
=${TOP_INCDIR}/afs
/partition.h
${TOP_INCDIR}/afs
/volume.h \
18 ${TOP_INCDIR}/afs
/vlserver.h vol.h dump.h volser.h lockdata.h \
21 RINCLS
=${TOP_INCDIR}/rx
/rx.h
${TOP_INCDIR}/rx
/xdr.h \
22 ${TOP_INCDIR}/afs
/keys.h
${TOP_INCDIR}/afs
/cellconfig.h \
23 ${TOP_INCDIR}/ubik.h
${TOP_INCDIR}/afs
/cmd.h
25 INTINCLS
=volint.h volser.h volser_prototypes.h volser_internal.h
28 ${TOP_LIBDIR}/libaudit.a \
29 ${TOP_LIBDIR}/vlib.a \
30 ${TOP_LIBDIR}/libacl.a \
31 ${TOP_LIBDIR}/libsys.a \
32 ${TOP_LIBDIR}/libvldb.a \
33 ${TOP_LIBDIR}/libubik.a \
34 ${TOP_LIBDIR}/libauth.a \
35 ${TOP_LIBDIR}/libcmd.a \
36 ${TOP_LIBDIR}/librxkad.a \
37 ${TOP_LIBDIR}/libdes.a \
38 ${TOP_LIBDIR}/librxstat.a \
39 ${TOP_LIBDIR}/librx.a \
40 ${TOP_LIBDIR}/liblwp.a \
41 ${TOP_LIBDIR}/libsys.a \
42 ${TOP_LIBDIR}/libafscom_err.a \
43 ${TOP_LIBDIR}/libkauth.a \
44 ${TOP_LIBDIR}/libusd.a \
51 ${TOP_LIBDIR}/libcmd.a \
52 ${TOP_LIBDIR}/util.a \
53 ${TOP_LIBDIR}/libafscom_err.a \
54 ${TOP_LIBDIR}/libdir.a \
55 ${TOP_LIBDIR}/librx.a \
56 ${TOP_LIBDIR}/liblwp.a \
57 ${TOP_LIBDIR}/libsys.a \
58 ${TOP_LIBDIR}/libacl.a
60 VSOBJS
=vsprocs.o vsutils.o lockprocs.o volint.xdr.o volerr.o
61 SOBJS
=volmain.o volprocs.o physio.o common.o voltrans.o volerr.o \
62 volint.cs.o dumpstuff.o volint.ss.o volint.xdr.o vol_split.o
64 all: volserver vos restorevol voldump \
65 ${TOP_INCDIR}/afs
/volser.h \
66 ${TOP_INCDIR}/afs
/vsutils_prototypes.h \
67 ${TOP_INCDIR}/afs
/volser_prototypes.h \
68 ${TOP_INCDIR}/afs
/volint.h \
69 ${TOP_LIBDIR}/libvolser.a
71 generated
: volser.h volerr.c volint.cs.c volint.ss.c volint.xdr.c volint.h
73 ${TOP_INCDIR}/afs
/vsutils_prototypes.h
: vsutils_prototypes.h
76 ${TOP_INCDIR}/afs
/volser_prototypes.h
: volser_prototypes.h
79 ${TOP_INCDIR}/afs
/volser.h
: volser.h
82 ${TOP_INCDIR}/afs
/volint.h
: volint.h
85 ${TOP_LIBDIR}/libvolser.a
: libvolser.a
88 restorevol
: restorevol.c
89 ${CC} ${CFLAGS} -o restorevol
${srcdir}/restorevol.c \
90 ${TOP_LIBDIR}/libcmd.a
${TOP_LIBDIR}/util.a
${XLIBS}
92 vos
: vos.o
${VSOBJS} libvolser.a
${LIBS}
93 ${CC} ${LDFLAGS} -o vos vos.o
$(VSOBJS
) libvolser.a
${LIBS} ${XLIBS} ${KRB5_LIBS}
95 volserver
: $(SOBJS
) $(LIBS
) ${TOP_LIBDIR}/libdir.a
96 ${CC} ${DBUG} -o volserver
$(SOBJS
) ${TOP_LIBDIR}/libdir.a \
97 ${LDFLAGS} $(LIBS
) ${XLIBS} ${KRB5_LIBS}
99 voldump
: vol-dump.o
${VOLDUMP_LIBS}
100 ${CC} ${CFLAGS} -o voldump vol-dump.o
${VOLDUMP_LIBS} ${XLIBS}
102 libvolser.a
: volint.cs.o
$(VSOBJS
) volint.ss.o AFS_component_version_number.o
104 $(AR
) crv
$@ volint.cs.o
$(VSOBJS
) volint.ss.o AFS_component_version_number.o
110 ${COMPILE_ET_C} -p
${srcdir} volerr
112 volser.h
: volerr.et volser.p.h
113 ${COMPILE_ET_H} -p
${srcdir} volerr
-h volser
116 dumpstuff.o
: volser.h
117 lockprocs.o
: volser.h
121 vol_split.o
: volser.h
127 volint.cs.c
: volint.xg
128 ${RXGEN} -A
-x
-C
-o
$@
${srcdir}/volint.xg
130 volint.ss.c
: volint.xg
131 ${RXGEN} -A
-x
-S
-o
$@
${srcdir}/volint.xg
133 volint.xdr.c
: volint.xg
134 ${RXGEN} -A
-x
-c
-o
$@
${srcdir}/volint.xg
137 ${RXGEN} -A
-x
-h
-o
$@
${srcdir}/volint.xg
139 volint.cs.c
: volint.h
140 volint.ss.c
: volint.h
141 volint.xdr.c
: volint.h
146 volint.cs.o
: volint.cs.c
${INTINCLS}
147 volint.ss.o
: volint.ss.c
${INTINCLS}
148 volint.xdr.o
: volint.xdr.c
${INTINCLS}
149 vsutils.o
: vsutils.c
${VINCLS} ${RINCLS} ${INTINCLS}
150 volmain.o
: volmain.c
${VINCLS} ${RINCLS} ${INTINCLS} AFS_component_version_number.c
151 volprocs.o
: volprocs.c
${VINCLS} ${RINCLS} ${INTINCLS}
152 dumpstuff.o
: dumpstuff.c
${VINCLS} ${RINCLS} ${INTINCLS}
153 voldump.o
: voldump.c
${VINCLS} ${RINCLS}
154 vos.o
: vos.c
${VINCLS} ${RINCLS} ${INTINCLS} AFS_component_version_number.c
155 vsprocs.o
: vsprocs.c
${VINCLS} ${RINCLS} ${INTINCLS}
156 physio.o
: physio.c
${VINCLS}
157 common.o
: common.c
${VINCLS}
158 lockprocs.o
: lockprocs.c
${VINCLS} ${INTINCLS} ${RINCLS}
159 vol_split.o
: vol_split.c
${VINCLS} ${INTINCLS} ${RINCLS}
160 restorevol.o
: restorevol.c
${VINCLS} ${INTINCLS}
161 voltrans.o
: voltrans.c
${VINCLS} ${INTINCLS} ${RINCLS}
162 vol-dump.o
: vol-dump.c
${VINCLS} ${INTINCLS} ${RINCLS}
165 # Installation targets
167 install: restorevol voldump volser.h volint.h vos volserver libvolser.a
168 ${INSTALL} -d
${DESTDIR}${sbindir}
169 ${INSTALL} -d
${DESTDIR}${afssrvsbindir}
170 ${INSTALL} -d
${DESTDIR}${includedir}/afs
171 ${INSTALL} -d
${DESTDIR}${libdir}/afs
172 ${INSTALL} -d
${DESTDIR}${afssrvlibexecdir}
173 ${INSTALL_PROGRAM} restorevol
${DESTDIR}${bindir}/restorevol
174 ${INSTALL_PROGRAM} voldump
${DESTDIR}${sbindir}/voldump
175 ${INSTALL_DATA} volser.h
${DESTDIR}${includedir}/afs
/volser.h
176 ${INSTALL_DATA} volint.h
${DESTDIR}${includedir}/afs
/volint.h
177 ${INSTALL_DATA} ${srcdir}/vsutils_prototypes.h
${DESTDIR}${includedir}/afs
/vsutils_prototypes.h
178 ${INSTALL_PROGRAM} vos
${DESTDIR}${sbindir}/vos
179 ${INSTALL_PROGRAM} vos
${DESTDIR}${afssrvsbindir}/vos
180 ${INSTALL_DATA} libvolser.a
${DESTDIR}${libdir}/afs
/libvolser.a
181 @case
${SYS_NAME} in \
182 alpha_dux4
*|
*linux
*|rs_aix
*|sgi_6
*|sun4x
*|sunx86
*) \
183 echo
"Don't install volserver for ${SYS_NAME}" ;; \
184 *_darwin_
[1-6][0-9]) \
185 echo
${INSTALL} volserver \
186 ${DESTDIR}${afssrvlibexecdir}/volserver
; \
187 ${INSTALL} volserver \
188 ${DESTDIR}${afssrvlibexecdir}/volserver
;; \
190 echo
"Don't install volserver for ${SYS_NAME}" ;; \
192 echo
${INSTALL_PRORAM} volserver \
193 ${DESTDIR}${afssrvlibexecdir}/volserver
; \
194 ${INSTALL} volserver \
195 ${DESTDIR}${afssrvlibexecdir}/volserver
;; \
198 dest
: restorevol voldump volser.h volint.h vos volserver libvolser.a
199 ${INSTALL} -d
${DEST}/etc
200 ${INSTALL} -d
${DEST}/include/afs
201 ${INSTALL} -d
${DEST}/lib
/afs
202 ${INSTALL} -d
${DEST}/root.server
/usr
/afs
/bin
203 ${INSTALL_PROGRAM} restorevol
${DEST}/root.server
/usr
/afs
/bin
/restorevol
204 ${INSTALL_PROGRAM} voldump
${DEST}/etc
/voldump
205 ${INSTALL_DATA} volser.h
${DEST}/include/afs
/volser.h
206 ${INSTALL_DATA} volint.h
${DEST}/include/afs
/volint.h
207 ${INSTALL_DATA} ${srcdir}/vsutils_prototypes.h
${DEST}/include/afs
/vsutils_prototypes.h
208 ${INSTALL_PROGRAM} vos
${DEST}/etc
/vos
209 ${INSTALL_PROGRAM} vos
${DEST}/root.server
/usr
/afs
/bin
/vos
210 ${INSTALL_DATA} libvolser.a
${DEST}/lib
/afs
/libvolser.a
211 @case
${SYS_NAME} in \
212 alpha_dux4
*|
*linux
*|rs_aix
*|sgi_6
*|sun4x
*|sunx86
*) \
213 echo
"Don't install volserver for ${SYS_NAME}" ;; \
214 *_darwin_
[1-6][0-9]) \
215 echo
${INSTALL} volserver \
216 ${DEST}/root.server
/usr
/afs
/bin
/volserver
; \
217 ${INSTALL} -ns volserver \
218 ${DEST}/root.server
/usr
/afs
/bin
/volserver
;; \
220 echo
"Don't install volserver for ${SYS_NAME}" ;; \
222 echo
${INSTALL} volserver \
223 ${DEST}/root.server
/usr
/afs
/bin
/volserver
; \
224 ${INSTALL} volserver \
225 ${DEST}/root.server
/usr
/afs
/bin
/volserver
;; \
232 $(RM
) -f
*.o
*.a core volserver volint.ss.c volint.cs.c volint.h \
233 volint.xdr.c vos volser.h volerr.c AFS_component_version_number.c restorevol voldump
236 sh
$(HELPER_SPLINT
) $(CFLAGS
) \
238 vsprocs.c vsutils.c lockprocs.c volerr.c \
239 volmain.c volprocs.c physio.c common.c voltrans.c \
240 dumpstuff.c vol_split.c
242 include ..
/config
/Makefile.version