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