Makefile.am 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # Copyright (C) 2022-2023 Red Hat, Inc. All rights reserved.
  3. #
  4. # Author: Christine Caulfield <ccaulfie@redhat.com>
  5. #
  6. # This software licensed under GPL-2.0+
  7. #
  8. MAINTAINERCLEANFILES = Makefile.in
  9. include $(top_srcdir)/build-aux/rust.mk
  10. # required for make check
  11. localver = $(corosyncrustver)
  12. SUBDIRS = . tests
  13. EXTRA_DIST = \
  14. $(RUST_COMMON) \
  15. $(RUST_SHIP_SRCS) \
  16. README.md
  17. RUST_SHIP_SRCS = \
  18. src/cpg.rs \
  19. src/cfg.rs \
  20. src/quorum.rs \
  21. src/votequorum.rs \
  22. src/cmap.rs \
  23. src/lib.rs \
  24. src/sys/mod.rs
  25. RUST_BUILT_SRCS = \
  26. src/sys/cpg.rs \
  27. src/sys/cfg.rs \
  28. src/sys/quorum.rs \
  29. src/sys/votequorum.rs \
  30. src/sys/cmap.rs
  31. src/sys/cpg.rs: cargo-tree-prep ../../include/corosync/cpg.h
  32. $(top_srcdir)/build-aux/rust-regen.sh $(top_srcdir)/include/corosync/cpg.h $@ CPG --blocklist-function=inet6.* --blocklist-function==.*etsourcefilter -- -I$(top_srcdir)/include
  33. src/sys/cfg.rs: cargo-tree-prep ../../include/corosync/cfg.h
  34. $(top_srcdir)/build-aux/rust-regen.sh $(top_srcdir)/include/corosync/cfg.h $@ CFG --blocklist-function=inet6.* --blocklist-function=.*etsourcefilter -- -I$(top_srcdir)/include
  35. src/sys/quorum.rs: cargo-tree-prep ../../include/corosync/quorum.h
  36. $(top_srcdir)/build-aux/rust-regen.sh $(top_srcdir)/include/corosync/quorum.h $@ QUORUM -- -I$(top_srcdir)/include
  37. src/sys/votequorum.rs: cargo-tree-prep ../../include/corosync/votequorum.h
  38. $(top_srcdir)/build-aux/rust-regen.sh $(top_srcdir)/include/corosync/votequorum.h $@ VOTEQUORUM -- -I$(top_srcdir)/include
  39. src/sys/cmap.rs: cargo-tree-prep ../../include/corosync/cmap.h
  40. $(top_srcdir)/build-aux/rust-regen.sh $(top_srcdir)/include/corosync/cmap.h $@ CMAP -- -I$(top_srcdir)/include $(LIBQB_CFLAGS)
  41. all-local: target/$(RUST_TARGET_DIR)/cpg.rlib \
  42. target/$(RUST_TARGET_DIR)/cfg.rlib \
  43. target/$(RUST_TARGET_DIR)/quorum.rlib \
  44. target/$(RUST_TARGET_DIR)/votequorum.rlib \
  45. target/$(RUST_TARGET_DIR)/cmap.rlib
  46. clean-local: cargo-clean