]> git.wh0rd.org - dump.git/blame_incremental - restore/Makefile.in
Update the spec file from RedHat.
[dump.git] / restore / Makefile.in
... / ...
CommitLineData
1# $Id: Makefile.in,v 1.7 2001/04/06 10:09:40 stelian Exp $
2
3top_srcdir= @top_srcdir@
4srcdir= @srcdir@
5
6@MCONFIG@
7
8CFLAGS= @CCOPTS@ -pipe $(OPT) $(DEFS) $(GINC) $(INC) @RESTOREDEBUG@
9LDFLAGS:= $(LDFLAGS) @STATIC@
10LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@
11DEPLIBS= ../compat/lib/libcompat.a
12
13PROG= restore
14LINKS= ${SBINDIR}/restore ${SBINDIR}/rrestore
15SRCS= dirs.c interactive.c main.c restore.c symtab.c tape.c \
16 utilities.c
17OBJS= dirs.o interactive.o main.o restore.o symtab.o tape.o \
18 utilities.o ../common/dumprmt.o
19MAN8= restore.8
20MLINKS= $(MANDIR)/restore.8 $(MANDIR)/rrestore.8
21
22all:: $(PROG) restore.8
23
24$(PROG): $(OBJS) $(DEPLIBS)
25 $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
26
27restore.8: restore.8.in
28 sed -e "s|__DATE__|$(DATE)|g" \
29 -e "s|__VERSION__|$(VERSION)|g" $< > $@
30
31install:: all
32 $(INSTALL) -d $(SBINDIR) $(MANDIR)
33 $(INSTALLBIN) $(PROG) $(SBINDIR)
34 $(INSTALLMAN) $(srcdir)/$(MAN8) $(MANDIR)
35 @set $(LINKS) $(MLINKS); \
36 while test $$# -ge 2; do \
37 l=$$1; \
38 shift; \
39 t=$$1; \
40 shift; \
41 echo $$t -\> $$l; \
42 $(RM) -f $$t; \
43 $(LN_S) $$l $$t; \
44 done; true
45
46clean::
47 $(RM) -f $(PROG) \#* *.s *.o *.a *~ core restore.8
48
49distclean:: clean
50 $(RM) -f Makefile Makefile.old .depend
51
52# +++ Dependency line eater +++
53#
54# Makefile dependencies follow. This must be the last section in
55# the Makefile.in file
56#
57