]> git.wh0rd.org - dump.git/blame - restore/Makefile.in
Fix SELinux xattr handling.
[dump.git] / restore / Makefile.in
CommitLineData
7f7d329e 1# $Id: Makefile.in,v 1.14 2007/02/22 20:12:50 stelian Exp $
ec387a12 2
1227625a
SP
3top_srcdir= @top_srcdir@
4srcdir= @srcdir@
1daf06b9 5top_builddir= ..
1227625a
SP
6
7@MCONFIG@
8
008af419 9INC= -I$(top_srcdir)/restore
7f7d329e 10ALL_CFLAGS= @CPPFLAGS@ @CFLAGS@ @CCOPTS@ @CCTRANSSELINUX@ -pipe $(OPT) $(GINC) $(INC) $(DEFS) @RESTOREDEBUG@
008af419 11ALL_LDFLAGS= @LDFLAGS@ @LDOPTS@ @STATIC@
7f7d329e 12LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@ @BZLIB@ @LTRANSSELINUX@
1227625a
SP
13DEPLIBS= ../compat/lib/libcompat.a
14
15PROG= restore
2c99ad2d 16RPROG= rrestore
60d46c35 17LINKS= ${SBINDIR}/restore ${SBINDIR}/rrestore
1227625a 18SRCS= dirs.c interactive.c main.c restore.c symtab.c tape.c \
cca7148b 19 utilities.c xattr.c
1227625a 20OBJS= dirs.o interactive.o main.o restore.o symtab.o tape.o \
cca7148b 21 utilities.o xattr.o ../common/dumprmt.o
1227625a 22MAN8= restore.8
2c99ad2d 23RMAN8= rrestore.8
1227625a 24
008af419
SP
25.c.o:
26 $(CC) -c $(ALL_CFLAGS) $< -o $@
27
2c99ad2d 28all:: $(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
37install:: 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
44clean::
2c99ad2d 45 $(RM) -f $(PROG) $(MAN8) \#* *.s *.o *.a *~ core
1227625a
SP
46
47distclean:: 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