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
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
15 include ../config/Makefile.${SYS_NAME}
18 CFLAGS = -DNINTERFACE ${DBUG} \
19 -I${TOP_SRCDIR}/config -I. -I${SRCDIR}include -I${SRCDIR}include/afs \
21 LDFLAGS = ${DBUG} ${XLDFLAGS}
23 UTILLIB=${SRCDIR}lib/afs/util.a
24 auditlib=${SRCDIR}lib/afs/libaudit.a
26 LIBS= ${SRCDIR}lib/afs/libacl.a \
27 ${SRCDIR}lib/afs/libvldb.a \
28 ${SRCDIR}lib/afs/libprot.a \
29 ${SRCDIR}lib/afs/libauth.a \
30 ${SRCDIR}lib/librxkad.a \
31 ${SRCDIR}lib/libubik.a \
32 ${SRCDIR}lib/afs/vlib.a \
33 ${SRCDIR}lib/afs/libdir.a \
35 ${SRCDIR}lib/afs/libsys.a \
36 ${SRCDIR}lib/afs/libafsint.a \
37 ${SRCDIR}lib/librxstat.a \
38 ${SRCDIR}lib/librx.a \
39 ${SRCDIR}lib/afs/libsys.a \
40 ${SRCDIR}lib/libdes.a \
41 ${SRCDIR}lib/afs/libcom_err.a \
42 ${SRCDIR}lib/afs/util.a \
45 headers=${SRCDIR}include/lwp.h \
46 ${SRCDIR}include/afs/acl.h \
47 ${SRCDIR}include/afs/errors.h \
48 ${SRCDIR}include/afs/ptclient.h \
49 ${SRCDIR}include/lock.h \
50 ${SRCDIR}include/afs/volume.h \
51 ${SRCDIR}include/afs/vnode.h \
52 ${SRCDIR}include/rx/rx.h \
53 ${SRCDIR}include/rx/xdr.h \
54 ${SRCDIR}include/afs/auth.h \
55 ${SRCDIR}include/afs/afsint.h \
66 include ../config/Makefile.version
70 all: cbd fsprobe check_sysid
73 viced.o: AFS_component_version_number.o
75 check_sysid: check_sysid.c
76 ${CC} ${CFLAGS} -IDEST/include -o check_sysid check_sysid.c
78 fileserver: viced.o ${objects} ${headers} ${LIBS}
82 ${CC} ${LDFLAGS} -o fileserver ${objects} \
83 ${auditlib} ${LIBS} ${XLIBS} ;; \
85 ${CC} -K ${LDFLAGS} -o fileserver ${objects} \
86 ${auditlib} ${LIBS} ${XLIBS} ;; \
88 ${CC} ${LDFLAGS} -o fileserver ${objects} \
89 ${auditlib} ${LIBS} ${XLIBS} ;; \
92 fsprobe.o: fsprobe.c AFS_component_version_number.c
93 ${CC} ${CFLAGS} -DINTERPRET_DUMP -c fsprobe.c
96 ${CC} ${CFLAGS} -o fsprobe fsprobe.o ${LIBS} ${XLIBS}
98 cbd.o: callback.c AFS_component_version_number.c
99 ${CC} ${CFLAGS} -DINTERPRET_DUMP -c -o cbd.o callback.c
102 ${CC} ${CFLAGS} -DINTERPRET_DUMP -o cbd cbd.o ${LIBS} ${XLIBS}
105 lint -uvn -I${SRCDIR}include viced.c afsfileprocs.c host.c physio.c callback.c ${SRCDIR}lib/afs/llib-lutil.ln
107 ${DESTDIR}root.server/usr/afs/bin/fileserver : fileserver
108 @case ${SYS_NAME} in \
109 alpha_dux4*|*linux*|rs_aix*|sgi_6*|sun4x*) \
110 echo "Don't install fileserver for ${SYS_NAME}" ;; \
112 echo ${INSTALL} -ns fileserver ${DESTDIR}root.server/usr/afs/bin/fileserver ; \
113 ${INSTALL} -ns fileserver ${DESTDIR}root.server/usr/afs/bin/fileserver ;; \
116 install: all ${DESTDIR}root.server/usr/afs/bin/fileserver
117 ${INSTALL} fs_stats.h ${DESTDIR}/include/afs
122 rm -f *.o llib-lvice.ln fileserver core AFS_component_version_number.c cbd check_sysid fsprobe