aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-05-03 23:40:59 -0400
committerRob Austein <sra@hactrn.net>2015-05-03 23:40:59 -0400
commit865fffeafdc6622285a2dd31e17999965569312a (patch)
tree01f28928edca363146d0ef5c9f6908983443970b /GNUmakefile
Initial commit of AES Key Wrap implementation.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..6ff3963
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,22 @@
+CRYPTLIB_DIR := /Users/sra/cryptlib/cryptlib-3.4.2
+
+CFLAGS += -g -I${CRYPTLIB_DIR} -DAES_KEY_WRAP_SELF_TEST
+LDFLAGS += -g -L${CRYPTLIB_DIR} -lcl
+
+EXE := aes_key_wrap
+SRC := $(wildcard *.c)
+OBJ := $(SRC:.c=.o)
+
+all: ${EXE}
+
+clean:
+ rm -f *.o ${EXE}
+
+${EXE}: ${OBJ}
+ ${CC} ${LDFLAGS} -o $@ $^
+
+aes_key_wrap.o = aes_key_wrap.c aes_key_wrap.h
+
+test: ${EXE}
+ ./${EXE}
+