* symtab.c (find_pc_symtab): some object file formats, notably mips,
[deliverable/binutils-gdb.git] / mmalloc / Makefile.in
CommitLineData
63abb1e7
FF
1#
2# Makefile
3# Copyright (C) 1992 Cygnus Support
4#
5# This file is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
18#
19
20#
21# Makefile for mmalloc directory
22#
23
24# Directory containing source files. Don't clean up the spacing,
25# this exact string is matched for by the "configure" script.
26srcdir = .
27
28prefix = /usr/local
29
30bindir = $(prefix)/bin
31datadir = $(prefix)/lib
32libdir = $(prefix)/lib
33mandir = $(datadir)/man
34man1dir = $(mandir)/man1
35man2dir = $(mandir)/man2
36man3dir = $(mandir)/man3
37man4dir = $(mandir)/man4
38man5dir = $(mandir)/man5
39man6dir = $(mandir)/man6
40man7dir = $(mandir)/man7
41man8dir = $(mandir)/man8
42man9dir = $(mandir)/man9
43infodir = $(datadir)/info
44includedir = $(prefix)/include
45docdir = $(datadir)/doc
46
47SHELL = /bin/sh
48
49INSTALL = install -c
50INSTALL_PROGRAM = $(INSTALL)
51INSTALL_DATA = $(INSTALL)
52
53AR = ar
54AR_FLAGS = qv
55BISON = bison
56MAKEINFO = makeinfo
57RANLIB = ranlib
58RM = rm
59
60TARGETLIB = libmmalloc.a
61
62MINUS_G = -g
63CFLAGS = $(MINUS_G) -I. -I$(srcdir)/../include $(HDEFINES)
64
65CFILES = mcalloc.c mfree.c mmalloc.c mmcheck.c mmemalign.c mmstats.c \
66 mmtrace.c mrealloc.c mvalloc.c mmap-sup.c attach.c detach.c \
67 keys.c sbrk-sup.c
68
69HFILES = mmalloc.h
70
71OFILES = mcalloc.o mfree.o mmalloc.o mmcheck.o mmemalign.o mmstats.o \
72 mmtrace.o mrealloc.o mvalloc.o mmap-sup.o attach.o detach.o \
73 keys.o sbrk-sup.o
74
75#### Host, target, and site specific Makefile fragments come in here.
76###
77
78# Do we want/need any config overrides?
79#
80
81STAGESTUFF = $(TARGETLIB) *.o
82
83all: $(TARGETLIB)
84
85install: all
86 $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB).n
87 $(RANLIB) $(libdir)/$(TARGETLIB).n
88 mv -f $(libdir)/$(TARGETLIB).n $(libdir)/$(TARGETLIB)
89
90$(TARGETLIB): $(OFILES)
91 $(RM) -rf $@
92 $(AR) $(AR_FLAGS) $@ $(OFILES)
93 $(RANLIB) $@
94
95$(OFILES) : $(HFILES)
96
97.always.:
98# Do nothing.
99
100.PHONEY: all etags tags ls clean stage1 stage2 .always.
101
102stage1: force
103 -mkdir stage1
104 -mv -f $(STAGESTUFF) stage1
105
106stage2: force
107 -mkdir stage2
108 -mv -f $(STAGESTUFF) stage2
109
110stage3: force
111 -mkdir stage3
112 -mv -f $(STAGESTUFF) stage3
113
114stage4: force
115 -mkdir stage4
116 -mv -f $(STAGESTUFF) stage4
117
118against=stage2
119
120comparison: force
121 for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
122
123de-stage1: force
124 -(cd stage1 ; mv -f * ..)
125 -rmdir stage1
126
127de-stage2: force
128 -(cd stage2 ; mv -f * ..)
129 -rmdir stage2
130
131de-stage3: force
132 -(cd stage3 ; mv -f * ..)
133 -rmdir stage3
134
135de-stage4: force
136 -(cd stage4 ; mv -f * ..)
137 -rmdir stage4
138
139etags tags: TAGS
140
141TAGS: $(CFILES)
142 etags $(HFILES) $(CFILES)
143
144ls:
145 @echo Makefile $(HFILES) $(CFILES)
146
147# Need to deal with profiled libraries, too.
148
149clean:
150 rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors
151
152force:
153
154Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) \
155 $(target_makefile_frag)
156 $(SHELL) ./config.status
This page took 0.050182 seconds and 4 git commands to generate.