1 # $Id: Makefile.in,v 1.12 2003/05/08 21:11:39 stelian Exp $
3 top_srcdir= @top_srcdir@
9 INC= -I$(top_srcdir)/restore
10 ALL_CFLAGS= @CPPFLAGS@ @CFLAGS@ @CCOPTS@ -pipe $(OPT) $(GINC) $(INC) $(DEFS) @RESTOREDEBUG@
11 ALL_LDFLAGS= @LDFLAGS@ @LDOPTS@ @STATIC@
12 LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@ @BZLIB@
13 DEPLIBS= ../compat/lib/libcompat.a
17 LINKS= ${SBINDIR}/restore ${SBINDIR}/rrestore
18 SRCS= dirs.c interactive.c main.c restore.c symtab.c tape.c \
20 OBJS= dirs.o interactive.o main.o restore.o symtab.o tape.o \
21 utilities.o ../common/dumprmt.o
26 $(CC) -c $(ALL_CFLAGS) $< -o $@
30 $(PROG): $(OBJS) $(DEPLIBS)
31 $(CC) $(ALL_LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
34 sed -e "s|__DATE__|$(DATE)|g" \
35 -e "s|__VERSION__|$(VERSION)|g" $< > $@
38 $(INSTALL) -d $(SBINDIR) $(MANDIR)
39 $(INSTALLBIN) $(PROG) $(SBINDIR)
40 $(INSTALLMAN) $(MAN8) $(MANDIR)
41 cd $(SBINDIR) && $(RM) -f $(RPROG) && $(LN_S) $(PROG) $(RPROG)
42 cd $(MANDIR) && $(RM) -f $(RMAN8) && $(LN_S) $(MAN8) $(RMAN8)
45 $(RM) -f $(PROG) $(MAN8) \#* *.s *.o *.a *~ core
48 $(RM) -f Makefile Makefile.old .depend
50 # +++ Dependency line eater +++
52 # Makefile dependencies follow. This must be the last section in
53 # the Makefile.in file