| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #
- # Copyright (C) 2022-2023 Red Hat, Inc. All rights reserved.
- #
- # Author: Christine Caulfield <ccaulfie@redhat.com>
- #
- # This software licensed under GPL-2.0+
- #
- MAINTAINERCLEANFILES = Makefile.in
- include $(top_srcdir)/build-aux/rust.mk
- # required for make check
- localver = $(corosyncrustver)
- SUBDIRS = . tests
- EXTRA_DIST = \
- $(RUST_COMMON) \
- $(RUST_SHIP_SRCS) \
- README.md
- RUST_SHIP_SRCS = \
- src/cpg.rs \
- src/cfg.rs \
- src/quorum.rs \
- src/votequorum.rs \
- src/cmap.rs \
- src/lib.rs \
- src/sys/mod.rs
- RUST_BUILT_SRCS = \
- src/sys/cpg.rs \
- src/sys/cfg.rs \
- src/sys/quorum.rs \
- src/sys/votequorum.rs \
- src/sys/cmap.rs
- src/sys/cpg.rs: ../../include/corosync/cpg.h
- $(top_srcdir)/build-aux/rust-regen.sh $^ $@ CPG --blocklist-function=inet6.* --blocklist-function==.*etsourcefilter -- -I$(top_srcdir)/include
- src/sys/cfg.rs: ../../include/corosync/cfg.h
- $(top_srcdir)/build-aux/rust-regen.sh $^ $@ CFG --blocklist-function=inet6.* --blocklist-function=.*etsourcefilter -- -I$(top_srcdir)/include
- src/sys/quorum.rs: ../../include/corosync/quorum.h
- $(top_srcdir)/build-aux/rust-regen.sh $^ $@ QUORUM -- -I$(top_srcdir)/include
- src/sys/votequorum.rs: ../../include/corosync/votequorum.h
- $(top_srcdir)/build-aux/rust-regen.sh $^ $@ VOTEQUORUM -- -I$(top_srcdir)/include
- src/sys/cmap.rs: ../../include/corosync/cmap.h
- $(top_srcdir)/build-aux/rust-regen.sh $^ $@ CMAP -- -I$(top_srcdir)/include $(LIBQB_CFLAGS)
- all-local: cargo-tree-prep target/$(RUST_TARGET_DIR)/cpg.rlib \
- target/$(RUST_TARGET_DIR)/cfg.rlib \
- target/$(RUST_TARGET_DIR)/quorum.rlib \
- target/$(RUST_TARGET_DIR)/votequorum.rlib \
- target/$(RUST_TARGET_DIR)/cmap.rlib
- clean-local: cargo-clean
|