*** empty log message ***
[arla.git] / milko / vldb / Makefile.in
blob7f8a31e58e3468ce1bcf89a9d3c72ed75af1dc8d
1 # $Id$
3 srcdir = @srcdir@
4 top_builddir = ../..
5 VPATH = @srcdir@
7 CC = @CC@
9 INSTALL = @INSTALL@
10 INSTALL_PROGRAM = @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 sysconfdir = @sysconfdir@
20 transform = @program_transform_name@
22 VLDBSERVER_BIN = vldbserver
24 DEFS = @DEFS@ -DMILKO_SYSCONFDIR=\"$(sysconfdir)\"
26 SHELL = /bin/sh
28 CFLAGS = @CFLAGS@
29 LDFLAGS = @LDFLAGS@
31 ETAGS = etags
32 MAKEDEPEND = makedepend
33 AFSWSROOT = /usr/afsws
34 RXKADINC = -I$(srcdir)/../rxkad
35 INCLUDES = -I$(srcdir)/../.. \
36 -I../../include \
37 -I$(srcdir)/../../include \
38 -I$(srcdir)/../lib/mlog \
39 -I$(srcdir)/../lib/mdb \
40 -I$(srcdir)/../lib/msecurity \
41 -I../../rxdef \
42 @INC_roken@ \
43 $(RXKADINC)
44 DEFINES = -DDEBUG
45 REALCFLAGS = $(INCLUDES) @KRB5_INC_FLAGS@ $(DEFINES) $(CFLAGS) -DRXDEBUG
46 RXKADLIB = @RXKAD_LIBS@
47 DBLIB = @DBLIB@
48 LIBS = -L../../rxdef -lrxvlserver \
49 -L../lib/msecurity -lmsecurity \
50 -L../lib/mlog -lmlog \
51 -L../lib/mdb -lmdb \
52 -L../../rxdef -lrxvolserver -lrxfsserver -L../../rx -lrx \
53 ../../lib/ko/libko.la ../../util/libarlautil.la \
54 -L../../lwp -llwp @PLWP_LIB_FLAGS@ \
55 $(RXKADLIB) $(DBLIB) \
56 @LIB_roken@ \
57 @LIBS@
58 LIBDEPENDS = ../../rxdef/librxdefclient.la ../../rx/librx.la \
59 ../../lwp/liblwp.a ../../util/libarlautil.la \
60 ../../lib/ko/libko.la \
61 ../lib/voldb/libvoldb.a ../lib/vld/libvld.a \
62 ../lib/msecurity/libmsecurity.a ../lib/mdb/libmdb.a
63 PROGS = vldbserver
64 #vled
66 SRCS = \
67 vled.c \
68 vl_db.c \
69 vl_disk.c \
70 vldbserver.c \
71 ubikprocs.c
73 HDRS =
75 vldbserver_OBJS = \
76 vl_db.o \
77 vl_disk.o \
78 vldbserver.o \
79 ubikprocs.o
81 vled_OBJS = \
82 vled.o \
83 vl_db.o
86 .PHONY: all install uninstall depend tags clean
88 all: $(PROGS)
90 .c.o:
91 $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) -I. $(REALCFLAGS) $<
93 install: all
94 $(MKINSTALLDIRS) $(DESTDIR)$(libexecdir)
95 PROG_BIN='$(VLDBSERVER_BIN)'; for x in $$PROG_BIN; do \
96 f=`echo $$x | sed '$(transform)'`; \
97 $(INSTALL_PROGRAM) $$x $(DESTDIR)$(libexecdir)/$$f; \
98 done
100 uninstall:
101 PROG_BIN='$(VLDBSERVER_BIN)'; for x in $$PROG_BIN; do \
102 f=`echo $$x | sed '$(transform)'`; \
103 rm -f $(DESTDIR)$(libexecdir)/$$f; \
104 done
106 vldbserver: $(vldbserver_OBJS) $(LIBDEPENDS)
107 $(top_builddir)/libtool $(CC) $(LDFLAGS) -o $@ $(vldbserver_OBJS) $(LIBS)
109 vled: $(vled_OBJS) $(LIBDEPENDS)
110 $(top_builddir)/libtool $(CC) $(LDFLAGS) -o $@ $(vled_OBJS) $(LIBS)
112 Makefile: Makefile.in ../../config.status
113 cd ../..; CONFIG_FILES=milko/vldb/Makefile CONFIG_HEADERS= $(SHELL) config.status
115 depend: $(SRCS)
116 $(MAKEDEPEND) -- $(REALCFLAGS) -- $^
118 tags: TAGS
120 TAGS: $(SRCS) $(HDRS)
121 $(ETAGS) -t $(SRCS) $(HDRS)
123 clean :
124 rm -f $(PROGS) $(OBJS) *~ *.o core *.core
126 mostlyclean: clean
128 distclean: clean
129 rm -f Makefile config.status
131 realclean: distclean
132 rm -f TAGS