X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2FMakefile.in;h=79e03ea609065b0e1a458734e3565386d05be94f;hp=397302fdc725c0e31e2e2931faae4f6931c33113;hb=cca7148b36e60b4671518602ff9a7c2d0c22a7b2;hpb=60d46c352087c38c29a690d80b62441028579f35 diff --git a/restore/Makefile.in b/restore/Makefile.in index 397302f..79e03ea 100644 --- a/restore/Makefile.in +++ b/restore/Makefile.in @@ -1,50 +1,48 @@ -# $Id: Makefile.in,v 1.7 2001/04/06 10:09:40 stelian Exp $ +# $Id: Makefile.in,v 1.13 2005/05/02 15:10:46 stelian Exp $ top_srcdir= @top_srcdir@ srcdir= @srcdir@ +top_builddir= .. @MCONFIG@ -CFLAGS= @CCOPTS@ -pipe $(OPT) $(DEFS) $(GINC) $(INC) @RESTOREDEBUG@ -LDFLAGS:= $(LDFLAGS) @STATIC@ -LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@ +INC= -I$(top_srcdir)/restore +ALL_CFLAGS= @CPPFLAGS@ @CFLAGS@ @CCOPTS@ -pipe $(OPT) $(GINC) $(INC) $(DEFS) @RESTOREDEBUG@ +ALL_LDFLAGS= @LDFLAGS@ @LDOPTS@ @STATIC@ +LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@ @BZLIB@ DEPLIBS= ../compat/lib/libcompat.a PROG= restore +RPROG= rrestore LINKS= ${SBINDIR}/restore ${SBINDIR}/rrestore SRCS= dirs.c interactive.c main.c restore.c symtab.c tape.c \ - utilities.c + utilities.c xattr.c OBJS= dirs.o interactive.o main.o restore.o symtab.o tape.o \ - utilities.o ../common/dumprmt.o + utilities.o xattr.o ../common/dumprmt.o MAN8= restore.8 -MLINKS= $(MANDIR)/restore.8 $(MANDIR)/rrestore.8 +RMAN8= rrestore.8 -all:: $(PROG) restore.8 +.c.o: + $(CC) -c $(ALL_CFLAGS) $< -o $@ + +all:: $(PROG) $(MAN8) $(PROG): $(OBJS) $(DEPLIBS) - $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS) + $(CC) $(ALL_LDFLAGS) -o $(PROG) $(OBJS) $(LIBS) -restore.8: restore.8.in +$(MAN8): restore.8.in sed -e "s|__DATE__|$(DATE)|g" \ -e "s|__VERSION__|$(VERSION)|g" $< > $@ install:: all $(INSTALL) -d $(SBINDIR) $(MANDIR) $(INSTALLBIN) $(PROG) $(SBINDIR) - $(INSTALLMAN) $(srcdir)/$(MAN8) $(MANDIR) - @set $(LINKS) $(MLINKS); \ - while test $$# -ge 2; do \ - l=$$1; \ - shift; \ - t=$$1; \ - shift; \ - echo $$t -\> $$l; \ - $(RM) -f $$t; \ - $(LN_S) $$l $$t; \ - done; true + $(INSTALLMAN) $(MAN8) $(MANDIR) + cd $(SBINDIR) && $(RM) -f $(RPROG) && $(LN_S) $(PROG) $(RPROG) + cd $(MANDIR) && $(RM) -f $(RMAN8) && $(LN_S) $(MAN8) $(RMAN8) clean:: - $(RM) -f $(PROG) \#* *.s *.o *.a *~ core restore.8 + $(RM) -f $(PROG) $(MAN8) \#* *.s *.o *.a *~ core distclean:: clean $(RM) -f Makefile Makefile.old .depend