summaryrefslogtreecommitdiff
path: root/test/malloc/Makefile
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2001-05-25 23:20:55 +0000
committerDavid Schleef <ds@schleef.org>2001-05-25 23:20:55 +0000
commit6072c7f7eabbf6b6f81aa1ee339f4966d0dd9235 (patch)
tree8b77e334674526708a76945b853ac39d3de1619a /test/malloc/Makefile
parentfce6446b7eff58d4c910e8938869b431d172db25 (diff)
Random quick-and-dirty evil malloc checker.
Diffstat (limited to 'test/malloc/Makefile')
-rw-r--r--test/malloc/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/malloc/Makefile b/test/malloc/Makefile
new file mode 100644
index 000000000..d0274d2ce
--- /dev/null
+++ b/test/malloc/Makefile
@@ -0,0 +1,22 @@
+TESTDIR=../
+include $(TESTDIR)/Rules.mak
+
+
+TARGETS=malloc
+all: $(TARGETS)
+
+malloc: malloc.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Compiling vs uClibc: "
+ -@ echo " "
+ $(TESTCC) $(CFLAGS) -c $< -o $@.o
+ $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ $(STRIPTOOL) -x -R .note -R .comment $@
+ -./$@
+ -@ echo " "
+
+clean:
+ rm -f *.[oa] *~ core $(TARGETS)
+
+