home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / malloc-930716 / Makefile < prev    next >
Encoding:
Makefile  |  1994-09-23  |  697 b   |  42 lines

  1. #
  2. # Makefile for malloc library functions
  3. #
  4.  
  5. override DEBUG=false
  6.  
  7. TOPDIR=..
  8.  
  9. include $(TOPDIR)/Makeconfig
  10. include $(TOPDIR)/Makerules
  11.  
  12. LIBMCHECK=$(DEBUG_DIR)/libmcheck.a
  13.  
  14. INC_CFLAGS= -I. -I. -I.
  15. VSCFLAGS=-D_default_morecore=__default_morecore \
  16.     -D__MALLOC_0_RETURNS_NULL -D_morecore=__morecore
  17. BASE_CFLAGS := $(BASE_CFLAGS) $(VSCFLAGS)
  18.  
  19. DIRS:=
  20.  
  21. SRC1S  = malloc.c free.c realloc.c calloc.c \
  22.     valloc.c 
  23. SRC2S = cfree.c
  24.  
  25. SRCS= $(SRC1S) $(SRC2S)
  26. ASMS= $(SRCS:.c=.s)
  27. OBJS= $(SRC1S:.c=.o)
  28. ALIASES= $(SRC2S:.c=.o)
  29.  
  30.  
  31. ifeq ($(DEBUG),true)
  32. lib:: $(LIBMCHECK)
  33.  
  34. $(LIBMCHECK): mcheck-init.o
  35.     $(RM) -f $(LIBMCHECK)
  36.     $(AR) uvc $(LIBMCHECK) $?
  37.     $(REALRANLIB) $(LIBMCHECK)
  38.  
  39. endif
  40.  
  41. include $(TOPDIR)/Maketargets
  42.