source: trunk/third/moira/backup/Makefile.in @ 24319

Revision 24319, 1.8 KB checked in by broder, 15 years ago (diff)
New Moira snapshot from SVN.
Line 
1# $Id: Makefile.in 3956 2010-01-05 20:56:56Z zacheiss $
2
3SHELL=/bin/sh
4@SET_MAKE@
5
6CC=@CC@
7CPPFLAGS=@CPPFLAGS@
8CFLAGS=@CFLAGS@
9DEFS=@DEFS@
10ALL_CFLAGS=-I$(srcdir) $(CPPFLAGS) $(CFLAGS) $(DEFS)
11LIBTOOL=@LIBTOOL@
12PRO_C=@PRO_C@
13PRO_C_DEFS=@PRO_C_DEFS@
14PRO_C_INCLUDES=@PRO_C_INCLUDES@
15PRO_C_OPTS=@PRO_C_OPTS@
16PRO_C_FLAGS=$(PRO_C_OPTS) $(PRO_C_DEFS) $(PRO_C_INCLUDES)
17LDFLAGS=@LDFLAGS@
18LIBS=@SQL_LIBS@ @LIBS@
19MR_LIBDEP=@MR_LIBDEP@
20INSTALL=@INSTALL@
21INSTALL_PROGRAM=@INSTALL_PROGRAM@
22
23srcdir=@srcdir@
24VPATH=@srcdir@
25SRCTOP=@top_srcdir@
26top_builddir=@top_builddir@
27BUILDTOP=..
28mrbindir=@mrbindir@
29
30BOBJS=dump_db.lo bkup1.lo bkup.lo dumprest.lo
31ROBJS=rest_db.lo rest1.lo rest.lo dumprest.lo
32
33CFILES=dump_db.c rest_db.c bkup.c bkup1.c rest.c rest1.c dumprest.c
34GENFILES=bkup.pc bkup1.pc bkup.h rest.pc rest1.pc rest.h
35
36TARGET=mrbackup mrrestore
37
38.SUFFIXES: .pc .lo
39
40.pc.c:
41        $(PRO_C) $(PRO_C_FLAGS) INAME=$< ONAME=$@
42
43.c.lo:
44        $(LIBTOOL) --mode=compile $(CC) -c $(ALL_CFLAGS) $<
45
46all: $(TARGET)
47
48clean:
49        $(LIBTOOL) --mode=clean rm -f $(BOBJS) $(ROBJS) $(CFILES) $(GENFILES) $(TARGET)
50
51cleandir distclean: clean
52        rm -f Makefile
53
54depend: $(GENFILES) $(CFILES)
55
56install:
57        $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) mrbackup $(DESTDIR)$(mrbindir)
58        $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) mrrestore $(DESTDIR)$(mrbindir)
59        $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $(srcdir)/report.pl $(DESTDIR)$(mrbindir)
60
61mrbackup: $(BOBJS) $(MR_LIBDEP)
62        $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(BOBJS) $(LIBS)
63
64mrrestore: $(ROBJS) $(MR_LIBDEP)
65        $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(ROBJS) $(LIBS)
66
67bkup.pc bkup1.pc bkup.h: $(SRCTOP)/db/schema.sql $(srcdir)/db2bkup.awk
68        awk -f $(srcdir)/db2bkup.awk < $(SRCTOP)/db/schema.sql > bkup.pc
69
70rest.pc rest1.pc rest.h: $(SRCTOP)/db/schema.sql $(srcdir)/db2rest.awk
71        awk -f $(srcdir)/db2rest.awk < $(SRCTOP)/db/schema.sql > rest.pc
Note: See TracBrowser for help on using the repository browser.