Add rules for building src/crypto as a library

For now, this is hardcoded to support only the internal crypto
implementation.
This commit is contained in:
Jouni Malinen 2009-12-05 22:03:46 +02:00
parent 841b52b403
commit 631afd993f
5 changed files with 74 additions and 16 deletions

View file

@ -17,11 +17,15 @@ endif
CFLAGS += -I../src
CFLAGS += -I../src/utils
LIBS = ../src/utils/libutils.a
LIBS = ../src/utils/libutils.a \
../src/crypto/libcrypto.a
../src/utils/libutils.a:
$(MAKE) -C ../src/utils
../src/crypto/libcrypto.a:
$(MAKE) -C ../src/crypto
BASE64_OBJS=test-base64.o \
$(LIBS)
@ -30,10 +34,6 @@ test-base64: $(BASE64_OBJS)
MILENAGE_OBJS=test-milenage.o \
../src/crypto/aes-internal.o \
../src/crypto/aes-internal-enc.o \
../src/crypto/aes-encblock.o \
../src/crypto/milenage.o \
$(LIBS)
test-milenage: $(MILENAGE_OBJS)