aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2001-10-19 18:02:50 +0000
committerH. Peter Anvin <hpa@zytor.com>2001-10-19 18:02:50 +0000
commitf3d637296f1f839d4a95a849a7dbfbb600f563f1 (patch)
tree3955655b48dabd4bde8803300631e0a925b2c9a3 /Makefile
parentbd6256fabf6cfc3de88c255012c6c3bee1a84849 (diff)
downloadlpsm-f3d637296f1f839d4a95a849a7dbfbb600f563f1.tar.gz
lpsm-f3d637296f1f839d4a95a849a7dbfbb600f563f1.tar.xz
lpsm-f3d637296f1f839d4a95a849a7dbfbb600f563f1.zip
Version 0.1.1 - make compile on gcc 3.0.2lpsm-0.1.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1172916..5eb17f8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
TEST = teststore test_mmap ftrunctest testbuddy testalloc testrecovery
SONAME = libpsm.so.0
-VERSION = 0.1.0
+VERSION = 0.1.1
LIBPSM = libpsm.so libpsm.a
OSOBJ = arena.o alloc.o
@@ -13,6 +13,7 @@ LDFLAGS =
# This is for debugging
# CFLAGS = -I. -Wall -O -g -D_FILE_OFFSET_BITS=64
# LDFLAGS = -g
+LIBS = libpsm.a -lm
PICFLAGS = $(CFLAGS) -fPIC
SOFLAGS = -shared
@@ -42,16 +43,16 @@ libpsm.a: $(OSOBJ)
$(RANLIB) libpsm.a
teststore: teststore.o libpsm.a
- $(CC) $(LDFLAGS) -o $@ $< libpsm.a
+ $(CC) $(LDFLAGS) -o $@ $< $(LIBS)
testbuddy: testbuddy.o libpsm.a
- $(CC) $(LDFLAGS) -o $@ $< libpsm.a
+ $(CC) $(LDFLAGS) -o $@ $< $(LIBS)
testalloc: testalloc.o libpsm.a
- $(CC) $(LDFLAGS) -o $@ $< libpsm.a
+ $(CC) $(LDFLAGS) -o $@ $< $(LIBS)
testrecovery: testrecovery.o libpsm.a
- $(CC) $(LDFLAGS) -o $@ $< libpsm.a
+ $(CC) $(LDFLAGS) -o $@ $< $(LIBS)
test_mmap: test_mmap.o
$(CC) $(LDFLAGS) -o $@ $<