diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-08-23 20:28:32 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-23 20:28:32 +0200 |
commit | b3fcd1e159bf7bd5b318d4558198fca090deb2fe (patch) | |
tree | d1821ce0be2ede05bc3417bcba2ace0e2002e250 /userspace/Makefile | |
parent | c3eeccf6491c632037dfef737f3e40ed24e5bf72 (diff) | |
parent | a3fe06856efe0a7b4ad713ff73a14f6af995d07e (diff) | |
download | cryptodev-linux-integration.tar.gz cryptodev-linux-integration.tar.xz cryptodev-linux-integration.zip |
Merge branch 'userspace' into integrationintegration
Conflicts:
examples/Makefile
Diffstat (limited to 'userspace/Makefile')
-rw-r--r-- | userspace/Makefile | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/userspace/Makefile b/userspace/Makefile index fddefb3..a2757a4 100644 --- a/userspace/Makefile +++ b/userspace/Makefile @@ -1,12 +1,30 @@ CC = gcc +AM_CFLAGS = -I. -fPIC CFLAGS = -Wall -g -O2 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 $@ + $(CC) $(AM_CFLAGS) $(CFLAGS) $< -o $@ + +libcryptodev.so: ${libobj} + $(CC) $(AM_CFLAGS) $(CFLAGS) -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 + +$(libobj): linux/ncr.h ncrypto_internal.h + +linux/ncr.h: ../ncr.h + mkdir -p linux + cp $< linux/ncr.h clean: - rm -f *.o *~ ncr-setkey + rm -rf *.o *~ libcryptodev.so* ncr-setkey linux + +.c.o: + $(CC) $(AM_CFLAGS) $(CFLAGS) -c -o $@ $<
\ No newline at end of file |