]> git.wh0rd.org - dump.git/blob - restore/Makefile.in
Get the install paths from configure.
[dump.git] / restore / Makefile.in
1 # $Id: Makefile.in,v 1.7 2001/04/06 10:09:40 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= ${SBINDIR}/restore ${SBINDIR}/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= $(MANDIR)/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 $(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
46 clean::
47 $(RM) -f $(PROG) \#* *.s *.o *.a *~ core restore.8
48
49 distclean:: 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