Build system: MT_LIBS includes XLIBS
[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.pthread
13
14
15 MODULE_CFLAGS = -DRXDEBUG -DFSSYNC_BUILD_SERVER -DSALVSYNC_BUILD_CLIENT
16
17 DIR=$(srcdir)/../dir
18 VOL=$(srcdir)/../vol
19
20 VICEDOBJS=viced.o afsfileprocs.o host.o physio.o callback.o serialize_state.o \
21           fsstats.o
22
23 DIROBJS=buffer.o dir.o salvage.o
24
25 VOLOBJS= vnode.o volume.o vutil.o partition.o fssync-server.o \
26          clone.o devname.o common.o ihandle.o listinodes.o namei_ops.o \
27          salvsync-client.o daemon_com.o vg_cache.o vg_scan.o
28
29 FSINTOBJS = afsint.ss.o
30
31 objects= ${VICEDOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS}
32
33 LIBS= \
34      $(top_builddir)/src/vlserver/liboafs_vldb.la \
35      $(top_builddir)/src/rxkad/liboafs_rxkad.la \
36      $(top_builddir)/src/rxstat/liboafs_rxstat.la \
37      $(top_builddir)/src/lwp/liboafs_lwpcompat.la \
38      $(top_builddir)/src/libacl/liboafs_acl.la \
39      $(top_builddir)/src/fsint/liboafs_fsint.la \
40      $(top_builddir)/src/cmd/liboafs_cmd.la \
41      $(top_builddir)/src/opr/liboafs_opr.la \
42      $(top_builddir)/src/util/liboafs_util.la
43
44 all: cbd fsprobe check_sysid fileserver ${TOP_INCDIR}/afs/fs_stats.h
45
46 ${TOP_INCDIR}/afs/fs_stats.h: fs_stats.h
47         ${INSTALL_DATA} $? $@
48
49 check_sysid: check_sysid.o
50         $(LT_LDRULE_static) check_sysid.o \
51                 ${LIBS} $(LIB_hcrypto) $(LIB_roken) $(MT_LIBS) ${XLIBS}
52
53 fsprobe.o: fsprobe.c AFS_component_version_number.c
54
55 fsprobe: fsprobe.o
56         $(LT_LDRULE_static) fsprobe.o \
57                 ${LIBS} $(LIB_hcrypto) $(LIB_roken) $(MT_LIBS)
58
59 CFLAGS_cbd.o = -DINTERPRET_DUMP
60 cbd.o: callback.c AFS_component_version_number.c
61         $(AFS_CCRULE) $(srcdir)/callback.c
62
63 cbd: cbd.o
64         $(LT_LDRULE_static) cbd.o ${LIBS} $(LIB_roken) ${XLIBS}
65
66 buffer.o: ${DIR}/buffer.c
67         $(AFS_CCRULE) $(DIR)/buffer.c
68
69 dir.o: ${DIR}/dir.c
70         $(AFS_CCRULE) $(DIR)/dir.c
71
72 salvage.o: ${DIR}/salvage.c
73         $(AFS_CCRULE) $(DIR)/salvage.c
74
75 vnode.o: ${VOL}/vnode.c
76         $(AFS_CCRULE) $(VOL)/vnode.c
77
78 volume.o: ${VOL}/volume.c
79         $(AFS_CCRULE) $(VOL)/volume.c
80
81 vutil.o: ${VOL}/vutil.c
82         $(AFS_CCRULE) $(VOL)/vutil.c
83
84 partition.o: ${VOL}/partition.c
85         $(AFS_CCRULE) $(VOL)/partition.c
86
87 vg_cache.o: ${VOL}/vg_cache.c
88         $(AFS_CCRULE) $(VOL)/vg_cache.c
89
90 vg_scan.o: ${VOL}/vg_scan.c
91         $(AFS_CCRULE) $(VOL)/vg_scan.c
92
93 fssync-server.o: ${VOL}/fssync-server.c
94         $(AFS_CCRULE) $(VOL)/fssync-server.c
95
96 fssync-client.o: ${VOL}/fssync-client.c
97         $(AFS_CCRULE) $(VOL)/fssync-client.c
98
99 salvsync-client.o: ${VOL}/salvsync-client.c
100         $(AFS_CCRULE) $(VOL)/salvsync-client.c
101
102 daemon_com.o: ${VOL}/daemon_com.c
103         $(AFS_CCRULE) $(VOL)/daemon_com.c
104
105 clone.o: ${VOL}/clone.c
106         $(AFS_CCRULE) $(VOL)/clone.c
107
108 nuke.o: ${VOL}/nuke.c
109         $(AFS_CCRULE) $(VOL)/nuke.c
110
111 devname.o: ${VOL}/devname.c
112         $(AFS_CCRULE) $(VOL)/devname.c
113
114 common.o: ${VOL}/common.c
115         $(AFS_CCRULE) $(VOL)/common.c
116
117 listinodes.o: ${VOL}/listinodes.c
118         $(AFS_CCRULE) $(VOL)/listinodes.c
119
120 ihandle.o: ${VOL}/ihandle.c
121         $(AFS_CCRULE) $(VOL)/ihandle.c
122
123 namei_ops.o: ${VOL}/namei_ops.c
124         $(AFS_CCRULE) $(VOL)/namei_ops.c
125
126 afsint.ss.o: ../fsint/afsint.ss.c
127         $(AFS_CCRULE) ../fsint/afsint.ss.c
128
129 fileserver: ${objects} ${LIBS}
130         $(LT_LDRULE_static) ${objects} \
131                 ${LIBS} $(LIB_hcrypto) $(LIB_roken) ${MT_LIBS}
132
133 install: fileserver
134         ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
135         ${INSTALL} -d ${DESTDIR}${afssrvsbindir}
136         ${LT_INSTALL_PROGRAM} fileserver \
137                 ${DESTDIR}${afssrvlibexecdir}/fileserver
138
139 dest: fileserver
140         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
141         ${INSTALL} fileserver \
142                 ${DEST}/root.server/usr/afs/bin/fileserver
143
144 clean:
145         $(LT_CLEAN)
146         $(RM) -f *.o fileserver core AFS_component_version_number.c \
147                cbd check_sysid fsprobe
148
149 include ../config/Makefile.version