Remove NINTERFACE define
[openafs.git] / src / viced / 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 include @TOP_OBJDIR@/src/config/Makefile.lwp
13 INSTALL = @INSTALL@
14 INSTALL_DATA = @INSTALL_DATA@
15 INSTALL_PROGRAM = @INSTALL_PROGRAM@
16 INSTALL_SCRIPT = @INSTALL_SCRIPT@
17 HELPER_SPLINT=@HELPER_SPLINT@
18
19 LIBS=${TOP_LIBDIR}/libacl.a     \
20         ${TOP_LIBDIR}/libvldb.a \
21         ${TOP_LIBDIR}/libprot.a \
22         ${TOP_LIBDIR}/libauth.a \
23         ${TOP_LIBDIR}/librxkad.a                \
24         ${TOP_LIBDIR}/libubik.a                 \
25         ${TOP_LIBDIR}/vlib.a            \
26         ${TOP_LIBDIR}/libdir.a  \
27         ${TOP_LIBDIR}/util.a            \
28         ${TOP_LIBDIR}/libsys.a  \
29         ${TOP_LIBDIR}/libafsint.a       \
30         ${TOP_LIBDIR}/librxstat.a       \
31         ${TOP_LIBDIR}/librx.a           \
32         ${TOP_LIBDIR}/libsys.a  \
33         ${TOP_LIBDIR}/libcom_err.a      \
34         ${TOP_LIBDIR}/liblwp.a \
35         ${TOP_LIBDIR}/libafsutil.a \
36         ${TOP_LIBDIR}/libafshcrypto_lwp.a
37
38 headers=${TOP_INCDIR}/lwp.h             \
39         ${TOP_INCDIR}/afs/acl.h \
40         ${TOP_INCDIR}/afs/errors.h      \
41         ${TOP_INCDIR}/afs/ptclient.h \
42         ${TOP_INCDIR}/lock.h            \
43         ${TOP_INCDIR}/afs/volume.h      \
44         ${TOP_INCDIR}/afs/vnode.h       \
45         ${TOP_INCDIR}/rx/rx.h   \
46         ${TOP_INCDIR}/rx/xdr.h  \
47         ${TOP_INCDIR}/afs/auth.h        \
48         ${TOP_INCDIR}/afs/afsint.h      \
49         viced.h                         \
50         host.h                          \
51         callback.h                      \
52         fs_stats.h
53
54 objects=viced.o         \
55         afsfileprocs.o  \
56         host.o          \
57         physio.o        \
58         callback.o      
59
60 all: cbd fsprobe check_sysid fileserver ${TOP_INCDIR}/afs/fs_stats.h
61
62 ${TOP_INCDIR}/afs/fs_stats.h: fs_stats.h
63         ${INSTALL_DATA} $? $@
64
65 ${objects}: ${headers}
66
67 viced.o: AFS_component_version_number.o
68
69 check_sysid: check_sysid.c
70         ${CC} ${AFS_CFLAGS} ${AFS_LDFLAGS} -o check_sysid \
71                 ${srcdir}/check_sysid.c
72
73 fileserver: ${objects} ${headers} ${LIBS}
74         set -x; \
75         case ${SYS_NAME} in \
76         rs_aix*) \
77             ${CC} -K ${AFS_LDFLAGS} -o fileserver ${objects} \
78                 ${TOP_LIBDIR}/libaudit.a ${LIBS} $(LIB_roken) ${XLIBS} ;; \
79         *) \
80             $(AFS_LDRULE) ${objects} ${TOP_LIBDIR}/libaudit.a \
81                 ${LIBS} $(LIB_roken) ${XLIBS} ;; \
82         esac
83
84 fsprobe.o: fsprobe.c AFS_component_version_number.c
85
86 fsprobe: fsprobe.o
87         $(AFS_LDRULE) fsprobe.o ${LIBS} $(LIB_roken) ${XLIBS}
88
89 CFLAGS_cbd.o = -DINTERPRET_DUMP
90 cbd.o: callback.c AFS_component_version_number.c
91         $(AFS_CCRULE) $(srcdir)/callback.c
92
93 cbd: cbd.o
94         $(AFS_LDRULE) cbd.o ${LIBS} $(LIB_roken) ${XLIBS}
95
96 install: fileserver fs_stats.h
97         ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
98         ${INSTALL} -d ${DESTDIR}${includedir}/afs
99         ${INSTALL_DATA} ${srcdir}/fs_stats.h ${DESTDIR}${includedir}/afs/fs_stats.h
100         @case ${SYS_NAME} in \
101         alpha_dux4*|*linux*|rs_aix*|sgi_6*|sun4x*|sunx86*) \
102                 echo "Don't install fileserver for ${SYS_NAME}" ;; \
103         *_darwin_[1-6][0-9]) \
104                 echo ${INSTALL} fileserver ${DESTDIR}${afssrvlibexecdir}/fileserver ; \
105                 ${INSTALL} fileserver ${DESTDIR}${afssrvlibexecdir}/fileserver ;; \
106         *_darwin_*) \
107                 echo "Don't install fileserver for ${SYS_NAME}" ;; \
108         *) \
109                 echo ${INSTALL} fileserver ${DESTDIR}${afssrvlibexecdir}/fileserver ; \
110                 ${INSTALL} fileserver ${DESTDIR}${afssrvlibexecdir}/fileserver ;; \
111         esac
112
113 dest: fileserver fs_stats.h
114         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
115         ${INSTALL} -d ${DEST}/include/afs
116         ${INSTALL_DATA} ${srcdir}/fs_stats.h ${DEST}/include/afs/fs_stats.h
117         @case ${SYS_NAME} in \
118         alpha_dux4*|*linux*|rs_aix*|sgi_6*|sun4x*|sunx86*) \
119                 echo "Don't install fileserver for ${SYS_NAME}" ;; \
120         *_darwin_[1-6][0-9]) \
121                 echo ${INSTALL} fileserver ${DEST}/root.server/usr/afs/bin/fileserver ; \
122                 ${INSTALL} fileserver ${DEST}/root.server/usr/afs/bin/fileserver ;; \
123         *_darwin_*) \
124                 echo "Don't install fileserver for ${SYS_NAME}" ;; \
125         *) \
126                 echo ${INSTALL} fileserver ${DEST}/root.server/usr/afs/bin/fileserver ; \
127                 ${INSTALL} fileserver ${DEST}/root.server/usr/afs/bin/fileserver ;; \
128         esac
129
130 clean:
131         $(RM) -f *.o fileserver core AFS_component_version_number.c cbd check_sysid fsprobe
132
133 include ../config/Makefile.version
134 check-splint::
135         sh $(HELPER_SPLINT) $(CFLAGS) \
136             viced.c             \
137             afsfileprocs.c      \
138             host.c              \
139             physio.c    \
140             callback.c
141