PageRenderTime 838ms CodeModel.GetById 38ms RepoModel.GetById 7ms app.codeStats 0ms

/amanda/tags/amanda261p2/recover-src/Makefile.am

#
Makefile | 73 lines | 44 code | 18 blank | 11 comment | 1 complexity | d5dbfc41a946da0f795fcf22eb96b24a 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. LIB_EXTENSION = la
  15. sbin_PROGRAMS = amrecover
  16. ###
  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.
  21. ###
  22. LDADD = ../common-src/libamanda.$(LIB_EXTENSION) \
  23. @LEXLIB@ \
  24. $(READLINE_LIBS) \
  25. ../client-src/libamclient.$(LIB_EXTENSION) \
  26. ../common-src/libamanda.$(LIB_EXTENSION)
  27. amrecover_CSRC = amrecover.c \
  28. display_commands.c extract_list.c \
  29. help.c set_commands.c
  30. amrecover_SOURCES = $(amrecover_CSRC) uparse.y uscan.l
  31. noinst_HEADERS = amrecover.h uparse.h
  32. AM_YFLAGS = -d
  33. # so that uscan.c is never generated before uparse.h
  34. # otherwise we might have makedepend problems
  35. uscan.c: uparse.h
  36. # these two commands are specially defined to omit $(AMANDA_WARNING_CFLAGS)
  37. # since we don't want warnings for generated code
  38. uscan.$(OBJEXT): uscan.c
  39. $(CC) $(CFLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) -c $<
  40. uparse.$(OBJEXT): uparse.c
  41. $(CC) $(CFLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) -c $<
  42. INSTALLPERMS_exec = \
  43. dest=$(sbindir) chown=amanda chmod=0750 $(sbin_PROGRAMS)
  44. lint:
  45. @f="$(amrecover_CSRC)"; \
  46. (cd ../common-src; make listlibsrc); \
  47. f="$$f "`cat ../common-src/listlibsrc.output`; \
  48. (cd ../server-src; make listlibsrc); \
  49. f="$$f "`cat ../server-src/listlibsrc.output`; \
  50. echo $(LINT) $$f; \
  51. $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config $(INCLUDES) $$f;\
  52. if [ $$? -ne 0 ]; then \
  53. exit 1; \
  54. fi; \
  55. exit 0