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