PageRenderTime 47ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/amanda/tags/3_3_0beta1/amandad-src/Makefile.am

#
Makefile | 55 lines | 36 code | 12 blank | 7 comment | 2 complexity | 9cf40279c417c50f06de28180de1b4fb 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. 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.la \
  25. libamandad.la \
  26. ../common-src/libamanda.la \
  27. ../gnulib/libgnu.la
  28. lint:
  29. @ for p in $(amlibexec_PROGRAMS); do \
  30. p=`basename $$p $(EXEEXT)`; \
  31. f="$$p.c $(libamandad_la_SOURCES)"; \
  32. (cd ../common-src; make listlibsrc); \
  33. f="$$f "`cat ../common-src/listlibsrc.output`; \
  34. (cd ../server-src; make listlibsrc); \
  35. f="$$f "`cat ../server-src/listlibsrc.output`; \
  36. echo $(LINT) $$f; \
  37. $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config \
  38. $(INCLUDES) $$f; \
  39. if [ $$? -ne 0 ]; then \
  40. exit 1; \
  41. fi; \
  42. done; \
  43. exit 0