summaryrefslogtreecommitdiff
path: root/test/crypt/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-26 15:29:24 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-26 15:29:24 +0000
commit75e3848d490f4a8381b7d73e2f6444b22eeeed34 (patch)
tree544e9e729b86870b154104adafadc8a91733154a /test/crypt/Makefile
parent857146f2320327e2f710be17b475809367bd76b0 (diff)
Add an md5crypt test
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