* elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
[deliverable/binutils-gdb.git] / mmalloc / Makefile.in
CommitLineData
c906108c
SS
1# Copyright (C) 1992 Free Software Foundation, Inc.
2# This file is part of the GNU C Library.
3
4# The GNU C Library is free software; you can redistribute it and/or
5# modify it under the terms of the GNU Library General Public License as
6# published by the Free Software Foundation; either version 2 of the
7# License, or (at your option) any later version.
8
9# The GNU C Library is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12# Library General Public License for more details.
13
14# You should have received a copy of the GNU Library General Public
15# License along with the GNU C Library; see the file COPYING.LIB. If
16# not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17# Boston, MA 02111-1307, USA.
18
19#
20# Makefile for mmalloc directory
21#
22
23# Directory containing source files. Don't clean up the spacing,
24# this exact string is matched for by the "configure" script.
25
26VPATH = @srcdir@
27srcdir = @srcdir@
28
29prefix = @prefix@
30exec_prefix = @exec_prefix@
31
32bindir = @bindir@
33libdir = @libdir@
34
35datadir = @datadir@
36mandir = @mandir@
37man1dir = $(mandir)/man1
38man2dir = $(mandir)/man2
39man3dir = $(mandir)/man3
40man4dir = $(mandir)/man4
41man5dir = $(mandir)/man5
42man6dir = $(mandir)/man6
43man7dir = $(mandir)/man7
44man8dir = $(mandir)/man8
45man9dir = $(mandir)/man9
46infodir = @infodir@
47includedir = @includedir@
48
49SHELL = @SHELL@
50
51INSTALL = @INSTALL@
52INSTALL_PROGRAM=@INSTALL_PROGRAM@
53INSTALL_DATA = @INSTALL_DATA@
54
55AR = @AR@
56AR_FLAGS = qv
57CFLAGS = -g
58MAKEINFO = makeinfo
59RANLIB = @RANLIB@
60RM = rm
61
62# where to find makeinfo
63MAKEINFO=makeinfo
64
65SET_TEXINPUTS = TEXINPUTS=${TEXIDIR}:.:$(srcdir):$(READLINE_DIR):$$TEXINPUTS
66
67# The TeX formatter
68TEX = tex
69
70TARGETLIB = libmmalloc.a
71
72CFILES = mcalloc.c mfree.c mmalloc.c mmcheck.c mmemalign.c mmstats.c \
73 mmtrace.c mrealloc.c mvalloc.c mmap-sup.c attach.c detach.c \
74 keys.c sbrk-sup.c mm.c
75
76HFILES = mmalloc.h
77
78OFILES = mcalloc.o mfree.o mmalloc.o mmcheck.o mmemalign.o mmstats.o \
79 mmtrace.o mrealloc.o mvalloc.o mmap-sup.o attach.o detach.o \
80 keys.o sbrk-sup.o
81
82DEFS = @DEFS@
83
84# The current default is to build a single object module with all the mmalloc
85# functions. To build a more traditional library, flip this macro definition.
86#TARGETOBJS = $(OFILES)
87TARGETOBJS = mm.o
88
89.c.o:
90 $(CC) -c $(CFLAGS) $(DEFS) -I. -I$(srcdir)/../include $<
91
92# Do we want/need any config overrides?
93#
94
95STAGESTUFF = $(TARGETLIB) *.o
96
97all: $(TARGETLIB)
98
99info: mmalloc.info
100dvi: mmalloc.dvi
101clean-info:
102installcheck:
103
104mmalloc.info: mmalloc.texi
105 $(MAKEINFO) -I $(srcdir) -o ./mmalloc.info mmalloc.texi
106
107# This file doesn't need texindex currently.
108mmalloc.dvi: mmalloc.texi
109 $(SET_TEXINPUTS) $(TEX) mmalloc.texi
110 rm -f mmalloc.?? mmalloc.??s mmalloc.log mmalloc.aux mmalloc.toc
111
112install-info: info
d3229ae3 113 $(SHELL) $(srcdir)/../mkinstalldirs $(infodir)
c906108c
SS
114 if test ! -f mmalloc.info ; then cd $(srcdir); fi; \
115 $(INSTALL_DATA) mmalloc.info $(infodir)/mmalloc.info
d3229ae3
EZ
116 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
117 echo " install-info --info-dir=$(infodir) $(infodir)/mmalloc.info";\
118 install-info --info-dir=$(infodir) $(infodir)/mmalloc.info || :;\
119 else : ; fi
c906108c
SS
120
121check: test1.c
122# $(CC) -g $(srcdir)/test1.c libmmalloc.a
123# This loses for Canadian cross (building mmalloc with a cross-compiler).
124# There is probably some dejagnu-ish solution (such as what we are doing
125# for gdb, perhaps).
126# ./a.out
127
128install: all
cbb1a37c
EZ
129 $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB)n
130 $(RANLIB) $(libdir)/$(TARGETLIB)n
131 mv -f $(libdir)/$(TARGETLIB)n $(libdir)/$(TARGETLIB)
c906108c
SS
132
133$(TARGETLIB): $(TARGETOBJS)
134 $(RM) -rf $@
135 $(AR) $(AR_FLAGS) $@ $(TARGETOBJS)
136 $(RANLIB) $@
137
138$(OFILES) : $(HFILES) Makefile
139
140mm.o: $(HFILES) $(CFILES)
141 $(CC) -c $(CFLAGS) $(DEFS) -I. -I$(srcdir)/../include $(srcdir)/mm.c
142
143.always.:
144# Do nothing.
145
146.PHONEY: all etags tags ls clean stage1 stage2 .always.
147
148stage1: force
149 -mkdir stage1
150 -mv -f $(STAGESTUFF) stage1
151
152stage2: force
153 -mkdir stage2
154 -mv -f $(STAGESTUFF) stage2
155
156stage3: force
157 -mkdir stage3
158 -mv -f $(STAGESTUFF) stage3
159
160stage4: force
161 -mkdir stage4
162 -mv -f $(STAGESTUFF) stage4
163
164against=stage2
165
166comparison: force
167 for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
168
169de-stage1: force
170 -(cd stage1 ; mv -f * ..)
171 -rmdir stage1
172
173de-stage2: force
174 -(cd stage2 ; mv -f * ..)
175 -rmdir stage2
176
177de-stage3: force
178 -(cd stage3 ; mv -f * ..)
179 -rmdir stage3
180
181de-stage4: force
182 -(cd stage4 ; mv -f * ..)
183 -rmdir stage4
184
185etags tags: TAGS
186
187TAGS: $(CFILES)
188 etags `for i in $(HFILES) $(CFILES); do echo $(srcdir)/$$i ; done`
189
190ls:
191 @echo Makefile $(HFILES) $(CFILES)
192
193# Need to deal with profiled libraries, too.
194
195mostlyclean clean:
196 rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors
197
198distclean: clean
199 rm -f config.cache config.log config.status
200 rm -f Makefile depend
201
202maintainer-clean realclean: distclean clean
203 @echo "This command is intended for maintainers to use;"
204 @echo "it deletes files that may require special tools to rebuild."
205 rm -f mmalloc.info
206
207force:
208
209Makefile: Makefile.in config.status
210 $(SHELL) config.status
211
212config.status: configure
213 $(SHELL) config.status --recheck
This page took 0.164493 seconds and 4 git commands to generate.