summaryrefslogtreecommitdiffstats
path: root/userspace/Makefile
diff options
context:
space:
mode:
authorJan Chadima <jchadima@redhat.com>2010-08-02 10:56:34 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-24 20:58:30 +0200
commit71be5465628262f1a475b52eaf90c5caba5876ea (patch)
treefff8c000bb3480741e5dc34d66196ddbc11ad6f2 /userspace/Makefile
parentaf2c2e1da1a898c8968281824ba8a4d9616670dc (diff)
downloadcryptodev-linux-71be5465628262f1a475b52eaf90c5caba5876ea.tar.gz
cryptodev-linux-71be5465628262f1a475b52eaf90c5caba5876ea.tar.xz
cryptodev-linux-71be5465628262f1a475b52eaf90c5caba5876ea.zip
Initial userspace library version
Diffstat (limited to 'userspace/Makefile')
-rw-r--r--userspace/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/userspace/Makefile b/userspace/Makefile
index fddefb3..7db92d5 100644
--- a/userspace/Makefile
+++ b/userspace/Makefile
@@ -1,12 +1,19 @@
CC = gcc
-CFLAGS = -Wall -g -O2
+CFLAGS = -Wall -g -O2 -fPIC
progs := ncr-setkey
-all: $(progs)
+libobj = ncrypto_fd.o ncrypto_generate_params.o ncrypto_key.o ncrypto_masterkey.o ncrypto_params.o ncrypto_session.o
+
+all: $(progs) libcryptodev.so
ncr-setkey: setkey.c
$(CC) $(CFLAGS) $< -o $@
+libcryptodev.so: ${libobj}
+ gcc -shared -o libcryptodev.so.0.0 -Wl,-soname,libcryptodev.so.0 ${libobj}
+ ln -sf libcryptodev.so.0.0 libcryptodev.so.0
+ ln -sf libcryptodev.so.0.0 libcryptodev.so
+
clean:
rm -f *.o *~ ncr-setkey