]> git.wh0rd.org - dump.git/blob - restore/Makefile.in
Makefile cleanups.
[dump.git] / restore / Makefile.in
1 # $Id: Makefile.in,v 1.10 2002/01/02 10:13:16 stelian Exp $
2
3 top_srcdir= @top_srcdir@
4 srcdir= @srcdir@
5
6 @MCONFIG@
7
8 CFLAGS= @CCOPTS@ -pipe $(OPT) $(DEFS) $(GINC) $(INC) @RESTOREDEBUG@
9 LDFLAGS= @LDOPTS@ @STATIC@
10 LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@ @BZLIB@
11 DEPLIBS= ../compat/lib/libcompat.a
12
13 PROG= restore
14 RPROG= rrestore
15 LINKS= ${SBINDIR}/restore ${SBINDIR}/rrestore
16 SRCS= dirs.c interactive.c main.c restore.c symtab.c tape.c \
17 utilities.c
18 OBJS= dirs.o interactive.o main.o restore.o symtab.o tape.o \
19 utilities.o ../common/dumprmt.o
20 MAN8= restore.8
21 RMAN8= rrestore.8
22
23 all:: $(PROG) $(MAN8)
24
25 $(PROG): $(OBJS) $(DEPLIBS)
26 $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
27
28 $(MAN8): restore.8.in
29 sed -e "s|__DATE__|$(DATE)|g" \
30 -e "s|__VERSION__|$(VERSION)|g" $< > $@
31
32 install:: all
33 $(INSTALL) -d $(SBINDIR) $(MANDIR)
34 $(INSTALLBIN) $(PROG) $(SBINDIR)
35 $(INSTALLMAN) $(MAN8) $(MANDIR)
36 cd $(SBINDIR) && $(RM) -f $(RPROG) && $(LN_S) $(PROG) $(RPROG)
37 cd $(MANDIR) && $(RM) -f $(RMAN8) && $(LN_S) $(MAN8) $(RMAN8)
38
39 clean::
40 $(RM) -f $(PROG) $(MAN8) \#* *.s *.o *.a *~ core
41
42 distclean:: 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