PageRenderTime 51ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/amanda/tags/3_3_0beta1/recover-src/Makefile.am

#
Makefile | 68 lines | 41 code | 16 blank | 11 comment | 1 complexity | c7d6ab79d49821c2c9acf8f3fb860e9a MD5 | raw file
  1. # Makefile for Amanda file recovery programs.
  2. include $(top_srcdir)/config/automake/vars.am
  3. include $(top_srcdir)/config/automake/installperms.am
  4. include $(top_srcdir)/config/automake/precompile.am
  5. INCLUDES = -I$(top_builddir)/common-src \
  6. -I$(top_srcdir)/common-src \
  7. -I$(top_srcdir)/client-src \
  8. -I$(top_srcdir)/amandad-src \
  9. -I$(top_srcdir)/gnulib
  10. AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
  11. AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
  12. LINT=$(AMLINT)
  13. LINTFLAGS=$(AMLINTFLAGS)
  14. sbin_PROGRAMS = amrecover
  15. ###
  16. # Because libamanda includes routines (e.g. regex) provided by some system
  17. # libraries, and because of the way libtool sets up the command line, we
  18. # need to list libamanda twice here, first to override the system library
  19. # routines, and second to pick up any references in the other libraries.
  20. ###
  21. LDADD = ../common-src/libamanda.la \
  22. @LEXLIB@ \
  23. $(READLINE_LIBS) \
  24. ../client-src/libamclient.la \
  25. ../common-src/libamanda.la
  26. amrecover_CSRC = amrecover.c \
  27. display_commands.c extract_list.c \
  28. help.c set_commands.c
  29. amrecover_SOURCES = $(amrecover_CSRC) uparse.y uscan.l
  30. noinst_HEADERS = amrecover.h uparse.h
  31. AM_YFLAGS = -d
  32. # so that uscan.c is never generated before uparse.h
  33. # otherwise we might have makedepend problems
  34. uscan.c: uparse.h
  35. # these two commands are specially defined to omit $(AMANDA_WARNING_CFLAGS)
  36. # since we don't want warnings for generated code
  37. uscan.$(OBJEXT): uscan.c ../common-src/amanda.h uparse.h
  38. $(CC) $(CFLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) -c $<
  39. uparse.$(OBJEXT): uparse.c ../common-src/amanda.h amrecover.h
  40. $(CC) $(CFLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) -c $<
  41. lint:
  42. @f="$(amrecover_CSRC)"; \
  43. (cd ../common-src; make listlibsrc); \
  44. f="$$f "`cat ../common-src/listlibsrc.output`; \
  45. (cd ../server-src; make listlibsrc); \
  46. f="$$f "`cat ../server-src/listlibsrc.output`; \
  47. echo $(LINT) $$f; \
  48. $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config $(INCLUDES) $$f;\
  49. if [ $$? -ne 0 ]; then \
  50. exit 1; \
  51. fi; \
  52. exit 0