aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 85a7552..477653e 100644
--- a/Makefile
+++ b/Makefile
@@ -83,9 +83,11 @@ LIBS := ${LIBHAL_BLD}/libhal.a ${LIBTFM_BLD}/libtfm.a
ifeq "${UNAME}" "Darwin"
SONAME := libpkcs11.dylib
SOFLAGS := -dynamiclib
+ LIBHAL_TARGET := serial
else
SONAME := libpkcs11.so
SOFLAGS := -Wl,-Bsymbolic-functions -Wl,-Bsymbolic -Wl,-z,noexecstack -Wl,-soname,${SONAME}.0
+ LIBHAL_TARGET := daemon
endif
ifeq "${ENABLE_FOOTNOTE_WARNINGS}" "no"
@@ -132,7 +134,7 @@ ${LIBTFM_BLD}/libtfm.a: .FORCE
${MAKE} -C libtfm
${LIBHAL_BLD}/libhal.a: .FORCE ${LIBTFM_BLD}/libtfm.a
- ${MAKE} -C libhal daemon
+ ${MAKE} -C libhal ${LIBHAL_TARGET}
${SQLITE3_BLD}/libsqlite3.a: .FORCE
${MAKE} -C sqlite3