*** empty log message ***
[arla.git] / arlad / Makefile.in
blob9b6b1692bbdce1741acdc9056b6a36adbf00a243
1 # $Id$
3 srcdir = @srcdir@
4 top_builddir = ..
5 VPATH = @srcdir@
7 CC = @CC@
9 INSTALL = @INSTALL@
10 INSTALL_PROGRAM = $(top_builddir)/libtool --mode=install @INSTALL_PROGRAM@
11 INSTALL_DATA = @INSTALL_DATA@
12 MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
14 prefix = @prefix@
15 exec_prefix = @exec_prefix@
16 libdir = @libdir@
17 libexecdir = @libexecdir@
18 bindir = @bindir@
19 sbindir = @sbindir@
20 sysconfdir = @sysconfdir@
21 mandir = @mandir@
22 transform = @program_transform_name@
23 ARLACACHEDIR = @ARLACACHEDIR@
24 ARLACONFFILE = @ARLACONFFILE@
26 ARLA_SBIN = arla-cli
27 ARLA_LIBEXEC = arlad
28 #NOINST_BIN = afsdir_check dump_state play_disco
29 NOINST_BIN =
31 MANPAGES = \
32 AliasDB.5 \
33 CellServDB.5 \
34 DynRootDB.5 \
35 SuidCells.5 \
36 ThisCell.5 \
37 arla.conf.5 \
38 arlad.8 \
39 arla-cli.8
41 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)\" \
42 -DARLACACHEDIR=\"$(ARLACACHEDIR)\" \
43 -DARLACONFFILE=\"$(ARLACONFFILE)\"
45 SHELL = /bin/sh
47 CFLAGS = @CFLAGS@
48 LDFLAGS = @LDFLAGS@
49 CPPFLAGS = @CPPFLAGS@
51 ETAGS = etags
52 MAKEDEPEND = makedepend
53 AFSWSROOT = /usr/afsws
54 RXKADINC = -I$(srcdir)/../rxkad
55 INCLUDES = -I$(srcdir)/.. \
56 @KERNEL_INCLUDE@ \
57 -I../include \
58 -I$(top_builddir) \
59 -I$(srcdir)/../include \
60 -I$(srcdir)/../nnpfs/include \
61 $(INC_sl) \
62 -I../rxdef \
63 -I$(srcdir)/../appl/lib \
64 @INC_roken@ \
65 $(RXKADINC)
66 DEFINES = -DDEBUG
67 KRB_CFLAGS = @KRB5_INC_FLAGS@ @KAFS_CPPFLAGS@
68 REALCFLAGS = $(INCLUDES) $(KRB_CFLAGS) $(DEFINES) $(CFLAGS) \
69 @PLWP_INC_FLAGS@
70 RXKADLIB = @RXKAD_LIBS@
71 KAFS_LIBS = @AIX_EXTRA_KAFS@ @KAFS_LIBS@
72 LIB_tgetent = @LIB_tgetent@
73 INC_sl = @INC_sl@
74 LIB_sl = @LIB_sl@
75 DEPEND_sl = @DEPEND_sl@
77 LIBS_common = ../lib/bufdir/libbufdir.la \
78 -L../rxdef -lrxdefclient -lrxcbserver \
79 -L../rx -lrx -L../lwp \
80 -llwp @PLWP_LIB_FLAGS@
82 LIBS_common_post= ../lib/ko/libko.la ../util/libarlautil.la \
83 ../lib/vers/libvers.la \
84 ../rxgk/librxgkcm.la ../rxdef/libtoken.la \
85 @LIB_roken@ $(RXKADLIB) $(KAFS_LIBS) @LIBS@
87 LIBS_arla-cli = $(LIBS_common) \
88 $(LIB_sl) @LIB_readline@ -L../appl/lib -larlalib \
89 $(LIBS_common_post)
91 LIBS_arlad = $(LIBS_common) \
92 $(LIBS_common_post)
94 LIBS_afsdir_check= $(LIBS_common) \
95 $(LIBS_common_post)
97 LIBS_dump_state = $(LIBS_common_post)
99 LIBS_play_disco = $(LIBS_common_post)
101 LIBS_ptest = $(LIBS_common_post) -L../lwp -llwp @PLWP_LIB_FLAGS@
104 LIBDEPENDS = ../rxdef/librxdefclient.la ../rxdef/librxcbserver.la \
105 ../rx/librx.la ../lwp/liblwp.a \
106 ../util/libarlautil.la $(DEPEND_sl) \
107 ../lib/ko/libko.la ../lib/bufdir/libbufdir.la
109 KERNEL_SRCS = @KERNEL_SRCS@
110 PROGS = $(ARLA_SBIN) $(ARLA_LIBEXEC) $(NOINST_BIN)
112 SRCS = \
113 abuf.c \
114 adir.c \
115 afsdir_check.c \
116 arla.c \
117 arlad.c \
118 arladeb.c \
119 arladebu.c \
120 blocks.c \
121 cmcb.c \
122 conn.c \
123 cred.c \
124 d-trans.c \
125 disco.c \
126 dump_state.c \
127 dynroot.c \
128 fcache.c \
129 fprio.c \
130 inter.c \
131 kernel.c \
132 messages.c \
133 play_disco.c \
134 poller.c \
135 subr.c \
136 state.c \
137 stats.c \
138 volcache.c \
139 nnpfs.c \
140 $(KERNEL_SRCS)
142 HDRS = \
143 abuf.h \
144 adir.h \
145 afs_dir.h \
146 arla_local.h \
147 arladeb.h \
148 cmcb.h \
149 conn.h \
150 cred.h \
151 disco.h \
152 dynroot.h \
153 fcache.h \
154 fprio.h \
155 inter.h \
156 kernel.h \
157 messages.h \
158 service.h \
159 subr.h \
160 state.h \
161 stats.h \
162 nnpfs.h \
163 volcache.h
165 common_OBJS = \
166 abuf.o \
167 adir.o \
168 arla.o \
169 arladeb.o \
170 arladebu.o \
171 blocks.o \
172 cmcb.o \
173 conn.o \
174 cred.o \
175 d-trans.o \
176 disco.o \
177 dynroot.o \
178 fcache.o \
179 fprio.o \
180 inter.o \
181 kernel.o \
182 messages.o \
183 poller.o \
184 subr.o \
185 state.o \
186 stats.o \
187 volcache.o \
188 nnpfs.o \
189 $(KERNEL_SRCS:.c=.o)
191 arlad_OBJS = $(common_OBJS) \
192 arlad.o
194 arla-cli_OBJS = $(common_OBJS) \
195 arla-cli.o \
196 lsprint.o
198 arla-fuse_OBJS = $(common_OBJS) \
199 arla-fuse.o
201 afsdir_check_OBJS = afsdir_check.o
203 dump_state_OBJS = dump_state.o state.o
205 play_disco_OBJS = play_disco.o disco.o
207 ptest_OBJS = ptest.o poller.o arladeb.o arladebu.o
210 .PHONY: all install uninstall depend tags clean
212 all: $(PROGS)
214 .c.o:
215 $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) -I. $(REALCFLAGS) $<
217 install: all
218 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
219 PROG_SBIN='$(ARLA_SBIN)'; for x in $$PROG_SBIN; do \
220 f=`echo $$x | sed '$(transform)'`; \
221 $(INSTALL_PROGRAM) $$x $(DESTDIR)$(sbindir)/$$f; \
222 done ; \
223 $(MKINSTALLDIRS) $(DESTDIR)$(libexecdir) ; \
224 PROG_LIBEXEC='$(ARLA_LIBEXEC)'; for x in $$PROG_LIBEXEC; do \
225 f=`echo $$x | sed '$(transform)'`; \
226 $(INSTALL_PROGRAM) $$x $(DESTDIR)$(libexecdir)/$$f; \
227 done ; \
228 $(MKINSTALLDIRS) $(DESTDIR)$(mandir) ; \
229 MANPAGES='$(MANPAGES)'; for x in $$MANPAGES; do \
230 n=`echo $$x | sed 's/\(.*\)\.[1-9a-zA-Z]*$$/\1/'`; \
231 e=`echo $$x | sed 's/.*\.\([1-9a-zA-Z]*\)$$/\1/'`; \
232 f=`echo $$n | sed '$(transform)'`; \
233 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$$e ; \
234 $(INSTALL_DATA) $(srcdir)/$$x \
235 $(DESTDIR)$(mandir)/man$$e/$$f.$$e; \
236 done
238 uninstall:
239 PROG_BIN='$(ARLA_BIN)'; for x in $$PROG_BIN; do \
240 f=`echo $$x | sed '$(transform)'`; \
241 rm -f $(DESTDIR)$(bindir)/$$f; \
242 done ; \
243 PROG_LIBEXEC='$(ARLA_LIBEXEC)'; for x in $$PROG_LIBEXEC; do \
244 f=`echo $$x | sed '$(transform)'`; \
245 rm -f $(DESTDIR)$(libexecdir)/$$f; \
246 done ; \
247 MANPAGES='$(MANPAGES)'; for x in $$MANPAGES; do \
248 n=`echo $$x | sed 's/\(.*\)\.[1-9a-zA-Z]*$$/\1/'`; \
249 e=`echo $$x | sed 's/.*\.\([1-9a-zA-Z]*\)$$/\1/'`; \
250 f=`echo $$n | sed '$(transform)'`; \
251 rm -rf $(DESTDIR)$(mandir)/$$f.$$e; \
252 done
254 arlad: $(arlad_OBJS) $(LIBDEPENDS)
255 $(top_builddir)/libtool --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(arlad_OBJS) $(LIBS_arlad)
257 arla-cli: $(arla-cli_OBJS) $(LIBDEPENDS)
258 $(top_builddir)/libtool --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(arla-cli_OBJS) $(LIBS_arla-cli)
260 arla-fuse: $(arla-fuse_OBJS) $(LIBDEPENDS)
261 $(top_builddir)/libtool --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(arla-fuse_OBJS) $(LIBS_arla-cli) -lfuse
263 afsdir_check: $(afsdir_check_OBJS)
264 $(top_builddir)/libtool --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(afsdir_check_OBJS) $(LIBS_afsdir_check)
266 dump_state: $(dump_state_OBJS)
267 $(top_builddir)/libtool --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(dump_state_OBJS) $(LIBS_dump_state)
269 play_disco: $(play_disco_OBJS)
270 $(top_builddir)/libtool --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(play_disco_OBJS) $(LIBS_play_disco)
272 ptest: $(ptest_OBJS)
273 $(top_builddir)/libtool --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ptest_OBJS) $(LIBS_ptest)
276 Makefile: Makefile.in ../config.status
277 cd ..; CONFIG_FILES=arlad/Makefile CONFIG_HEADERS= $(SHELL) config.status
279 depend: $(SRCS)
280 $(MAKEDEPEND) -- $(REALCFLAGS) -- $^
282 tags: TAGS
284 TAGS: $(SRCS) $(HDRS)
285 $(ETAGS) -t $(SRCS) $(HDRS)
287 clean :
288 rm -f $(PROGS) $(OBJS) *~ *.o core *.core
290 mostlyclean: clean
292 distclean: clean
293 rm -f Makefile config.status
295 realclean: distclean
296 rm -f TAGS