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