PageRenderTime 46ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Makefile | 95 lines | 63 code | 24 blank | 8 comment | 4 complexity | 55ec82befcf0afbb3cff69abac577dca 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 = patch-system
  17. SCRIPTS_PERL = $(sbin_SCRIPTS)
  18. SCRIPTS_SHELL = $(amlibexec_SCRIPTS)
  19. libamclient_la_SOURCES= amandates.c getfsent.c \
  20. unctime.c client_util.c
  21. if WANT_SAMBA
  22. libamclient_la_SOURCES += findpass.c
  23. endif
  24. libamclient_la_LDFLAGS = -release $(VERSION)
  25. libamclient_la_LIBADD = ../common-src/libamanda.la
  26. ###
  27. # Because libamanda includes routines (e.g. regex) provided by some system
  28. # libraries, and because of the way libtool sets up the command line, we
  29. # need to list libamanda twice here, first to override the system library
  30. # routines, and second to pick up any references in the other libraries.
  31. ###
  32. LDADD = ../common-src/libamanda.la \
  33. libamclient.la \
  34. ../amandad-src/libamandad.la \
  35. ../common-src/libamanda.la \
  36. ../gnulib/libgnu.la
  37. # these are used for testing only:
  38. TEST_PROGS = getfsent
  39. EXTRA_PROGRAMS = $(TEST_PROGS)
  40. CLEANFILES += *.test.c
  41. sendbackup_SOURCES = sendbackup.c sendbackup.h \
  42. sendbackup-dump.c sendbackup-gnutar.c
  43. noinst_HEADERS = amandates.h getfsent.h \
  44. findpass.h client_util.h
  45. INSTALLPERMS_exec = chown=amanda \
  46. dest=$(amlibexecdir) $(amlibexec_PROGRAMS)
  47. INSTALLPERMS_data = chown=amanda \
  48. dest=$(sbindir) $(sbin_SCRIPTS) \
  49. dest=$(amlibexecdir) $(amlibexec_SCRIPTS)
  50. if WANT_SETUID_CLIENT
  51. INSTALLPERMS_exec += dest=$(amlibexecdir) chown=root chmod=04750 \
  52. calcsize killpgrp rundump runtar
  53. endif
  54. lint:
  55. @ for p in $(amlibexec_PROGRAMS); do \
  56. p=`basename $$p $(EXEEXT)`; \
  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 "$<"' >>$@