]>
Commit | Line | Data |
---|---|---|
1227625a SP |
1 | top_srcdir= @top_srcdir@ |
2 | srcdir= @srcdir@ | |
3 | ||
4 | @MCONFIG@ | |
5 | ||
ddd2ef55 | 6 | CFLAGS= @CCOPTS@ -pipe $(OPT) $(DEFS) $(GINC) $(INC) @RESTOREDEBUG@ |
1227625a SP |
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 | |
ddd2ef55 | 18 | MLINKS= restore.8 $(MANDIR)/rrestore.8 |
1227625a | 19 | |
8d4197bb | 20 | all:: $(PROG) restore.8 |
1227625a SP |
21 | |
22 | $(PROG): $(OBJS) $(DEPLIBS) | |
23 | $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS) | |
24 | ||
8d4197bb SP |
25 | restore.8: restore.8.in |
26 | sed -e "s|__DATE__|$(DATE)|g" \ | |
27 | -e "s|__VERSION__|$(VERSION)|g" $< > $@ | |
28 | ||
29 | install:: all | |
1227625a SP |
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:: | |
8d4197bb | 44 | $(RM) -f $(PROG) \#* *.s *.o *.a *~ core restore.8 |
1227625a SP |
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 |