PageRenderTime 50ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/amanda/tags/amanda260p2/oldrecover-src/Makefile.am

#
Makefile | 72 lines | 43 code | 18 blank | 11 comment | 1 complexity | 9a6e88d20ecb66bf3117a4bacd387043 MD5 | raw file
  1. # Makefile for Amanda file recovery programs.
  2. include $(top_srcdir)/config/automake/installperms.am
  3. include $(top_srcdir)/config/automake/precompile.am
  4. INCLUDES = -I$(top_builddir)/common-src \
  5. -I$(top_srcdir)/common-src \
  6. -I$(top_srcdir)/client-src \
  7. -I$(top_srcdir)/gnulib
  8. AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
  9. AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
  10. LINT=@AMLINT@
  11. LINTFLAGS=@AMLINTFLAGS@
  12. LIB_EXTENSION = la
  13. sbin_PROGRAMS = amoldrecover
  14. ###
  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.
  19. ###
  20. LDADD = ../common-src/libamanda.$(LIB_EXTENSION) \
  21. @LEXLIB@ \
  22. $(READLINE_LIBS) \
  23. ../client-src/libamclient.$(LIB_EXTENSION) \
  24. ../common-src/libamanda.$(LIB_EXTENSION) \
  25. ../gnulib/libgnu.$(LIB_EXTENSION)
  26. amoldrecover_CSRC = amrecover.c \
  27. display_commands.c extract_list.c \
  28. help.c set_commands.c
  29. amoldrecover_SOURCES = $(amoldrecover_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
  38. $(CC) $(CFLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) -c $<
  39. uparse.$(OBJEXT): uparse.c
  40. $(CC) $(CFLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) -c $<
  41. INSTALLPERMS_exec = \
  42. dest=$(sbindir) chown=amanda chmod=o-rwx $(sbin_PROGRAMS)
  43. lint:
  44. @ f="$(amoldrecover_CSRC)"; \
  45. (cd ../common-src; make listlibsrc); \
  46. f="$$f "`cat ../common-src/listlibsrc.output`; \
  47. (cd ../server-src; make listlibsrc); \
  48. f="$$f "`cat ../server-src/listlibsrc.output`; \
  49. echo $(LINT) $$f; \
  50. $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config $(INCLUDES) $$f;\
  51. if [ $$? -ne 0 ]; then \
  52. exit 1; \
  53. fi; \
  54. exit 0