]>
Commit | Line | Data |
---|---|---|
008af419 | 1 | # $Id: Makefile.in,v 1.12 2003/05/08 21:11:39 stelian Exp $ |
ec387a12 | 2 | |
1227625a SP |
3 | top_srcdir= @top_srcdir@ |
4 | srcdir= @srcdir@ | |
1daf06b9 | 5 | top_builddir= .. |
1227625a SP |
6 | |
7 | @MCONFIG@ | |
8 | ||
008af419 SP |
9 | INC= -I$(top_srcdir)/restore |
10 | ALL_CFLAGS= @CPPFLAGS@ @CFLAGS@ @CCOPTS@ -pipe $(OPT) $(GINC) $(INC) $(DEFS) @RESTOREDEBUG@ | |
11 | ALL_LDFLAGS= @LDFLAGS@ @LDOPTS@ @STATIC@ | |
88ef261e | 12 | LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@ @BZLIB@ |
1227625a SP |
13 | DEPLIBS= ../compat/lib/libcompat.a |
14 | ||
15 | PROG= restore | |
2c99ad2d | 16 | RPROG= rrestore |
60d46c35 | 17 | LINKS= ${SBINDIR}/restore ${SBINDIR}/rrestore |
1227625a SP |
18 | SRCS= dirs.c interactive.c main.c restore.c symtab.c tape.c \ |
19 | utilities.c | |
20 | OBJS= dirs.o interactive.o main.o restore.o symtab.o tape.o \ | |
21 | utilities.o ../common/dumprmt.o | |
22 | MAN8= restore.8 | |
2c99ad2d | 23 | RMAN8= rrestore.8 |
1227625a | 24 | |
008af419 SP |
25 | .c.o: |
26 | $(CC) -c $(ALL_CFLAGS) $< -o $@ | |
27 | ||
2c99ad2d | 28 | all:: $(PROG) $(MAN8) |
1227625a SP |
29 | |
30 | $(PROG): $(OBJS) $(DEPLIBS) | |
008af419 | 31 | $(CC) $(ALL_LDFLAGS) -o $(PROG) $(OBJS) $(LIBS) |
1227625a | 32 | |
2c99ad2d | 33 | $(MAN8): restore.8.in |
8d4197bb SP |
34 | sed -e "s|__DATE__|$(DATE)|g" \ |
35 | -e "s|__VERSION__|$(VERSION)|g" $< > $@ | |
36 | ||
37 | install:: all | |
60d46c35 SP |
38 | $(INSTALL) -d $(SBINDIR) $(MANDIR) |
39 | $(INSTALLBIN) $(PROG) $(SBINDIR) | |
e95b2aff | 40 | $(INSTALLMAN) $(MAN8) $(MANDIR) |
2c99ad2d SP |
41 | cd $(SBINDIR) && $(RM) -f $(RPROG) && $(LN_S) $(PROG) $(RPROG) |
42 | cd $(MANDIR) && $(RM) -f $(RMAN8) && $(LN_S) $(MAN8) $(RMAN8) | |
1227625a SP |
43 | |
44 | clean:: | |
2c99ad2d | 45 | $(RM) -f $(PROG) $(MAN8) \#* *.s *.o *.a *~ core |
1227625a SP |
46 | |
47 | distclean:: clean | |
48 | $(RM) -f Makefile Makefile.old .depend | |
49 | ||
50 | # +++ Dependency line eater +++ | |
51 | # | |
52 | # Makefile dependencies follow. This must be the last section in | |
53 | # the Makefile.in file | |
54 | # | |
55 |