# Build the C token example. Only P-256 is enabled to keep code size down.

UECC_DIR := ../uECC
CFLAGS   := -O2 -Wall -Wextra -I. -I$(UECC_DIR) \
            -DuECC_SUPPORTS_secp160r1=0 -DuECC_SUPPORTS_secp192r1=0 \
            -DuECC_SUPPORTS_secp224r1=0 -DuECC_SUPPORTS_secp256k1=0

token_example: token_example.c device_token.c $(UECC_DIR)/uECC.c
	$(CC) $(CFLAGS) $^ -o $@

run: token_example
	./token_example

clean:
	rm -f token_example

.PHONY: run clean
