Do not declare atof if it is a macro.
[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
fde326fb 56INCDIR = $(srcdir)/../include
c840244e 57BFDDIR = $(srcdir)/../bfd
fde326fb 58CSEARCH = -I. -I$(srcdir) -I../bfd -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.
a4c01299
ILT
66
67DIS_LIBS = i386-dis.o z8k-dis.o m68k-dis.o mips-dis.o h8500-dis.o \
68 h8300-dis.o dis-buf.o sparc-dis.o a29k-dis.o i960-dis.o \
69 alpha-dis.o sh-dis.o hppa-dis.o m88k-dis.o
add1fb05 70
c840244e 71OFILES = $(DIS_LIBS) sparc-opc.o m68881-ext.o
add1fb05
SC
72#### host and target dependent Makefile fragments come in here.
73###
74
75FLAGS_TO_PASS = \
76 "against=$(against)" \
77 "AR=$(AR)" \
78 "AR_FLAGS=$(AR_FLAGS)" \
79 "CC=$(CC)" \
80 "CFLAGS=$(CFLAGS)" \
81 "RANLIB=$(RANLIB)" \
82 "MAKEINFO=$(MAKEINFO)" \
83 "INSTALL=$(INSTALL)" \
84 "INSTALL_DATA=$(INSTALL_DATA)" \
85 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
86 "BISON=$(BISON)"
87
88.c.o:
89 $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
90
91
92# C source files that correspond to .o's.
c840244e 93CFILES = i386-dis.c z8k-dis.c m68k-dis.c mips-dis.c
add1fb05
SC
94
95STAGESTUFF = $(TARGETLIB) $(OFILES)
96
97all: $(TARGETLIB)
98
99
100.NOEXPORT:
101
5d0734a7 102installcheck check:
add1fb05 103
e5bc6aaf 104info:
add1fb05 105clean-info:
e5bc6aaf 106install-info:
5d0734a7 107dvi:
add1fb05
SC
108
109# HDEPFILES comes from the host config; TDEPFILES from the target config.
110
111
112$(TARGETLIB): $(OFILES)
113 rm -f $(TARGETLIB)
114 $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
115 $(RANLIB) $(TARGETLIB)
116
fde326fb
ILT
117a29k-dis.o: a29k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/a29k.h
118dis-buf.o: dis-buf.c $(INCDIR)/dis-asm.h
119h8500-dis.o: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h
120h8300-dis.o: h8300-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/h8300.h
121i386-dis.o: i386-dis.c $(INCDIR)/dis-asm.h
122i960-dis.o: i960-dis.c $(INCDIR)/dis-asm.h
123m68881-ext.o: m68881-ext.c $(INCDIR)/ieee-float.h
124m68k-dis.o: m68k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/ieee-float.h \
125 $(INCDIR)/opcode/m68k.h
126mips-dis.o: mips-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/mips.h
127sparc-dis.o: sparc-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/sparc.h
128sparc-opc.o: sparc-opc.c $(INCDIR)/opcode/sparc.h
129z8k-dis.o: z8k-dis.c z8k-opc.h $(INCDIR)/dis-asm.h
130sh-dis.o: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h
131alpha-dis.o: alpha-dis.c alpha-opc.h $(INCDIR)/dis-asm.h
132hppa-dis.o: hppa-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/hppa.h
a4c01299 133m88k-dis.o: m88k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/m88k.h
68ca3238 134
add1fb05
SC
135tags etags: TAGS
136
137TAGS: force
138 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
139
c840244e
PB
140MOSTLYCLEAN = *.o core *.E *.p *.ip
141mostyclean:
142 rm -rf $(MOSTLYCLEAN)
add1fb05 143clean:
c840244e
PB
144 rm -f *.a $(MOSTLYCLEAN)
145distclean: clean
146 rm -rf Makefile config.status sysdep.h TAGS
147clobber realclean: distclean
add1fb05
SC
148
149# Mark everything as depending on config.status, since the timestamp on
150# sysdep.h might actually move backwards if we reconfig and relink it
151# to a different hosts/h-xxx.h file. This will force a recompile anyway.
152RECONFIG = config.status
153
154
155
156# This target should be invoked before building a new release.
157# 'VERSION' file must be present and contain a string of the form "x.y"
158#
159roll:
160 @V=`cat VERSION` ; \
161 MAJ=`sed 's/\..*//' VERSION` ; \
162 MIN=`sed 's/.*\.//' VERSION` ; \
163 V=$$MAJ.`expr $$MIN + 1` ; \
164 rm -f VERSION ; \
165 echo $$V >VERSION ; \
166 echo Version $$V
167
168# Dummy target to force execution of dependent targets.
169#
170force:
171
172install:
1b2f5691 173 $(INSTALL_DATA) $(TARGETLIB) $(libdir)/libopcodes.a
794a16b0
KR
174 $(RANLIB) $(libdir)/libopcodes.a
175
add1fb05
SC
176Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
177 $(SHELL) ./config.status
178
179dep: $(CFILES)
180 mkdep $(CFLAGS) $?
181
182
183# What appears below is generated by a hacked mkdep using gcc -MM.
184
185# DO NOT DELETE THIS LINE -- mkdep uses it.
186# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
187
188
189# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
190
This page took 0.156651 seconds and 4 git commands to generate.