1 # Makefile for Amanda file recovery programs.
3 INCLUDES = -I$(top_builddir)/common-src \
4 -I$(top_srcdir)/common-src \
5 -I$(top_srcdir)/client-src \
6 -I$(top_srcdir)/tape-src
10 sbin_PROGRAMS = amrecover
12 if WANT_RUNTIME_PSEUDO_RELOC
13 AM_LDFLAGS = -Wl,-enable-runtime-pseudo-reloc
17 # Because libamanda includes routines (e.g. regex) provided by some system
18 # libraries, and because of the way libtool sets up the command line, we
19 # need to list libamanda twice here, first to override the system library
20 # routines, and second to pick up any references in the other libraries.
23 LDADD = ../common-src/libamanda.$(LIB_EXTENSION) \
25 ../client-src/libamclient.$(LIB_EXTENSION)
27 LDADD += ../tape-src/libamtape.$(LIB_EXTENSION)
29 LDADD += ../common-src/libamanda.$(LIB_EXTENSION) \
32 amrecover_SOURCES = amrecover.c \
33 display_commands.c extract_list.c \
34 help.c set_commands.c \
37 noinst_HEADERS = amrecover.h uparse.h
42 @list="$(sbin_PROGRAMS)"; \
44 pa=$(DESTDIR)$(sbindir)/`echo $$p|sed '$(transform)'`; \
45 echo chown $(BINARY_OWNER) $$pa; \
46 chown $(BINARY_OWNER) $$pa; \
47 echo chgrp $(SETUID_GROUP) $$pa; \
48 chgrp $(SETUID_GROUP) $$pa; \
49 echo chmod o-rwx $$pa; \
53 # so that uscan.c is never generated before uparse.h
54 # otherwise we might have makedepend problems