summaryrefslogtreecommitdiff
path: root/test/string/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/string/Makefile')
-rw-r--r--test/string/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/string/Makefile b/test/string/Makefile
index b3021e0fc..5384c9dec 100644
--- a/test/string/Makefile
+++ b/test/string/Makefile
@@ -20,6 +20,7 @@ endif
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $@
TARGETS=string string_glibc
+TARGETS+=testcopy testcopy_glibc
all: $(TARGETS)
@@ -43,6 +44,26 @@ string_glibc: string.c Makefile $(TOPDIR)libc.a
-./$@
-@ echo " "
+testcopy: testcopy.c Makefile $(TOPDIR)libc.a
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Compiling vs uCLibc: "
+ -@ echo " "
+ $(CC) $(XCFLAGS) -c $< -o $@.o
+ $(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ -./$@
+ -@ echo " "
+
+testcopy_glibc: testcopy.c Makefile $(TOPDIR)libc.a
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Compiling vs GNU libc: "
+ -@ echo " "
+ $(CC) $(YCFLAGS) -c $< -o $@.o
+ $(CC) $(YLDFLAGS) --static $@.o -o $@
+ -./$@
+ -@ echo " "
+
clean:
rm -f *.[oa] *~ core $(TARGETS)