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