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

/amanda/trunk/client-src/Makefile.am

#
Makefile | 93 lines | 62 code | 23 blank | 8 comment | 4 complexity | 6ccdf8e5046a8859c4baee2343ddc6e2 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) $(AS_NEEDED_FLAGS)
  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) $(AS_NEEDED_FLAGS)
  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 $(SCRIPTS_PERL) $(SCRIPTS_SHELL)
  44. DISTCLEANFILES = config.log
  45. sendbackup_SOURCES = sendbackup.c sendbackup.h \
  46. sendbackup-dump.c sendbackup-gnutar.c
  47. noinst_HEADERS = amandates.h getfsent.h \
  48. findpass.h client_util.h
  49. if WANT_SETUID_CLIENT
  50. INSTALLPERMS_exec = dest=$(amlibexecdir) chown=root:setuid chmod=04750 \
  51. calcsize killpgrp rundump runtar
  52. endif
  53. lint:
  54. @ for p in $(amlibexec_PROGRAMS); do \
  55. p=`basename $$p $(EXEEXT)`; \
  56. f="$$p.c $(libamclient_la_SOURCES)"; \
  57. (cd ../common-src; make listlibsrc); \
  58. f="$$f "`cat ../common-src/listlibsrc.output`; \
  59. echo $(LINT) $$f; \
  60. $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config \
  61. $(INCLUDES) $$f; \
  62. if [ $$? -ne 0 ]; then \
  63. exit 1; \
  64. fi; \
  65. done; \
  66. exit 0
  67. getfsent_SOURCES = getfsent.test.c
  68. %.test.c: $(srcdir)/%.c
  69. echo '#define TEST' >$@
  70. echo '#include "$<"' >>$@