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