summaryrefslogtreecommitdiffstats
path: root/userspace/Makefile
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-07 07:14:40 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-24 20:58:32 +0200
commit5f96e48d0671bbcbc0b5f4c88baddc021dddc81a (patch)
treee57f657b64d2dfc3968e371bcb5dacdab51d7dd7 /userspace/Makefile
parent62548b20c29639e6ddb5435514a0cc7d45700cbb (diff)
downloadcryptodev-linux-5f96e48d0671bbcbc0b5f4c88baddc021dddc81a.tar.gz
cryptodev-linux-5f96e48d0671bbcbc0b5f4c88baddc021dddc81a.tar.xz
cryptodev-linux-5f96e48d0671bbcbc0b5f4c88baddc021dddc81a.zip
Abstract <linux/ncr.h> from <ncrypto.h> users
Let <ncrypto.h> users #include this header file alone, without caring about <linux/ncr.h>. To do so, set up a temporary copy of ncr.h so that the #include <linux/ncr.h> works at build time as well.
Diffstat (limited to 'userspace/Makefile')
-rw-r--r--userspace/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/userspace/Makefile b/userspace/Makefile
index b87bf0c..9156205 100644
--- a/userspace/Makefile
+++ b/userspace/Makefile
@@ -1,5 +1,5 @@
CC = gcc
-CFLAGS = -Wall -g -O2 -fPIC
+CFLAGS = -I. -Wall -g -O2 -fPIC
progs := ncr-setkey
@@ -15,5 +15,11 @@ libcryptodev.so: ${libobj}
ln -sf libcryptodev.so.0.0 libcryptodev.so.0
ln -sf libcryptodev.so.0.0 libcryptodev.so
+$(libobj): linux/ncr.h
+
+linux/ncr.h: ../ncr.h
+ mkdir -p linux
+ cp $< linux/ncr.h
+
clean:
- rm -f *.o *~ libcryptodev.so* ncr-setkey
+ rm -rf *.o *~ libcryptodev.so* ncr-setkey linux