[Cryptech-Commits] [sw/libhal] 31/58: Build issues on Novena.

git at cryptech.is git at cryptech.is
Tue Jul 7 18:25:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository sw/libhal.

commit ab7d78b06974aa35bf42ad266ef0b72e188d120a
Author: Rob Austein <sra at hactrn.net>
Date:   Thu Jun 11 12:23:36 2015 -0400

    Build issues on Novena.
---
 cryptech.h        |  3 +++
 tests/Makefile.in | 12 +++++++-----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/cryptech.h b/cryptech.h
index 6f7d439..2f8abc9 100644
--- a/cryptech.h
+++ b/cryptech.h
@@ -460,6 +460,9 @@ typedef enum { HAL_ERROR_LIST N_HAL_ERRORS } hal_error_t;
  * Public functions.
  */
 
+#include <stdint.h>
+#include <sys/types.h>
+
 extern const char *hal_error_string(const hal_error_t err);
 
 /*
diff --git a/tests/Makefile.in b/tests/Makefile.in
index 46a3aba..b5801d9 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -33,7 +33,7 @@ BIN		= test-aes-key-wrap test-hash test-pbkdf2 test-rsa
 
 CC		= @CC@
 CFLAGS		= @CFLAGS@ -I..
-LDFLAGS		= @LDFLAGS@ ${LIB}
+LDFLAGS		= @LDFLAGS@
 TFMDIR		= @TFMDIR@
 
 prefix		= @prefix@
@@ -44,10 +44,6 @@ abs_top_builddir= @abs_top_builddir@
 
 all: ${BIN}
 
-*.o: ${INC}
-
-${BIN}: ${LIB}
-
 test: all
 	for i in ${BIN}; do ./$$i; done
 
@@ -56,3 +52,9 @@ clean:
 
 distclean: clean
 	rm -f Makefile
+
+${BIN}: %: %.o ${LIB}
+	${CC} ${CFLAGS} -o $@ $^ ${LDFLAGS}
+
+%.o: %.c ${INC}
+	${CC} ${CFLAGS} -c -o $@ $<



More information about the Commits mailing list