aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2001-10-23 17:09:23 +0000
committerH. Peter Anvin <hpa@zytor.com>2001-10-23 17:09:23 +0000
commit0eca7bb7913aa0c6c642c1ea13a981ac89345de3 (patch)
tree0ae204355d632573a909635c2877648df4396493 /Makefile
parent18a1b3bf7b3974d264243377a2ea51c7656c4473 (diff)
downloadlpsm-0eca7bb7913aa0c6c642c1ea13a981ac89345de3.tar.gz
lpsm-0eca7bb7913aa0c6c642c1ea13a981ac89345de3.tar.xz
lpsm-0eca7bb7913aa0c6c642c1ea13a981ac89345de3.zip
Fix lpsm_zalloc(), and make debugging build work again.lpsm-0.1.6
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7aa7794..95357c7 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@
TEST = teststore test_mmap ftrunctest testbuddy testalloc testrecovery
SONAME = libpsm.so.0
-VERSION = 0.1.5
+VERSION = 0.1.6
LIBPSM = libpsm.so.$(VERSION) libpsm.a
CFILES = arena.c bitops.c \
@@ -23,13 +23,16 @@ OSPICOBJ = $(patsubst %.c,%.pic.o,$(CFILES))
MANPAGES = $(patsubst %.in,%,$(wildcard *.[1-9].in))
CC = gcc
+ifndef DEBUG
# This is a reasonable set of flags for production
# Add -NDEBUG if you don't want to retain assert()s
CFLAGS = -I. -Wall -O3 -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 # -DNDEBUG
LDFLAGS =
+else
# This is for debugging
-# CFLAGS = -I. -Wall -O -g -DPRINT_DEBUG_INFO -D_FILE_OFFSET_BITS=64
-# LDFLAGS = -g
+CFLAGS = -I. -Wall -O -g -DPRINT_DEBUG_INFO -D_FILE_OFFSET_BITS=64
+LDFLAGS = -g
+endif
LIBS = libpsm.a -lm
PICFLAGS = $(CFLAGS) -fPIC
SOFLAGS = -shared