honor verbose flag
[deliverable/binutils-gdb.git] / opcodes / Makefile.in
CommitLineData
add1fb05
SC
1# Makefile template for Configure for the opcodes library.
2# Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
3# Written by Cygnus Support.
4#
5# This program 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
19srcdir = .
20
21prefix = /usr/local
22
23exec_prefix = $(prefix)
24bindir = $(exec_prefix)/bin
25libdir = $(exec_prefix)/lib
26
27datadir = $(prefix)/lib
28mandir = $(prefix)/man
29man1dir = $(mandir)/man1
30man2dir = $(mandir)/man2
31man3dir = $(mandir)/man3
32man4dir = $(mandir)/man4
33man5dir = $(mandir)/man5
34man6dir = $(mandir)/man6
35man7dir = $(mandir)/man7
36man8dir = $(mandir)/man8
37man9dir = $(mandir)/man9
38infodir = $(prefix)/info
39includedir = $(prefix)/include
40oldincludedir =
41docdir = $(srcdir)/doc
42
43SHELL = /bin/sh
44
45INSTALL = install -c
46INSTALL_PROGRAM = $(INSTALL)
47INSTALL_DATA = $(INSTALL)
48
49AR = ar
50AR_FLAGS = qc
51CFLAGS = -g
52BISON = bison
53MAKEINFO = makeinfo
54RANLIB = ranlib
55
c840244e
PB
56INCDIR = $(srcdir)/../include
57BFDDIR = $(srcdir)/../bfd
58CSEARCH = -I. -I$(srcdir) -I$(INCDIR) -I$(BFDDIR)
add1fb05
SC
59DEP = mkdep
60
61
794a16b0 62TARGETLIB = libopcodes.a
add1fb05 63
f7ed13c7
JK
64# To circumvent a Sun make VPATH bug, each file listed here
65# should also have a foo.o: foo.c line further along in this file.
66DIS_LIBS = i386-dis.o z8k-dis.o m68k-dis.o mips-dis.o h8500-dis.o dis-buf.o \
67 sparc-dis.o
add1fb05 68
c840244e 69OFILES = $(DIS_LIBS) sparc-opc.o m68881-ext.o
add1fb05
SC
70#### host and target dependent Makefile fragments come in here.
71###
72
73FLAGS_TO_PASS = \
74 "against=$(against)" \
75 "AR=$(AR)" \
76 "AR_FLAGS=$(AR_FLAGS)" \
77 "CC=$(CC)" \
78 "CFLAGS=$(CFLAGS)" \
79 "RANLIB=$(RANLIB)" \
80 "MAKEINFO=$(MAKEINFO)" \
81 "INSTALL=$(INSTALL)" \
82 "INSTALL_DATA=$(INSTALL_DATA)" \
83 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
84 "BISON=$(BISON)"
85
86.c.o:
87 $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
88
89
90# C source files that correspond to .o's.
c840244e 91CFILES = i386-dis.c z8k-dis.c m68k-dis.c mips-dis.c
add1fb05
SC
92
93STAGESTUFF = $(TARGETLIB) $(OFILES)
94
95all: $(TARGETLIB)
96
97
98.NOEXPORT:
99
5d0734a7 100installcheck check:
add1fb05 101
e5bc6aaf 102info:
add1fb05 103clean-info:
e5bc6aaf 104install-info:
5d0734a7 105dvi:
add1fb05
SC
106
107# HDEPFILES comes from the host config; TDEPFILES from the target config.
108
109
110$(TARGETLIB): $(OFILES)
111 rm -f $(TARGETLIB)
112 $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
113 $(RANLIB) $(TARGETLIB)
114
68ca3238 115# Circumvent Sun Make bug with VPATH.
e08c3321 116dis-buf.o: dis-buf.c
2cb563e6 117h8500-dis.o: h8500-dis.c
e08c3321
JK
118i386-dis.o: i386-dis.c
119m68881-ext.o: m68881-ext.c
120m68k-dis.o: m68k-dis.c
121mips-dis.o: mips-dis.c
f7ed13c7 122sparc-dis.o: sparc-dis.c
e08c3321
JK
123sparc-opc.o: sparc-opc.c
124z8k-dis.o: z8k-dis.c
68ca3238 125
add1fb05
SC
126tags etags: TAGS
127
128TAGS: force
129 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
130
c840244e
PB
131MOSTLYCLEAN = *.o core *.E *.p *.ip
132mostyclean:
133 rm -rf $(MOSTLYCLEAN)
add1fb05 134clean:
c840244e
PB
135 rm -f *.a $(MOSTLYCLEAN)
136distclean: clean
137 rm -rf Makefile config.status sysdep.h TAGS
138clobber realclean: distclean
add1fb05
SC
139
140# Mark everything as depending on config.status, since the timestamp on
141# sysdep.h might actually move backwards if we reconfig and relink it
142# to a different hosts/h-xxx.h file. This will force a recompile anyway.
143RECONFIG = config.status
144
145
146
147# This target should be invoked before building a new release.
148# 'VERSION' file must be present and contain a string of the form "x.y"
149#
150roll:
151 @V=`cat VERSION` ; \
152 MAJ=`sed 's/\..*//' VERSION` ; \
153 MIN=`sed 's/.*\.//' VERSION` ; \
154 V=$$MAJ.`expr $$MIN + 1` ; \
155 rm -f VERSION ; \
156 echo $$V >VERSION ; \
157 echo Version $$V
158
159# Dummy target to force execution of dependent targets.
160#
161force:
162
163install:
164 -parent=`echo $(libdir)|sed -e 's@/[^/]*$$@@'`; \
165 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
166 -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi
1b2f5691 167 $(INSTALL_DATA) $(TARGETLIB) $(libdir)/libopcodes.a
794a16b0
KR
168 $(RANLIB) $(libdir)/libopcodes.a
169
add1fb05
SC
170Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
171 $(SHELL) ./config.status
172
173dep: $(CFILES)
174 mkdep $(CFLAGS) $?
175
176
177# What appears below is generated by a hacked mkdep using gcc -MM.
178
179# DO NOT DELETE THIS LINE -- mkdep uses it.
180# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
181
182
183# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
184
This page took 0.053902 seconds and 4 git commands to generate.