diff options
| author | Miloslav Trmač <mitr@redhat.com> | 2010-08-07 07:14:40 +0200 |
|---|---|---|
| committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-24 20:58:32 +0200 |
| commit | 5f96e48d0671bbcbc0b5f4c88baddc021dddc81a (patch) | |
| tree | e57f657b64d2dfc3968e371bcb5dacdab51d7dd7 /userspace/Makefile | |
| parent | 62548b20c29639e6ddb5435514a0cc7d45700cbb (diff) | |
| download | cryptodev-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/Makefile | 10 |
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 |
