aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-05 21:39:41 +0200
committerJouni Malinen <j@w1.fi>2009-12-05 21:39:41 +0200
commit6a230ba27470a1128375ffb58aadef7f4b186cd0 (patch)
treef52d5fcec0b3ca603ed69f7ac9b5e3741ba0b94e /tests
parentbe916e0012c7b3fae398440b965f6c51bac9bf91 (diff)
downloadexternal_wpa_supplicant_8_ti-6a230ba27470a1128375ffb58aadef7f4b186cd0.zip
external_wpa_supplicant_8_ti-6a230ba27470a1128375ffb58aadef7f4b186cd0.tar.gz
external_wpa_supplicant_8_ti-6a230ba27470a1128375ffb58aadef7f4b186cd0.tar.bz2
Add build rules for building a library from src/utils files
This is an initial step on providing an alternative build system that uses libraries from src subdirectories.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 67570bc..bd5fbaa 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -17,24 +17,24 @@ endif
CFLAGS += -I../src
CFLAGS += -I../src/utils
-OS_OBJS=../src/utils/os_unix.o
+LIBS = ../src/utils/libutils.a
+../src/utils/libutils.a:
+ $(MAKE) -C ../src/utils
BASE64_OBJS=test-base64.o \
- ../src/utils/base64.o \
- $(OS_OBJS)
+ $(LIBS)
test-base64: $(BASE64_OBJS)
$(LDO) $(LDFLAGS) -o $@ $(BASE64_OBJS)
MILENAGE_OBJS=test-milenage.o \
- ../src/utils/wpa_debug.o \
../src/crypto/aes-internal.o \
../src/crypto/aes-internal-enc.o \
../src/crypto/aes-encblock.o \
../src/crypto/milenage.o \
- $(OS_OBJS)
+ $(LIBS)
test-milenage: $(MILENAGE_OBJS)
$(LDO) $(LDFLAGS) -o $@ $(MILENAGE_OBJS)