1 | # $Id: Makefile.in 3956 2010-01-05 20:56:56Z zacheiss $ |
---|
2 | |
---|
3 | SHELL=/bin/sh |
---|
4 | @SET_MAKE@ |
---|
5 | |
---|
6 | CC=@CC@ |
---|
7 | CPPFLAGS=@CPPFLAGS@ |
---|
8 | CFLAGS=@CFLAGS@ |
---|
9 | DEFS=@DEFS@ |
---|
10 | ALL_CFLAGS=-I$(srcdir) $(CPPFLAGS) $(CFLAGS) $(DEFS) |
---|
11 | LIBTOOL=@LIBTOOL@ |
---|
12 | PRO_C=@PRO_C@ |
---|
13 | PRO_C_DEFS=@PRO_C_DEFS@ |
---|
14 | PRO_C_INCLUDES=@PRO_C_INCLUDES@ |
---|
15 | PRO_C_OPTS=@PRO_C_OPTS@ |
---|
16 | PRO_C_FLAGS=$(PRO_C_OPTS) $(PRO_C_DEFS) $(PRO_C_INCLUDES) |
---|
17 | LDFLAGS=@LDFLAGS@ |
---|
18 | LIBS=@SQL_LIBS@ @LIBS@ |
---|
19 | MR_LIBDEP=@MR_LIBDEP@ |
---|
20 | INSTALL=@INSTALL@ |
---|
21 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
---|
22 | |
---|
23 | srcdir=@srcdir@ |
---|
24 | VPATH=@srcdir@ |
---|
25 | SRCTOP=@top_srcdir@ |
---|
26 | top_builddir=@top_builddir@ |
---|
27 | BUILDTOP=.. |
---|
28 | mrbindir=@mrbindir@ |
---|
29 | |
---|
30 | BOBJS=dump_db.lo bkup1.lo bkup.lo dumprest.lo |
---|
31 | ROBJS=rest_db.lo rest1.lo rest.lo dumprest.lo |
---|
32 | |
---|
33 | CFILES=dump_db.c rest_db.c bkup.c bkup1.c rest.c rest1.c dumprest.c |
---|
34 | GENFILES=bkup.pc bkup1.pc bkup.h rest.pc rest1.pc rest.h |
---|
35 | |
---|
36 | TARGET=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 | |
---|
46 | all: $(TARGET) |
---|
47 | |
---|
48 | clean: |
---|
49 | $(LIBTOOL) --mode=clean rm -f $(BOBJS) $(ROBJS) $(CFILES) $(GENFILES) $(TARGET) |
---|
50 | |
---|
51 | cleandir distclean: clean |
---|
52 | rm -f Makefile |
---|
53 | |
---|
54 | depend: $(GENFILES) $(CFILES) |
---|
55 | |
---|
56 | install: |
---|
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 | |
---|
61 | mrbackup: $(BOBJS) $(MR_LIBDEP) |
---|
62 | $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(BOBJS) $(LIBS) |
---|
63 | |
---|
64 | mrrestore: $(ROBJS) $(MR_LIBDEP) |
---|
65 | $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LDFLAGS) $(ROBJS) $(LIBS) |
---|
66 | |
---|
67 | bkup.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 | |
---|
70 | rest.pc rest1.pc rest.h: $(SRCTOP)/db/schema.sql $(srcdir)/db2rest.awk |
---|
71 | awk -f $(srcdir)/db2rest.awk < $(SRCTOP)/db/schema.sql > rest.pc |
---|