* Makefile.in (TAGS): make work when srcdir != objdir.
This commit is contained in:
parent
a2cdf246df
commit
0cd1a8d2aa
2 changed files with 44 additions and 26 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Jul 16 15:27:08 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
|
||||||
|
|
||||||
|
* Makefile.in (TAGS): make work when srcdir != objdir.
|
||||||
|
|
||||||
Thu Jul 15 07:56:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Thu Jul 15 07:56:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
* attach.c, detach.c: Include <sys/types.h> before <fcntl.h>.
|
* attach.c, detach.c: Include <sys/types.h> before <fcntl.h>.
|
||||||
|
|
|
@ -1,21 +1,20 @@
|
||||||
#
|
# Copyright (C) 1992 Free Software Foundation, Inc.
|
||||||
# Makefile
|
# This file is part of the GNU C Library.
|
||||||
# Copyright (C) 1992 Cygnus Support
|
|
||||||
#
|
# The GNU C Library is free software; you can redistribute it and/or
|
||||||
# This file is free software; you can redistribute it and/or modify
|
# modify it under the terms of the GNU Library General Public License as
|
||||||
# it under the terms of the GNU General Public License as published by
|
# published by the Free Software Foundation; either version 2 of the
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
# License, or (at your option) any later version.
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
# The GNU C Library is distributed in the hope that it will be useful,
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
# GNU General Public License for more details.
|
# Library General Public License for more details.
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU Library General Public
|
||||||
# along with this program; if not, write to the Free Software
|
# License along with the GNU C Library; see the file COPYING.LIB. If
|
||||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
# not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
||||||
#
|
# Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
#
|
#
|
||||||
# Makefile for mmalloc directory
|
# Makefile for mmalloc directory
|
||||||
|
@ -27,10 +26,13 @@ srcdir = .
|
||||||
|
|
||||||
prefix = /usr/local
|
prefix = /usr/local
|
||||||
|
|
||||||
bindir = $(prefix)/bin
|
exec_prefix = $(prefix)
|
||||||
|
|
||||||
|
bindir = $(exec_prefix)/bin
|
||||||
|
libdir = $(exec_prefix)/lib
|
||||||
|
|
||||||
datadir = $(prefix)/lib
|
datadir = $(prefix)/lib
|
||||||
libdir = $(prefix)/lib
|
mandir = $(prefix)/man
|
||||||
mandir = $(datadir)/man
|
|
||||||
man1dir = $(mandir)/man1
|
man1dir = $(mandir)/man1
|
||||||
man2dir = $(mandir)/man2
|
man2dir = $(mandir)/man2
|
||||||
man3dir = $(mandir)/man3
|
man3dir = $(mandir)/man3
|
||||||
|
@ -40,7 +42,7 @@ man6dir = $(mandir)/man6
|
||||||
man7dir = $(mandir)/man7
|
man7dir = $(mandir)/man7
|
||||||
man8dir = $(mandir)/man8
|
man8dir = $(mandir)/man8
|
||||||
man9dir = $(mandir)/man9
|
man9dir = $(mandir)/man9
|
||||||
infodir = $(datadir)/info
|
infodir = $(prefix)/info
|
||||||
includedir = $(prefix)/include
|
includedir = $(prefix)/include
|
||||||
docdir = $(datadir)/doc
|
docdir = $(datadir)/doc
|
||||||
|
|
||||||
|
@ -52,6 +54,7 @@ INSTALL_DATA = $(INSTALL)
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
AR_FLAGS = qv
|
AR_FLAGS = qv
|
||||||
|
CFLAGS = -g
|
||||||
BISON = bison
|
BISON = bison
|
||||||
MAKEINFO = makeinfo
|
MAKEINFO = makeinfo
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
|
@ -59,9 +62,6 @@ RM = rm
|
||||||
|
|
||||||
TARGETLIB = libmmalloc.a
|
TARGETLIB = libmmalloc.a
|
||||||
|
|
||||||
MINUS_G = -g
|
|
||||||
CFLAGS = $(MINUS_G) -I. -I$(srcdir)/../include $(HDEFINES)
|
|
||||||
|
|
||||||
CFILES = mcalloc.c mfree.c mmalloc.c mmcheck.c mmemalign.c mmstats.c \
|
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 \
|
mmtrace.c mrealloc.c mvalloc.c mmap-sup.c attach.c detach.c \
|
||||||
keys.c sbrk-sup.c
|
keys.c sbrk-sup.c
|
||||||
|
@ -75,6 +75,9 @@ OFILES = mcalloc.o mfree.o mmalloc.o mmcheck.o mmemalign.o mmstats.o \
|
||||||
#### Host, target, and site specific Makefile fragments come in here.
|
#### Host, target, and site specific Makefile fragments come in here.
|
||||||
###
|
###
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
$(CC) -c $(CFLAGS) -I. -I$(srcdir)/../include $(HDEFINES) $<
|
||||||
|
|
||||||
# Do we want/need any config overrides?
|
# Do we want/need any config overrides?
|
||||||
#
|
#
|
||||||
|
|
||||||
|
@ -82,6 +85,13 @@ STAGESTUFF = $(TARGETLIB) *.o
|
||||||
|
|
||||||
all: $(TARGETLIB)
|
all: $(TARGETLIB)
|
||||||
|
|
||||||
|
info:
|
||||||
|
clean-info:
|
||||||
|
install-info:
|
||||||
|
dvi:
|
||||||
|
installcheck:
|
||||||
|
check:
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
$(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB).n
|
$(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB).n
|
||||||
$(RANLIB) $(libdir)/$(TARGETLIB).n
|
$(RANLIB) $(libdir)/$(TARGETLIB).n
|
||||||
|
@ -139,16 +149,20 @@ de-stage4: force
|
||||||
etags tags: TAGS
|
etags tags: TAGS
|
||||||
|
|
||||||
TAGS: $(CFILES)
|
TAGS: $(CFILES)
|
||||||
etags $(HFILES) $(CFILES)
|
etags `for i in $(HFILES) $(CFILES); do echo $(srcdir)/$$i ; done`
|
||||||
|
|
||||||
ls:
|
ls:
|
||||||
@echo Makefile $(HFILES) $(CFILES)
|
@echo Makefile $(HFILES) $(CFILES)
|
||||||
|
|
||||||
# Need to deal with profiled libraries, too.
|
# Need to deal with profiled libraries, too.
|
||||||
|
|
||||||
clean:
|
mostlyclean clean:
|
||||||
rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors
|
rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors
|
||||||
|
|
||||||
|
distclean realclean: clean
|
||||||
|
rm -f config.status
|
||||||
|
rm -f Makefile depend
|
||||||
|
|
||||||
force:
|
force:
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) \
|
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) \
|
||||||
|
|
Loading…
Reference in a new issue