diff options
Diffstat (limited to 'openpgp-ffi/examples/Makefile')
-rw-r--r-- | openpgp-ffi/examples/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/openpgp-ffi/examples/Makefile b/openpgp-ffi/examples/Makefile new file mode 100644 index 00000000..29408634 --- /dev/null +++ b/openpgp-ffi/examples/Makefile @@ -0,0 +1,17 @@ +# Makefile for examples written in C. + +CARGO ?= cargo +CARGO_TARGET_DIR ?= $(shell pwd)/../../target +# We currently only support absolute paths. +CARGO_TARGET_DIR := $(abspath $(CARGO_TARGET_DIR)) + +TARGETS = example reader parser encrypt-for armor +CFLAGS = -I../include -O0 -g -Wall -Werror +LDFLAGS = -L$(CARGO_TARGET_DIR)/debug -lsequoia_openpgp_ffi + +all: $(TARGETS) + +clean: + rm -f $(TARGETS) + +$(TARGETS): ../include/sequoia/openpgp.h |