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