]> git.wh0rd.org - dump.git/blame - dump/Makefile.in
Encryption (and compression as plugins) support.
[dump.git] / dump / Makefile.in
CommitLineData
e3956dfb 1# $Id: Makefile.in,v 1.13 2011/06/10 13:07:29 stelian Exp $
ec387a12 2
1227625a
SP
3top_srcdir= @top_srcdir@
4srcdir= @srcdir@
1daf06b9 5top_builddir= ..
1227625a
SP
6
7@MCONFIG@
8
e3956dfb
SP
9INC= -I$(top_srcdir)/dump -I$(top_srcdir)/common
10ALL_CFLAGS= @CPPFLAGS@ @CFLAGS@ @CCOPTS@ -pipe $(OPT) $(GINC) $(INC) $(DEFS) @DUMPDEBUG@
008af419 11ALL_LDFLAGS= @LDFLAGS@ @LDOPTS@ @STATIC@
c9e4e868 12LIBS= $(GLIBS) @ZLIB@ @BZLIB@ @BLKID@
1227625a
SP
13DEPLIBS= ../compat/lib/libcompat.a
14
15PROG= dump
2c99ad2d 16RPROG= rdump
60d46c35 17LINKS= ${SBINDIR}/dump ${SBINDIR}/rdump
1227625a
SP
18SRCS= itime.c main.c optr.c tape.c traverse.c unctime.c
19OBJS= itime.o main.o optr.o tape.o traverse.o unctime.o \
e3956dfb
SP
20 ../common/dumprmt.o ../common/transformation_null.o ../common/transformation_lzo.o \
21 ../common/transformation_zlib.o ../common/transformation_bzlib.o
1227625a 22MAN8= dump.8
2c99ad2d 23RMAN8= rdump.8
1227625a 24
008af419
SP
25.c.o:
26 $(CC) -c $(ALL_CFLAGS) $< -o $@
27
2c99ad2d 28all:: $(PROG) $(MAN8)
1227625a
SP
29
30$(PROG): $(OBJS) $(DEPLIBS)
008af419 31 $(LD) $(ALL_LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
1227625a 32
2c99ad2d 33$(MAN8): dump.8.in
8d4197bb
SP
34 sed -e "s|__DUMPDATES__|$(DUMPDATESPATH)|g" \
35 -e "s|__DATE__|$(DATE)|g" \
36 -e "s|__VERSION__|$(VERSION)|g" $< > $@
37
38install:: all
60d46c35
SP
39 $(INSTALL) -d $(SBINDIR) $(MANDIR)
40 $(INSTALLBIN) $(PROG) $(SBINDIR)
e95b2aff 41 $(INSTALLMAN) $(MAN8) $(MANDIR)
2c99ad2d
SP
42 cd $(SBINDIR) && $(RM) -f $(RPROG) && $(LN_S) $(PROG) $(RPROG)
43 cd $(MANDIR) && $(RM) -f $(RMAN8) && $(LN_S) $(MAN8) $(RMAN8)
1227625a
SP
44
45clean::
2c99ad2d 46 $(RM) -f $(PROG) $(MAN8) \#* *.s *.o *.a *~ core
1227625a
SP
47
48distclean:: clean
49 $(RM) -f Makefile Makefile.old .depend
50
51# +++ Dependency line eater +++
52#
53# Makefile dependencies follow. This must be the last section in
54# the Makefile.in file
55#
56