aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-05 20:43:07 +0200
committerJouni Malinen <j@w1.fi>2009-12-05 20:43:07 +0200
commit1801bd7faee0339e9cbf33336bd55ec649a54755 (patch)
tree84aca3988e4e8fb60a37c9313654d432b80bc897 /tests/Makefile
parenta486c0c72a2856161f421e1d4c98e424508be18e (diff)
downloadexternal_wpa_supplicant_8_ti-1801bd7faee0339e9cbf33336bd55ec649a54755.zip
external_wpa_supplicant_8_ti-1801bd7faee0339e9cbf33336bd55ec649a54755.tar.gz
external_wpa_supplicant_8_ti-1801bd7faee0339e9cbf33336bd55ec649a54755.tar.bz2
Move base64 test code into a new tests subdirectory
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 0000000..9c4a428
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,27 @@
+TESTS=test-base64
+
+all: $(TESTS)
+
+ifndef CC
+CC=gcc
+endif
+
+ifndef LDO
+LDO=$(CC)
+endif
+
+ifndef CFLAGS
+CFLAGS = -MMD -O2 -Wall -g
+endif
+
+CFLAGS += -I../src
+
+
+BASE64_OBJS=test-base64.o ../src/utils/base64.o ../src/utils/os_unix.o
+
+test-base64: $(BASE64_OBJS)
+ $(LDO) $(LDFLAGS) -o $@ $(BASE64_OBJS)
+
+clean:
+ $(MAKE) -C ../src clean
+ rm -f $(TESTS) *~ *.o