1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/devel/libdlmalloc/files/Makefile
David E. O'Brien 11eae40ef2 Upgrade to 2.6.4.
Mention that doc files are at http://g.oswego.edu/dl/html/malloc.html
1997-04-21 00:30:35 +00:00

60 lines
1.1 KiB
Makefile

# Makefile for Doug Lea's malloc
#
# (largely based on Mark Moreas' Makefile)
#
# Renamed dlmalloc
#
# A version of malloc/free/realloc written by Doug Lea and released to the
# public domain.
#
# preliminary VERSION 2.5.3b
#
# working version; unreleased.
#
LIBDIR=${PREFIX}/lib
# for the shared lib stuff
VERSION=2.6
LIBMALLOC=libdlmalloc.a
LIBSMALLOC=libdlmalloc.so.${VERSION}
SRCS = malloc-2.6.4.c
OBJS = $(SRCS:.c=.o)
SOBJS = $(SRCS:.c=.so)
.SUFFIXES:
.SUFFIXES: .out .o .po .so .s .S .c .cc .cxx .m .C .f .y .l
.c.o:
${CC} -c ${CFLAGS} $< -o $@
.c.so:
${CC} -c -fpic ${CFLAGS} $< -o $@
ld -x -r $@
mv a.out $@
all: ${LIBMALLOC} ${LIBSMALLOC}
$(LIBMALLOC): $(OBJS)
rm -f $(LIBMALLOC)
$(AR) $(ARFLAGS) $(LIBMALLOC) $(OBJS)
-$(RANLIB) $(LIBMALLOC)
$(LIBSMALLOC): $(SOBJS)
rm -f $(LIBSMALLOC)
ld -Bshareable -o $(LIBSMALLOC) $(SOBJS)
clean:
-rm -f *.o \#* *~ *.core a.out gmon.out mon.out onefile.c *.sL prof.out
install:
install -c -m 644 ${LIBMALLOC} $(LIBDIR)
-$(RANLIB) $(LIBDIR)/${LIBMALLOC}
install -c -m 555 ${LIBSMALLOC} $(LIBDIR)
$(OBJS): $(SRCS)
$(SOBJS): $(SRCS)