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