summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/examples/Makefile
blob: d935ea5245ccc515a17973f5dedbf6c6cb8f26e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 type-safety-demo
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