1993-07-17 00:28:12 +02:00
|
|
|
# Copyright (C) 1992 Free Software Foundation, Inc.
|
|
|
|
# This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
# The GNU C Library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of the
|
|
|
|
# License, or (at your option) any later version.
|
|
|
|
|
|
|
|
# The GNU C Library is distributed in the hope that it will be useful,
|
1992-03-15 03:16:01 +01:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
1993-07-17 00:28:12 +02:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with the GNU C Library; see the file COPYING.LIB. If
|
|
|
|
# not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
|
|
|
# Cambridge, MA 02139, USA.
|
1992-03-15 03:16:01 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Makefile for mmalloc directory
|
|
|
|
#
|
|
|
|
|
|
|
|
# Directory containing source files. Don't clean up the spacing,
|
|
|
|
# this exact string is matched for by the "configure" script.
|
|
|
|
srcdir = .
|
|
|
|
|
|
|
|
prefix = /usr/local
|
|
|
|
|
1993-07-17 00:28:12 +02:00
|
|
|
exec_prefix = $(prefix)
|
|
|
|
|
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
libdir = $(exec_prefix)/lib
|
|
|
|
|
1992-03-15 03:16:01 +01:00
|
|
|
datadir = $(prefix)/lib
|
1993-07-17 00:28:12 +02:00
|
|
|
mandir = $(prefix)/man
|
1992-03-15 03:16:01 +01:00
|
|
|
man1dir = $(mandir)/man1
|
|
|
|
man2dir = $(mandir)/man2
|
|
|
|
man3dir = $(mandir)/man3
|
|
|
|
man4dir = $(mandir)/man4
|
|
|
|
man5dir = $(mandir)/man5
|
|
|
|
man6dir = $(mandir)/man6
|
|
|
|
man7dir = $(mandir)/man7
|
|
|
|
man8dir = $(mandir)/man8
|
|
|
|
man9dir = $(mandir)/man9
|
1993-07-17 00:28:12 +02:00
|
|
|
infodir = $(prefix)/info
|
1992-03-15 03:16:01 +01:00
|
|
|
includedir = $(prefix)/include
|
|
|
|
docdir = $(datadir)/doc
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
INSTALL = install -c
|
|
|
|
INSTALL_PROGRAM = $(INSTALL)
|
|
|
|
INSTALL_DATA = $(INSTALL)
|
|
|
|
|
|
|
|
AR = ar
|
|
|
|
AR_FLAGS = qv
|
1993-07-17 00:28:12 +02:00
|
|
|
CFLAGS = -g
|
1992-03-15 03:16:01 +01:00
|
|
|
BISON = bison
|
|
|
|
MAKEINFO = makeinfo
|
|
|
|
RANLIB = ranlib
|
|
|
|
RM = rm
|
|
|
|
|
|
|
|
TARGETLIB = libmmalloc.a
|
|
|
|
|
|
|
|
CFILES = mcalloc.c mfree.c mmalloc.c mmcheck.c mmemalign.c mmstats.c \
|
|
|
|
mmtrace.c mrealloc.c mvalloc.c mmap-sup.c attach.c detach.c \
|
|
|
|
keys.c sbrk-sup.c
|
|
|
|
|
|
|
|
HFILES = mmalloc.h
|
|
|
|
|
|
|
|
OFILES = mcalloc.o mfree.o mmalloc.o mmcheck.o mmemalign.o mmstats.o \
|
|
|
|
mmtrace.o mrealloc.o mvalloc.o mmap-sup.o attach.o detach.o \
|
|
|
|
keys.o sbrk-sup.o
|
|
|
|
|
|
|
|
#### Host, target, and site specific Makefile fragments come in here.
|
|
|
|
###
|
|
|
|
|
1993-07-17 00:28:12 +02:00
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -I. -I$(srcdir)/../include $(HDEFINES) $<
|
|
|
|
|
1992-03-15 03:16:01 +01:00
|
|
|
# Do we want/need any config overrides?
|
|
|
|
#
|
|
|
|
|
|
|
|
STAGESTUFF = $(TARGETLIB) *.o
|
|
|
|
|
|
|
|
all: $(TARGETLIB)
|
|
|
|
|
1993-07-17 00:28:12 +02:00
|
|
|
info:
|
|
|
|
clean-info:
|
|
|
|
install-info:
|
|
|
|
dvi:
|
|
|
|
installcheck:
|
|
|
|
check:
|
|
|
|
|
1992-03-15 03:16:01 +01:00
|
|
|
install: all
|
|
|
|
$(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB).n
|
|
|
|
$(RANLIB) $(libdir)/$(TARGETLIB).n
|
|
|
|
mv -f $(libdir)/$(TARGETLIB).n $(libdir)/$(TARGETLIB)
|
|
|
|
|
|
|
|
$(TARGETLIB): $(OFILES)
|
|
|
|
$(RM) -rf $@
|
|
|
|
$(AR) $(AR_FLAGS) $@ $(OFILES)
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
|
|
|
$(OFILES) : $(HFILES)
|
|
|
|
|
|
|
|
.always.:
|
|
|
|
# Do nothing.
|
|
|
|
|
|
|
|
.PHONEY: all etags tags ls clean stage1 stage2 .always.
|
|
|
|
|
|
|
|
stage1: force
|
|
|
|
-mkdir stage1
|
|
|
|
-mv -f $(STAGESTUFF) stage1
|
|
|
|
|
|
|
|
stage2: force
|
|
|
|
-mkdir stage2
|
|
|
|
-mv -f $(STAGESTUFF) stage2
|
|
|
|
|
|
|
|
stage3: force
|
|
|
|
-mkdir stage3
|
|
|
|
-mv -f $(STAGESTUFF) stage3
|
|
|
|
|
|
|
|
stage4: force
|
|
|
|
-mkdir stage4
|
|
|
|
-mv -f $(STAGESTUFF) stage4
|
|
|
|
|
|
|
|
against=stage2
|
|
|
|
|
|
|
|
comparison: force
|
|
|
|
for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
|
|
|
|
|
|
|
|
de-stage1: force
|
|
|
|
-(cd stage1 ; mv -f * ..)
|
|
|
|
-rmdir stage1
|
|
|
|
|
|
|
|
de-stage2: force
|
|
|
|
-(cd stage2 ; mv -f * ..)
|
|
|
|
-rmdir stage2
|
|
|
|
|
|
|
|
de-stage3: force
|
|
|
|
-(cd stage3 ; mv -f * ..)
|
|
|
|
-rmdir stage3
|
|
|
|
|
|
|
|
de-stage4: force
|
|
|
|
-(cd stage4 ; mv -f * ..)
|
|
|
|
-rmdir stage4
|
|
|
|
|
|
|
|
etags tags: TAGS
|
|
|
|
|
|
|
|
TAGS: $(CFILES)
|
1993-07-17 00:28:12 +02:00
|
|
|
etags `for i in $(HFILES) $(CFILES); do echo $(srcdir)/$$i ; done`
|
1992-03-15 03:16:01 +01:00
|
|
|
|
|
|
|
ls:
|
|
|
|
@echo Makefile $(HFILES) $(CFILES)
|
|
|
|
|
|
|
|
# Need to deal with profiled libraries, too.
|
|
|
|
|
1993-07-17 00:28:12 +02:00
|
|
|
mostlyclean clean:
|
1992-03-15 03:16:01 +01:00
|
|
|
rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors
|
|
|
|
|
1993-07-17 00:28:12 +02:00
|
|
|
distclean realclean: clean
|
|
|
|
rm -f config.status
|
|
|
|
rm -f Makefile depend
|
|
|
|
|
1992-03-15 03:16:01 +01:00
|
|
|
force:
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) \
|
|
|
|
$(target_makefile_frag)
|
|
|
|
$(SHELL) ./config.status
|