aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2001-10-13 08:14:32 +0000
committerH. Peter Anvin <hpa@zytor.com>2001-10-13 08:14:32 +0000
commitd3d34ebb008dac8842f4903fdedf5a04588fada7 (patch)
tree0da21763855c1e807996a69c9da7929ab665ee93 /Makefile
parentd20f1d7701fae2cf2f0c4ae7720fea6bd302d415 (diff)
downloadlpsm-d3d34ebb008dac8842f4903fdedf5a04588fada7.tar.gz
lpsm-d3d34ebb008dac8842f4903fdedf5a04588fada7.tar.xz
lpsm-d3d34ebb008dac8842f4903fdedf5a04588fada7.zip
Mostly working allocator (slab and buddy), although extension of the
arena currently doesn't work. No deallocator yet, though.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a44be9f..35dcc87 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,13 @@
-TEST = teststore test_mmap ftrunctest
+TEST = teststore test_mmap ftrunctest testbuddy testalloc
SONAME = libobjstore.so.0
VERSION = 0.0.1
OBJSTORE = libobjstore.so libobjstore.a
-OSOBJ = objstore.o
+OSOBJ = objstore.o alloc.o
OSPICOBJ = $(patsubst %.o,%.pic.o,$(OSOBJ))
CC = gcc
-CFLAGS = -O2 -g
+CFLAGS = -Wall -O2 -g
PICFLAGS = $(CFLAGS) -fPIC
SOFLAGS = -shared
@@ -18,6 +18,7 @@ all: $(OBJSTORE) $(TEST)
clean:
rm -f *.o *~ core $(OBJSTORE) $(TEST)
+ rm -f libobjstore.so.*
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
@@ -38,6 +39,12 @@ libobjstore.a: $(OSOBJ)
teststore: teststore.o libobjstore.a
$(CC) $(LDFLAGS) -o $@ $< libobjstore.a
+testbuddy: testbuddy.o libobjstore.a
+ $(CC) $(LDFLAGS) -o $@ $< libobjstore.a
+
+testalloc: testalloc.o libobjstore.a
+ $(CC) $(LDFLAGS) -o $@ $< libobjstore.a
+
test_mmap: test_mmap.o
$(CC) $(LDFLAGS) -o $@ $<