Move base64 test code into a new tests subdirectory
[libeap.git] / tests / Makefile
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644 (file)
index 0000000..9c4a428
--- /dev/null
@@ -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