summaryrefslogtreecommitdiff
path: root/test/crypt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/crypt/Makefile')
-rw-r--r--test/crypt/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/crypt/Makefile b/test/crypt/Makefile
index 97a7cfcc4..fe743aa45 100644
--- a/test/crypt/Makefile
+++ b/test/crypt/Makefile
@@ -21,7 +21,7 @@
TESTDIR=../
include $(TESTDIR)/Rules.mak
-TARGETS=diff
+TARGETS=diff md5c-test
EXTRA_LIBS=-lcrypt
all: $(TARGETS)
@@ -56,7 +56,18 @@ diff: crypt_glibc crypt
-diff -u crypt_glibc.out crypt.out
-@ echo " "
+md5c-test: md5c-test.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Compiling vs uClibc: "
+ -@ echo " "
+ $(CC) $(CFLAGS) -c $< -o $@.o
+ $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ $(STRIPTOOL) -x -R .note -R .comment $@
+ -./$@
+ -@ echo " "
+
clean:
- rm -f *.[oa] *~ core crypt_glibc crypt crypt_glibc.out crypt.out
+ rm -f *.[oa] *~ core crypt_glibc crypt crypt_glibc.out crypt.out md5c-test