Mercurial > jemalloc
comparison Makefile @ 1:daf7ce634fb2 default tip
- add pointer size specifier for 64bit systems. (default)
- link against libpthread
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 05 Oct 2009 18:05:04 +0900 |
parents | 9a44d900ee55 |
children |
comparison
equal
deleted
inserted
replaced
0:9a44d900ee55 | 1:daf7ce634fb2 |
---|---|
1 PREFIX = /usr/local | 1 PREFIX = /usr/local |
2 | |
3 #for 64bit systems | |
4 PTRFLAG=-DMOZ_MEMORY_SIZEOF_PTR_2POW=3 | |
2 | 5 |
3 PRODUCT = libjemalloc | 6 PRODUCT = libjemalloc |
4 MAJOR = 1 | 7 MAJOR = 1 |
5 MINOR = 0 | 8 MINOR = 0 |
6 REVISION = 0 | 9 REVISION = 0 |
12 PUBHDRS = ${SRCS:.c=.h} | 15 PUBHDRS = ${SRCS:.c=.h} |
13 HDRS = jemalloc.h | 16 HDRS = jemalloc.h |
14 OBJS = ${SRCS:.c=.o} | 17 OBJS = ${SRCS:.c=.o} |
15 | 18 |
16 LIBS = ${PRODUCT}.so ${PRODUCT}.a | 19 LIBS = ${PRODUCT}.so ${PRODUCT}.a |
17 CFLAGS += -fPIC -pg -g -DMOZ_MEMORY -DMOZ_MEMORY_LINUX | 20 CFLAGS += -fPIC -pg -g -DMOZ_MEMORY -DMOZ_MEMORY_LINUX $(PTRFLAG) |
18 LDFLAGS += -shared -Wl,-soname,${SONAME} | 21 LDFLAGS += -shared -Wl,-soname,${SONAME} -pthread |
19 SONAME = ${PRODUCT}.so.${MAJOR} | 22 SONAME = ${PRODUCT}.so.${MAJOR} |
20 | 23 |
21 | 24 |
22 all: ${LIBS} | 25 all: ${LIBS} |
23 | 26 |