Makefile.am 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright (C) 2020 Maxime Devos
  2. # SPDX-License-Identifier: FSFAP
  3. # Copying and distribution of this file, with or without modification,
  4. # are permitted in any medium without royalty provided the copyright
  5. # notice and this notice are preserved. This file is offered as-is,
  6. # without any warranty.
  7. ACLOCAL_AMFLAGS = -I m4
  8. AM_CPPFLAGS = -I$(top_srcdir)/include
  9. libexec_PROGRAMS = \
  10. rehash-service
  11. rehash_service_CFLAGS = $(GNUNETUTIL_CFLAGS) $(GNUNETDATASTORE_CFLAGS) \
  12. $(GNUNETDHT_CFLAGS) -I$(top_srcdir)/include
  13. rehash_service_LDFLAGS = $(GNUNETUTIL_LDFLAGS) $(GNUNETDATASTORE_LDFLAGS) \
  14. $(GNUNETDHT_LDFLAGS) -no-undefined
  15. rehash_service_LDADD = $(GNUNETUTIL_LIBS) $(GNUNETDATASTORE_LIBS) \
  16. $(GNUNETDHT_LIBS) librehash.la
  17. rehash_service_SOURCES = c-code/rehash-service.c c
  18. # that's lib-rehash, not libre-hash
  19. lib_LTLIBRARIES = librehash.la
  20. # gnunet headers depend on libextractor headers
  21. librehash_la_CFLAGS = $(GNUNETUTIL_CFLAGS) $(EXTRACTOR_CFLAGS)
  22. librehash_la_LDFLAGS = $(GNUNETUTIL_LDFLAGS) -no-undefined
  23. librehash_la_LIBADD = $(GNUNETUTIL_LIBS)
  24. librehash_la_SOURCES = c-code/rehash-api.c \
  25. c-code/rehash_dht.c \
  26. c-code/rehash-crypto-from-data.c \
  27. c-code/rehash-crypto-to-data.c \
  28. c-code/rehash-crypto-from-hash.c
  29. scheme-tests/nonetconf.conf: scheme-tests/nonetconf.conf.in
  30. $(SED) -e 's,[@]rehash_binary@,$(abs_builddir)/rehash-service,g' \
  31. "$<" > "$@.tmp" && mv "$@.tmp" "$@"