PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

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

#
Makefile | 92 lines | 61 code | 23 blank | 8 comment | 4 complexity | a3087dc3dd08208b15287a23a16eac55 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
  16. amlibexec_SCRIPTS_SHELL = patch-system
  17. sbin_SCRIPTS_PERL = amdump_client
  18. SCRIPTS_PERL = $(sbin_SCRIPTS_PERL)
  19. SCRIPTS_SHELL = $(amlibexec_SCRIPTS_SHELL)
  20. sbin_SCRIPTS = $(sbin_SCRIPTS_PERL)
  21. amlibexec_SCRIPTS = $(amlibexec_SCRIPTS_SHELL)
  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. if WANT_SETUID_CLIENT
  49. INSTALLPERMS_exec = dest=$(amlibexecdir) chown=root:setuid chmod=04750 \
  50. calcsize killpgrp rundump runtar
  51. endif
  52. lint:
  53. @ for p in $(amlibexec_PROGRAMS); do \
  54. p=`basename $$p $(EXEEXT)`; \
  55. f="$$p.c $(libamclient_la_SOURCES)"; \
  56. (cd ../common-src; make listlibsrc); \
  57. f="$$f "`cat ../common-src/listlibsrc.output`; \
  58. echo $(LINT) $$f; \
  59. $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config \
  60. $(INCLUDES) $$f; \
  61. if [ $$? -ne 0 ]; then \
  62. exit 1; \
  63. fi; \
  64. done; \
  65. exit 0
  66. getfsent_SOURCES = getfsent.test.c
  67. %.test.c: $(srcdir)/%.c
  68. echo '#define TEST' >$@
  69. echo '#include "$<"' >>$@