PageRenderTime 52ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Makefile | 74 lines | 50 code | 17 blank | 7 comment | 2 complexity | ddeb957882a1da5072766c15b0e73481 MD5 | raw file
  1. # Makefile for Amanda restore 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)/device-src \
  8. -I$(top_srcdir)/server-src \
  9. -I$(top_srcdir)/amandad-src \
  10. -I$(top_srcdir)/gnulib
  11. AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
  12. AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
  13. LINT=$(AMLINT)
  14. LINTFLAGS=$(AMLINTFLAGS)
  15. amlib_LTLIBRARIES = librestore.la
  16. LIB_EXTENSION = la
  17. sbin_PROGRAMS = amrestore amfetchdump
  18. amlibexec_PROGRAMS = amidxtaped
  19. ###
  20. # Because libamanda includes routines (e.g. regex) provided by some system
  21. # libraries, and because of the way libtool sets up the command line, we
  22. # need to list libamanda twice here, first to override the system library
  23. # routines, and second to pick up any references in the other libraries.
  24. ###
  25. LDADD = librestore.$(LIB_EXTENSION) \
  26. ../common-src/libamanda.$(LIB_EXTENSION) \
  27. $(READLINE_LIBS)
  28. amidxtaped_LDADD = $(LDADD) \
  29. ../gnulib/libgnu.$(LIB_EXTENSION) \
  30. ../amandad-src/libamandad.$(LIB_EXTENSION)
  31. amidxtaped_SOURCES = amidxtaped.c
  32. amfetchdump_SOURCES = amfetchdump.c
  33. librestore_la_SOURCES = restore.c
  34. librestore_la_LDFLAGS = -release $(VERSION)
  35. librestore_la_LIBADD = ../common-src/libamanda.$(LIB_EXTENSION) \
  36. ../server-src/libamserver.$(LIB_EXTENSION) \
  37. ../device-src/libamdevice.$(LIB_EXTENSION)
  38. noinst_HEADERS = restore.h
  39. INSTALLPERMS_exec = \
  40. dest=$(sbindir) chown=amanda $(sbin_PROGRAMS) \
  41. dest=$(amlibexecdir) chown=amanda $(amlibexec_PROGRAMS)
  42. lint:
  43. @ for p in $(amlibexec_PROGRAMS) $(sbin_PROGRAMS); do \
  44. p=`basename $$p $(EXEEXT)`; \
  45. f="$$p.c $(librestore_la_SOURCES)"; \
  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 \
  52. $(INCLUDES) $$f; \
  53. if [ $$? -ne 0 ]; then \
  54. exit 1; \
  55. fi; \
  56. done; \
  57. exit 0