]> git.wh0rd.org - dump.git/blame - restore/Makefile.in
Let the user give the dumpdates path as an argument to dump (-D)
[dump.git] / restore / Makefile.in
CommitLineData
e95b2aff 1# $Id: Makefile.in,v 1.10 2002/01/02 10:13:16 stelian Exp $
ec387a12 2
1227625a
SP
3top_srcdir= @top_srcdir@
4srcdir= @srcdir@
5
6@MCONFIG@
7
ddd2ef55 8CFLAGS= @CCOPTS@ -pipe $(OPT) $(DEFS) $(GINC) $(INC) @RESTOREDEBUG@
e95b2aff 9LDFLAGS= @LDOPTS@ @STATIC@
88ef261e 10LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@ @BZLIB@
1227625a
SP
11DEPLIBS= ../compat/lib/libcompat.a
12
13PROG= restore
2c99ad2d 14RPROG= rrestore
60d46c35 15LINKS= ${SBINDIR}/restore ${SBINDIR}/rrestore
1227625a
SP
16SRCS= dirs.c interactive.c main.c restore.c symtab.c tape.c \
17 utilities.c
18OBJS= dirs.o interactive.o main.o restore.o symtab.o tape.o \
19 utilities.o ../common/dumprmt.o
20MAN8= restore.8
2c99ad2d 21RMAN8= rrestore.8
1227625a 22
2c99ad2d 23all:: $(PROG) $(MAN8)
1227625a
SP
24
25$(PROG): $(OBJS) $(DEPLIBS)
26 $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
27
2c99ad2d 28$(MAN8): restore.8.in
8d4197bb
SP
29 sed -e "s|__DATE__|$(DATE)|g" \
30 -e "s|__VERSION__|$(VERSION)|g" $< > $@
31
32install:: all
60d46c35
SP
33 $(INSTALL) -d $(SBINDIR) $(MANDIR)
34 $(INSTALLBIN) $(PROG) $(SBINDIR)
e95b2aff 35 $(INSTALLMAN) $(MAN8) $(MANDIR)
2c99ad2d
SP
36 cd $(SBINDIR) && $(RM) -f $(RPROG) && $(LN_S) $(PROG) $(RPROG)
37 cd $(MANDIR) && $(RM) -f $(RMAN8) && $(LN_S) $(MAN8) $(RMAN8)
1227625a
SP
38
39clean::
2c99ad2d 40 $(RM) -f $(PROG) $(MAN8) \#* *.s *.o *.a *~ core
1227625a
SP
41
42distclean:: clean
43 $(RM) -f Makefile Makefile.old .depend
44
45# +++ Dependency line eater +++
46#
47# Makefile dependencies follow. This must be the last section in
48# the Makefile.in file
49#
50