PageRenderTime 63ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Makefile | 95 lines | 63 code | 24 blank | 8 comment | 4 complexity | 8b6fb79fc33c553daefc1ee888829ca0 MD5 | raw file
  1. # Makefile for Amanda client programs.
  2. include $(top_srcdir)/config/automake/vars.am
  3. include $(top_srcdir)/config/automake/scripts.am
  4. include $(top_srcdir)/config/automake/installperms.am
  5. include $(top_srcdir)/config/automake/precompile.am
  6. INCLUDES = -I$(top_builddir)/common-src \
  7. -I$(top_srcdir)/common-src \
  8. -I$(top_srcdir)/amandad-src \
  9. -I$(top_srcdir)/gnulib
  10. AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
  11. AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
  12. LINT=$(AMLINT)
  13. LINTFLAGS=$(AMLINTFLAGS)
  14. amlib_LTLIBRARIES = libamclient.la
  15. amlibexec_PROGRAMS = noop calcsize killpgrp rundump runtar selfcheck sendbackup sendsize versionsuffix
  16. amlibexec_SCRIPTS = patch-system
  17. CHECK_PERL = $(sbin_SCRIPTS)
  18. SCRIPTS_PERL = $(CHECK_PERL)
  19. SCRIPTS_SHELL = $(amlibexec_SCRIPTS)
  20. libamclient_la_SOURCES= amandates.c getfsent.c \
  21. unctime.c client_util.c
  22. if WANT_SAMBA
  23. libamclient_la_SOURCES += findpass.c
  24. endif
  25. libamclient_la_LDFLAGS = -release $(VERSION)
  26. libamclient_la_LIBADD = ../common-src/libamanda.la
  27. ###
  28. # Because libamanda includes routines (e.g. regex) provided by some system
  29. # libraries, and because of the way libtool sets up the command line, we
  30. # need to list libamanda twice here, first to override the system library
  31. # routines, and second to pick up any references in the other libraries.
  32. ###
  33. LDADD = ../common-src/libamanda.la \
  34. libamclient.la \
  35. ../amandad-src/libamandad.la \
  36. ../common-src/libamanda.la \
  37. ../gnulib/libgnu.la
  38. # these are used for testing only:
  39. TEST_PROGS = getfsent
  40. EXTRA_PROGRAMS = $(TEST_PROGS)
  41. CLEANFILES += *.test.c
  42. sendbackup_SOURCES = sendbackup.c sendbackup.h \
  43. sendbackup-dump.c sendbackup-gnutar.c
  44. noinst_HEADERS = amandates.h getfsent.h \
  45. findpass.h client_util.h
  46. INSTALLPERMS_exec = chown=amanda \
  47. dest=$(amlibexecdir) $(amlibexec_PROGRAMS)
  48. INSTALLPERMS_data = chown=amanda \
  49. dest=$(sbindir) $(sbin_SCRIPTS) \
  50. dest=$(amlibexecdir) $(amlibexec_SCRIPTS)
  51. if WANT_SETUID_CLIENT
  52. INSTALLPERMS_exec += dest=$(amlibexecdir) chown=root chmod=u+s,o-rwx \
  53. calcsize killpgrp rundump runtar
  54. endif
  55. lint:
  56. @ for p in $(amlibexec_PROGRAMS); do \
  57. f="$$p.c $(libamclient_la_SOURCES)"; \
  58. (cd ../common-src; make listlibsrc); \
  59. f="$$f "`cat ../common-src/listlibsrc.output`; \
  60. echo $(LINT) $$f; \
  61. $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config \
  62. $(INCLUDES) $$f; \
  63. if [ $$? -ne 0 ]; then \
  64. exit 1; \
  65. fi; \
  66. done; \
  67. exit 0
  68. getfsent_SOURCES = getfsent.test.c
  69. %.test.c: $(srcdir)/%.c
  70. echo '#define TEST' >$@
  71. echo '#include "$<"' >>$@