summaryrefslogtreecommitdiff
path: root/firmware/test/malloc/Makefile
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-14 08:19:57 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-14 08:19:57 +0000
commitf143fd8e36078141efdf0ef9e590d792930637fb (patch)
tree3d7a79599dca5ecb8d1163b33da4379f86f4093a /firmware/test/malloc/Makefile
parentbbdeba6d8cb2f2066e22d39c2d5937d3608fd8ed (diff)
downloadrockbox-f143fd8e36078141efdf0ef9e590d792930637fb.zip
rockbox-f143fd8e36078141efdf0ef9e590d792930637fb.tar.gz
rockbox-f143fd8e36078141efdf0ef9e590d792930637fb.tar.bz2
rockbox-f143fd8e36078141efdf0ef9e590d792930637fb.tar.xz
Moved the malloc system into the firmware/malloc/ directory, removed the
implementation files from the test/malloc/ directory, leaving only test files there. Added headers, corrected a few minor documenational errors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@571 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test/malloc/Makefile')
-rw-r--r--firmware/test/malloc/Makefile29
1 files changed, 7 insertions, 22 deletions
diff --git a/firmware/test/malloc/Makefile b/firmware/test/malloc/Makefile
index 4930e0f..c7fdedb 100644
--- a/firmware/test/malloc/Makefile
+++ b/firmware/test/malloc/Makefile
@@ -1,8 +1,4 @@
-TARGET = libdmalloc.a
-
-LIBOBJS = dmalloc.o bmalloc.o bysize.o
-
OBJS1 = mytest.o
TARGET1 = mytest
@@ -14,20 +10,17 @@ TARGET3 = dmytest
# define this to talk a lot in runtime
# -DDEBUG_VERBOSE
-CFLAGS = -g -DUNIX -DBMALLOC -Wall -DDEBUG
+CFLAGS = -g -Wall -DDEBUG -I../../malloc
CC = gcc
AR = ar
-LDFLAGS = -L. -ldmalloc
+LDFLAGS = -L../../malloc -ldmalloc
-all: $(TARGET) $(TARGET1) $(TARGET2) $(TARGET3)
+all: $(TARGET1) $(TARGET2) $(TARGET3)
clean:
- rm -f core *~ $(TARGET) $(TARGET1) $(TARGET2) $(TARGET3) \
- $(LIBOBJS) $(OBJS1) $(OBJS2) $(OBJS3)
-
-$(TARGET): $(LIBOBJS)
- $(AR) ruv $(TARGET) $(LIBOBJS)
+ rm -f core *~ $(TARGET1) $(TARGET2) $(TARGET3) \
+ $(OBJS1) $(OBJS2) $(OBJS3)
$(TARGET1): $(OBJS1)
$(CC) -g -o $(TARGET1) $(OBJS1) $(LDFLAGS)
@@ -38,14 +31,6 @@ $(TARGET2): $(OBJS2)
$(TARGET3): $(OBJS3)
$(CC) -g -o $(TARGET3) $(OBJS3) $(LDFLAGS)
-bmalloc.o: bmalloc.c bysize.h
-bysize.o: bysize.c
-dmalloc.o: dmalloc.c
-dmytest.o: dmytest.c dmalloc.h bmalloc.h
+dmytest.o: dmytest.c
Malloc.o: Malloc.c
-mytest.o: mytest.c bmalloc.h
-
-tgz:
- @(dir=`pwd`;name=`basename $$dir`;echo Creates $$name.tar.gz; cd .. ; \
- tar -cf $$name.tar `cat $$name/FILES | sed "s:^/:$$name/:g"` ; \
- gzip $$name.tar ; chmod a+r $$name.tar.gz ; mv $$name.tar.gz $$name/)
+mytest.o: mytest.c