head	1.1;
branch	1.1.1;
access;
symbols
	LIBC_4_5_19:1.1.1.6
	LIBC_4_5_18:1.1.1.6
	LIBC_4_5_17:1.1.1.6
	LIBC_4_5_16:1.1.1.5
	LIBC_4_5_15:1.1.1.5
	LIBC_4_5_14:1.1.1.5
	LIBC_4_5_13:1.1.1.5
	LIBC_4_5_12:1.1.1.4
	LIBC_4_5_11:1.1.1.3
	LIBC_4_5_10:1.1.1.2
	LIBC_4_5_9:1.1.1.1
	LIBC_4_5_8:1.1.1.1
	LIBC_4_5_7:1.1.1.1
	LIBC:1.1.1;
locks; strict;
comment	@# @;


1.1
date	93.12.14.16.58.40;	author steinber;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	93.12.14.16.58.41;	author steinber;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	94.01.13.12.13.35;	author steinber;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	94.01.19.16.24.27;	author steinber;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	94.01.19.16.29.23;	author steinber;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	94.02.01.12.59.48;	author steinber;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	94.02.01.14.33.02;	author steinber;	state Exp;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@#
# Makefile for malloc library functions
#

include ../Makeconfig

include ../Makerules

LIB:=../$(LIB)
LIBALIAS:=../$(LIBALIAS)
LIBMCHECK=../libmcheck.a

JUMP_DIR:=../jump/$(SHLIB)
JUMP_LIB=libc

ifndef OPTFLAGS
OPTFLAGS= -O6 -fomit-frame-pointer
endif

CFLAGS = $(WFLAGS) $(OPTFLAGS) $(INC) $(XCFLAGS)
INC= -I. -I. -I.

DIRS:=

SRC1S= malloc.c free.c realloc.c calloc.c \
	valloc.c memalign.c mcheck.c mtrace.c mstats.c
SRC2S= cfree.c
SRCS= $(SRC1S) $(SRC2S)
ASMS= $(SRCS:.c=.s)
OBJS= $(SRC1S:.c=.o)
ALIASES= $(SRC2S:.c=.o)

ifdef DEBUG

all: lib libalias libmcheck

else

all: lib libalias

endif

libmcheck: mcheck-init.o
	$(AR) uvc $(LIBMCHECK) mcheck-init.o

include ../Maketargets
@


1.1.1.1
log
@LIBC_4_5_7
@
text
@@


1.1.1.2
log
@LIBC_4_5_10
@
text
@d5 1
a5 4
override STATIC=false
override SHARED=false
override STATIC_SHARED=false
override PROFILE=false
a6 1
include ../Makeconfig
d9 10
a18 1
LIBMCHECK=../debug/libmcheck.a
d20 2
a21 4
INC_CFLAGS= -I. -I. -I.
VSCFLAGS=-D_default_morecore=__default_morecore \
	-D__MALLOC_0_RETURNS_NULL -D_morecore=__morecore
BASE_CFLAGS:= $(BASE_CFLAGS) $(VSCFLAGS)
d25 3
a27 4
SRC1S  = malloc.c free.c realloc.c calloc.c \
	valloc.c 
SRC2S = cfree.c

d33 1
d35 1
a35 2
ifeq ($(DEBUG),true)
debug_lib:: $(LIBMCHECK)
d37 1
a37 4
$(LIBMCHECK): $(DEBUG_DIR)/$(SUBDIR)/mcheck-init.o
	$(RM) -f $(LIBMCHECK)
	$(AR) uvc $(LIBMCHECK) $?
	$(REALRANLIB) $(LIBMCHECK)
d39 2
d43 3
@


1.1.1.3
log
@LIBC_4_5_11
@
text
@d10 2
a11 1
TOPDIR=..
d13 1
a13 2
include $(TOPDIR)/Makeconfig
include $(TOPDIR)/Makerules
a14 2
LIBMCHECK=$(TOPDIR)/debug/libmcheck.a

d42 1
a42 1
include $(TOPDIR)/Maketargets
@


1.1.1.4
log
@LIBC_4_5_12
@
text
@a32 1
include $(TOPDIR)/Maketargets
d35 1
a35 1
lib:: $(LIBMCHECK)
d41 1
d43 2
@


1.1.1.5
log
@LIBC_4_5_13
@
text
@d25 1
a25 1
	valloc.c memalign.c mstats.c mtrace.c
@


1.1.1.6
log
@LIBC_4_5_17
@
text
@a15 2
LIBMCHECK_SRCS=mcheck.c mcheck-init.c
LIBMCHECK_OBJS=$(addprefix $(DEBUG_DIR)/$(SUBDIR)/, $(LIBMCHECK_SRCS:.c=.o))
d36 1
d38 2
a39 7
ifeq ($(SPEED),fast)

.PHONY: $(LIBMCHECK)

lib:: $(LIBMCHECK_OBJS) $(LIBMCHECK)

$(LIBMCHECK): $(LIBMCHECK_OBJS)
d41 1
a41 3
else
lib:: $(LIBMCHECK)($(LIBMCHECK_OBJS))
endif
@
