From 129e802fd4e0ca73f9dbae7968331d055c3a97d1 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 24 Jun 2016 17:08:20 -0400 Subject: VPATH build for libpkcs11.so, and first cut at libpkcs11.dylib for Mac OS X. The Mac OS X build compiles, but is otherwise completely untested, and won't even be testable until cryptech_rpcd support configuring high-speed UARTs on Mac OS X (OS-specific voodoo). --- libhal/GNUmakefile | 15 +++++++++++++++ libhal/tests/GNUmakefile | 10 ++++++++++ libhal/utils/GNUmakefile | 10 ++++++++++ 3 files changed, 35 insertions(+) create mode 100644 libhal/GNUmakefile create mode 100644 libhal/tests/GNUmakefile create mode 100644 libhal/utils/GNUmakefile (limited to 'libhal') diff --git a/libhal/GNUmakefile b/libhal/GNUmakefile new file mode 100644 index 0000000..13c39ec --- /dev/null +++ b/libhal/GNUmakefile @@ -0,0 +1,15 @@ +ifndef CRYPTECH_ROOT + CRYPTECH_ROOT := $(abspath ../../..) +endif + +TFMDIR := $(abspath ../libtfm) + +INC = ${CRYPTECH_ROOT}/sw/libhal/hal.h +LIB = ../libhal.a + +CFLAGS += -I${CRYPTECH_ROOT}/sw/libhal + +vpath %.c ${CRYPTECH_ROOT}/sw/libhal +vpath %.h ${CRYPTECH_ROOT}/sw/libhal:${LIBTFM_DIR} + +include ${CRYPTECH_ROOT}/sw/libhal/GNUmakefile diff --git a/libhal/tests/GNUmakefile b/libhal/tests/GNUmakefile new file mode 100644 index 0000000..e158ecf --- /dev/null +++ b/libhal/tests/GNUmakefile @@ -0,0 +1,10 @@ +ifndef CRYPTECH_ROOT + CRYPTECH_ROOT := $(abspath ../../../..) +endif + +TFMDIR := $(abspath ../../libtfm) + +vpath %.c ${CRYPTECH_ROOT}/sw/libhal/tests +vpath %.h ${CRYPTECH_ROOT}/sw/libhal/tests:${LIBTFM_DIR} + +include ${CRYPTECH_ROOT}/sw/libhal/tests/GNUmakefile diff --git a/libhal/utils/GNUmakefile b/libhal/utils/GNUmakefile new file mode 100644 index 0000000..cc428ae --- /dev/null +++ b/libhal/utils/GNUmakefile @@ -0,0 +1,10 @@ +ifndef CRYPTECH_ROOT + CRYPTECH_ROOT := $(abspath ../../../..) +endif + +TFMDIR := $(abspath ../../libtfm) + +vpath %.c ${CRYPTECH_ROOT}/sw/libhal/utils +vpath %.h ${CRYPTECH_ROOT}/sw/libhal/utils:${LIBTFM_DIR} + +include ${CRYPTECH_ROOT}/sw/libhal/utils/GNUmakefile -- cgit v1.2.3