PageRenderTime 45ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Makefile | 62 lines | 41 code | 14 blank | 7 comment | 2 complexity | a4f820077b4af189f6b3baa492f402ca MD5 | raw file
  1. # Makefile for Amanda client 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)/gnulib
  7. AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
  8. AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
  9. LINT=@AMLINT@
  10. LINTFLAGS=@AMLINTFLAGS@
  11. amlib_LTLIBRARIES = libamandad.la
  12. LIB_EXTENSION = la
  13. amlibexec_PROGRAMS = amandad
  14. libamandad_la_SOURCES= amandad_util.c
  15. libamandad_la_LDFLAGS = -release $(VERSION)
  16. libamandad_la_LIBADD = ../common-src/libamanda.la
  17. noinst_HEADERS = amandad.h
  18. ###
  19. # Because libamanda includes routines (e.g. regex) provided by some system
  20. # libraries, and because of the way libtool sets up the command line, we
  21. # need to list libamanda twice here, first to override the system library
  22. # routines, and second to pick up any references in the other libraries.
  23. ###
  24. LDADD = ../common-src/libamanda.$(LIB_EXTENSION) \
  25. libamandad.$(LIB_EXTENSION) \
  26. ../common-src/libamanda.$(LIB_EXTENSION) \
  27. ../gnulib/libgnu.$(LIB_EXTENSION)
  28. INSTALLPERMS_exec = \
  29. dest=$(amlibexecdir) chown=amanda \
  30. $(amlibexec_PROGRAMS)
  31. INSTALLPERMS_data = \
  32. dest=$(amlibexecdir) chown=amanda \
  33. $(amlibexec_SCRIPTS)
  34. lint:
  35. @ for p in $(amlibexec_PROGRAMS); do \
  36. f="$$p.c $(libamandad_la_SOURCES)"; \
  37. (cd ../common-src; make listlibsrc); \
  38. f="$$f "`cat ../common-src/listlibsrc.output`; \
  39. (cd ../server-src; make listlibsrc); \
  40. f="$$f "`cat ../server-src/listlibsrc.output`; \
  41. echo $(LINT) $$f; \
  42. $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config \
  43. $(INCLUDES) $$f; \
  44. if [ $$? -ne 0 ]; then \
  45. exit 1; \
  46. fi; \
  47. done; \
  48. exit 0