jack1 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.7KB

  1. AUTOMAKE_OPTIONS = subdir-objects
  2. MAINTAINERCLEANFILES = Makefile.in jackd.1 jack_md5.h
  3. if USE_CAPABILITIES
  4. CAP_PROGS = jackstart
  5. CAP_LIBS = -lcap
  6. install-exec-hook:
  7. if [ "`id -u`" = "0" ]; \
  8. then chown root.root $(DESTDIR)$(bindir)/jackd; \
  9. chmod 555 $(DESTDIR)$(bindir)/jackd; \
  10. chown root.root $(DESTDIR)$(bindir)/jackstart; \
  11. chmod 4555 $(DESTDIR)$(bindir)/jackstart; \
  12. else echo "You must be root to set ownership and permissions"; \
  13. echo " for jackd and jackstart."; \
  14. fi
  15. else
  16. CAP_PROGS =
  17. CAP_LIBS =
  18. install-exec-hook:
  19. @echo "Nothing to make for $@."
  20. endif
  21. bin_PROGRAMS = jackd $(CAP_PROGS)
  22. AM_CFLAGS = $(JACK_CFLAGS) -DJACK_LOCATION=\"$(bindir)\"
  23. jackd_SOURCES = jackd.c
  24. jackd_LDADD = libjackserver.la $(CAP_LIBS) @OS_LDFLAGS@
  25. noinst_HEADERS = jack_md5.h md5.h md5_loc.h \
  26. clientengine.h transengine.h
  27. BUILT_SOURCES = jack_md5.h
  28. jack_md5.h: jackd
  29. if STRIPPED_JACKD
  30. strip -R .note -R .comment .libs/jackd
  31. endif
  32. if USE_MD5SUM
  33. echo "#define JACKD_MD5_SUM \"`md5sum .libs/jackd | awk '{print $$1}'`\"" > jack_md5.h
  34. else
  35. echo "#define JACKD_MD5_SUM \"`md5 -q .libs/jackd | awk '{print $$1}'`\"" > jack_md5.h
  36. endif
  37. jackstart_SOURCES = jackstart.c md5.c
  38. jackstart_LDFLAGS = -lcap
  39. lib_LTLIBRARIES = libjackserver.la
  40. libjackserver_la_CFLAGS = $(AM_CFLAGS)
  41. libjackserver_la_SOURCES = engine.c clientengine.c transengine.c controlapi.c
  42. libjackserver_la_LIBADD = $(top_builddir)/libjack/simd.lo $(top_builddir)/libjack/libjackcommon.la $(top_builddir)/libjack/libjackdaemon.la -ldb @OS_LDFLAGS@
  43. libjackserver_la_LDFLAGS = -export-dynamic -version-info @JACK_SO_VERSION@
  44. man_MANS = jackd.1 jackstart.1
  45. EXTRA_DIST = $(man_MANS)
  46. dist-hook:
  47. rm -f $(distdir)/jack_md5.h
  48. distclean-local:
  49. rm -f $(top_builddir)/jackd/jack_md5.h