PageRenderTime 43ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Makefile | 64 lines | 43 code | 14 blank | 7 comment | 2 complexity | 7f6a031bf7ddbeff26fd79b5943ade3f MD5 | raw file
  1. # Makefile for Amanda client 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)/gnulib
  8. AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
  9. AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
  10. LINT=$(AMLINT)
  11. LINTFLAGS=$(AMLINTFLAGS)
  12. amlib_LTLIBRARIES = libamandad.la
  13. LIB_EXTENSION = la
  14. amlibexec_PROGRAMS = amandad
  15. libamandad_la_SOURCES= amandad_util.c
  16. libamandad_la_LDFLAGS = -release $(VERSION)
  17. libamandad_la_LIBADD = ../common-src/libamanda.la
  18. noinst_HEADERS = amandad.h
  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 = ../common-src/libamanda.$(LIB_EXTENSION) \
  26. libamandad.$(LIB_EXTENSION) \
  27. ../common-src/libamanda.$(LIB_EXTENSION) \
  28. ../gnulib/libgnu.$(LIB_EXTENSION)
  29. INSTALLPERMS_exec = \
  30. dest=$(amlibexecdir) chown=amanda \
  31. $(amlibexec_PROGRAMS)
  32. INSTALLPERMS_data = \
  33. dest=$(amlibexecdir) chown=amanda \
  34. $(amlibexec_SCRIPTS)
  35. lint:
  36. @ for p in $(amlibexec_PROGRAMS); do \
  37. p=`basename $$p $(EXEEXT)`; \
  38. f="$$p.c $(libamandad_la_SOURCES)"; \
  39. (cd ../common-src; make listlibsrc); \
  40. f="$$f "`cat ../common-src/listlibsrc.output`; \
  41. (cd ../server-src; make listlibsrc); \
  42. f="$$f "`cat ../server-src/listlibsrc.output`; \
  43. echo $(LINT) $$f; \
  44. $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config \
  45. $(INCLUDES) $$f; \
  46. if [ $$? -ne 0 ]; then \
  47. exit 1; \
  48. fi; \
  49. done; \
  50. exit 0