aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2001-10-19 06:09:29 +0000
committerH. Peter Anvin <hpa@zytor.com>2001-10-19 06:09:29 +0000
commit7699ea1cbb2cbdc7a81279b23fd4eafe188d99dc (patch)
tree173e73ac01d7678be9f82bc5bfe74ce0dd5c938b /Makefile
parent6f9d2dab5ff8d60ed805a821e9c7d2272c753e81 (diff)
downloadlpsm-7699ea1cbb2cbdc7a81279b23fd4eafe188d99dc.tar.gz
lpsm-7699ea1cbb2cbdc7a81279b23fd4eafe188d99dc.tar.xz
lpsm-7699ea1cbb2cbdc7a81279b23fd4eafe188d99dc.zip
Change names around to be more consistent; set the name of the system to
LPSM (Linux Persistent Memory); set the load address to 0x58000000 on i386 (in case we're on x86-64 in 32-bit mode, or using Andrea's 3.5G patches); change symbol names throughout. Add README file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile54
1 files changed, 27 insertions, 27 deletions
diff --git a/Makefile b/Makefile
index 405c629..1172916 100644
--- a/Makefile
+++ b/Makefile
@@ -1,29 +1,29 @@
TEST = teststore test_mmap ftrunctest testbuddy testalloc testrecovery
-SONAME = libobjstore.so.0
-VERSION = 0.0.1
-OBJSTORE = libobjstore.so libobjstore.a
+SONAME = libpsm.so.0
+VERSION = 0.1.0
+LIBPSM = libpsm.so libpsm.a
-OSOBJ = objstore.o alloc.o
+OSOBJ = arena.o alloc.o
OSPICOBJ = $(patsubst %.o,%.pic.o,$(OSOBJ))
CC = gcc
# This is a reasonable set of flags for production
-# CFLAGS = -I. -Wall -O3 -fomit-frame-pointer -DNDEBUG -D_FILE_OFFSET_BITS=64
-# LDFLAGS =
+CFLAGS = -I. -Wall -O3 -fomit-frame-pointer -DNDEBUG -D_FILE_OFFSET_BITS=64
+LDFLAGS =
# This is for debugging
-CFLAGS = -I. -Wall -O -g -D_FILE_OFFSET_BITS=64
-LDFLAGS = -g
+# CFLAGS = -I. -Wall -O -g -D_FILE_OFFSET_BITS=64
+# LDFLAGS = -g
PICFLAGS = $(CFLAGS) -fPIC
SOFLAGS = -shared
AR = ar cq
RANLIB = ranlib
-all: $(OBJSTORE) $(TEST)
+all: $(LIBPSM) $(TEST)
clean:
- rm -f *.o *~ core *.dat *.log $(OBJSTORE) $(TEST)
- rm -f libobjstore.so.*
+ rm -f *.o *~ core *.dat *.log $(LIBPSM) $(TEST)
+ rm -f libpsm.so.*
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
@@ -31,27 +31,27 @@ clean:
%.pic.o: %.c
$(CC) $(PICFLAGS) -o $@ -c $<
-libobjstore.so: $(OSPICOBJ)
- $(CC) $(SOFLAGS) -Wl,-soname,$(SONAME) -o libobjstore.so.$(VERSION) $(OSPICOBJ)
- ln -sf libobjstore.so.$(VERSION) $(SONAME)
- ln -sf libobjstore.so.$(VERSION) libobjstore.so
+libpsm.so: $(OSPICOBJ)
+ $(CC) $(SOFLAGS) -Wl,-soname,$(SONAME) -o libpsm.so.$(VERSION) $(OSPICOBJ)
+ ln -sf libpsm.so.$(VERSION) $(SONAME)
+ ln -sf libpsm.so.$(VERSION) libpsm.so
-libobjstore.a: $(OSOBJ)
- rm -f libobjstore.a
- $(AR) libobjstore.a $(OSOBJ)
- $(RANLIB) libobjstore.a
+libpsm.a: $(OSOBJ)
+ rm -f libpsm.a
+ $(AR) libpsm.a $(OSOBJ)
+ $(RANLIB) libpsm.a
-teststore: teststore.o libobjstore.a
- $(CC) $(LDFLAGS) -o $@ $< libobjstore.a
+teststore: teststore.o libpsm.a
+ $(CC) $(LDFLAGS) -o $@ $< libpsm.a
-testbuddy: testbuddy.o libobjstore.a
- $(CC) $(LDFLAGS) -o $@ $< libobjstore.a
+testbuddy: testbuddy.o libpsm.a
+ $(CC) $(LDFLAGS) -o $@ $< libpsm.a
-testalloc: testalloc.o libobjstore.a
- $(CC) $(LDFLAGS) -o $@ $< libobjstore.a
+testalloc: testalloc.o libpsm.a
+ $(CC) $(LDFLAGS) -o $@ $< libpsm.a
-testrecovery: testrecovery.o libobjstore.a
- $(CC) $(LDFLAGS) -o $@ $< libobjstore.a
+testrecovery: testrecovery.o libpsm.a
+ $(CC) $(LDFLAGS) -o $@ $< libpsm.a
test_mmap: test_mmap.o
$(CC) $(LDFLAGS) -o $@ $<