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