X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=oldrecover-src%2FMakefile.am;h=0338d9838d3eb4e5a95d7c7e26afec13db4b797d;hb=c88ee0799dbba0d855be48a5c148c4586400b142;hp=766afd299b9c2dfe2a29e5801e2fc2609100b0ec;hpb=ac973066bc508cb82728e46eaf499e9424d4e0f1;p=debian%2Famanda diff --git a/oldrecover-src/Makefile.am b/oldrecover-src/Makefile.am index 766afd2..0338d98 100644 --- a/oldrecover-src/Makefile.am +++ b/oldrecover-src/Makefile.am @@ -1,21 +1,22 @@ # Makefile for Amanda file recovery programs. +include $(top_srcdir)/config/automake/vars.am +include $(top_srcdir)/config/automake/installperms.am +include $(top_srcdir)/config/automake/precompile.am + INCLUDES = -I$(top_builddir)/common-src \ -I$(top_srcdir)/common-src \ -I$(top_srcdir)/client-src \ -I$(top_srcdir)/gnulib -LINT=@AMLINT@ -LINTFLAGS=@AMLINTFLAGS@ +AM_CFLAGS = $(AMANDA_WARNING_CFLAGS) +AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS) -LIB_EXTENSION = la +LINT=$(AMLINT) +LINTFLAGS=$(AMLINTFLAGS) sbin_PROGRAMS = amoldrecover -if WANT_RUNTIME_PSEUDO_RELOC -AM_LDFLAGS = -Wl,-enable-runtime-pseudo-reloc -endif - ### # Because libamanda includes routines (e.g. regex) provided by some system # libraries, and because of the way libtool sets up the command line, we @@ -23,12 +24,11 @@ endif # routines, and second to pick up any references in the other libraries. ### -LDADD = ../common-src/libamanda.$(LIB_EXTENSION) \ +LDADD = ../common-src/libamanda.la \ @LEXLIB@ \ - ../client-src/libamclient.$(LIB_EXTENSION) \ $(READLINE_LIBS) \ - ../common-src/libamanda.$(LIB_EXTENSION) \ - ../gnulib/libgnu.$(LIB_EXTENSION) + ../client-src/libamclient.la \ + ../common-src/libamanda.la amoldrecover_CSRC = amrecover.c \ display_commands.c extract_list.c \ @@ -42,27 +42,19 @@ AM_YFLAGS = -d # so that uscan.c is never generated before uparse.h # otherwise we might have makedepend problems -$(srcdir)/uscan.c: $(srcdir)/uparse.h +uscan.c: uparse.h -uscan.$(OBJEXT): $(srcdir)/uscan.c +# these two commands are specially defined to omit $(AMANDA_WARNING_CFLAGS) +# since we don't want warnings for generated code +uscan.$(OBJEXT): uscan.c $(CC) $(CFLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) -c $< -uparse.$(OBJEXT): $(srcdir)/uparse.c +uparse.$(OBJEXT): uparse.c $(CC) $(CFLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) -c $< -install-exec-hook: - @list="$(sbin_PROGRAMS)"; \ - for p in $$list; do \ - pa=$(DESTDIR)$(sbindir)/`echo $$p|sed '$(transform)'`; \ - echo chown $(BINARY_OWNER) $$pa; \ - chown $(BINARY_OWNER) $$pa; \ - echo chgrp $(SETUID_GROUP) $$pa; \ - chgrp $(SETUID_GROUP) $$pa; \ - echo chmod o-rwx $$pa; \ - chmod o-rwx $$pa; \ - done - +INSTALLPERMS_exec = \ + dest=$(sbindir) chown=amanda chmod=0750 $(sbin_PROGRAMS) lint: @ f="$(amoldrecover_CSRC)"; \ @@ -71,7 +63,7 @@ lint: (cd ../server-src; make listlibsrc); \ f="$$f "`cat ../server-src/listlibsrc.output`; \ echo $(LINT) $$f; \ - $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I../config $(INCLUDES) $$f;\ + $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config $(INCLUDES) $$f;\ if [ $$? -ne 0 ]; then \ exit 1; \ fi; \