PageRenderTime 34ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

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

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