]> git.wh0rd.org - dump.git/blob - restore/Makefile.in
*** empty log message ***
[dump.git] / restore / Makefile.in
1 # $Id: Makefile.in,v 1.6 2001/02/21 16:13:05 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:= $(LDFLAGS) @STATIC@
10 LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@
11 DEPLIBS= ../compat/lib/libcompat.a
12
13 PROG= restore
14 LINKS= ${BINDIR}/restore ${BINDIR}/rrestore
15 SRCS= dirs.c interactive.c main.c restore.c symtab.c tape.c \
16 utilities.c
17 OBJS= dirs.o interactive.o main.o restore.o symtab.o tape.o \
18 utilities.o ../common/dumprmt.o
19 MAN8= restore.8
20 MLINKS= restore.8 $(MANDIR)/rrestore.8
21
22 all:: $(PROG) restore.8
23
24 $(PROG): $(OBJS) $(DEPLIBS)
25 $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
26
27 restore.8: restore.8.in
28 sed -e "s|__DATE__|$(DATE)|g" \
29 -e "s|__VERSION__|$(VERSION)|g" $< > $@
30
31 install:: all
32 $(INSTALLBIN) $(PROG) $(BINDIR)
33 $(INSTALLMAN) $(srcdir)/$(MAN8) $(MANDIR)
34 @set $(LINKS) $(MLINKS); \
35 while test $$# -ge 2; do \
36 l=$(DESTDIR)$$1; \
37 shift; \
38 t=$(DESTDIR)$$1; \
39 shift; \
40 echo $$t -\> $$l; \
41 $(RM) -f $$t; \
42 $(LN_S) $$l $$t; \
43 done; true
44
45 clean::
46 $(RM) -f $(PROG) \#* *.s *.o *.a *~ core restore.8
47
48 distclean:: clean
49 $(RM) -f Makefile Makefile.old .depend
50
51 # +++ Dependency line eater +++
52 #
53 # Makefile dependencies follow. This must be the last section in
54 # the Makefile.in file
55 #
56