]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/igen/Makefile.in
This commit was generated by cvs2svn to track changes on a CVS vendor
[thirdparty/binutils-gdb.git] / sim / igen / Makefile.in
1 #
2 # This file is part of the program psim.
3 #
4 # Copyright (C) 1994-1997, Andrew Cagney <cagney@highland.com.au>
5 # Copyright (C) 1997, Free Software Foundation, Inc.
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #
21
22 default: all
23
24 VPATH = @srcdir@
25 srcdir = @srcdir@
26 srcroot = $(srcdir)/../..
27
28 prefix = @prefix@
29 exec_prefix = @exec_prefix@
30
31 host_alias = @host_alias@
32 target_alias = @target_alias@
33 program_transform_name = @program_transform_name@
34 bindir = @bindir@
35 libdir = @libdir@
36 tooldir = $(libdir)/$(target_alias)
37
38 datadir = @datadir@
39 mandir = @mandir@
40 man1dir = $(mandir)/man1
41 man2dir = $(mandir)/man2
42 man3dir = $(mandir)/man3
43 man4dir = $(mandir)/man4
44 man5dir = $(mandir)/man5
45 man6dir = $(mandir)/man6
46 man7dir = $(mandir)/man7
47 man8dir = $(mandir)/man8
48 man9dir = $(mandir)/man9
49 infodir = @infodir@
50 includedir = @includedir@
51
52 SHELL = /bin/sh
53
54 INSTALL = $(srcroot)/install.sh -c
55 INSTALL_PROGRAM = @INSTALL_PROGRAM@
56 INSTALL_DATA = @INSTALL_DATA@
57 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
58 INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
59
60 AR = @AR@
61 AR_FLAGS = rc
62 CC = @CC@
63 CFLAGS = @CFLAGS@
64 CC_FOR_BUILD = @CC_FOR_BUILD@
65 BISON = bison
66 MAKEINFO = makeinfo
67 RANLIB = @RANLIB@
68
69 STD_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES)
70 NOWARN_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES)
71 BUILD_CFLAGS = -g -O $(INCLUDES) $(WARNING_CFLAGS)
72
73 BUILD_LDFLAGS =
74
75 .NOEXPORT:
76 MAKEOVERRIDES=
77
78 LIB_INCLUDES = -I$(srcdir)/../../include
79 INCLUDES = -I. -I$(srcdir) $(LIB_INCLUDES)
80
81 LIBIBERTY_LIB = ../../libiberty/libiberty.a
82
83
84 IGENLIB= libigen.a
85
86 all: igen $(IGENLIB)
87
88 .c.o:
89 $(CC_FOR_BUILD) -c $(STD_CFLAGS) $<
90
91 filter_filename.o: filter_filename.c filter_filename.h config.h ppc-config.h
92
93 igen: igen.o $(IGENLIB)
94 $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o igen igen.o $(IGENLIB) $(LIBIBERTY_LIB)
95
96 IGEN_OBJS=\
97 table.o \
98 lf.o misc.o \
99 filter_host.o \
100 ld-decode.o \
101 ld-cache.o \
102 filter.o \
103 ld-insn.o \
104 gen-model.o \
105 gen-itable.o \
106 gen-icache.o \
107 gen-semantics.o \
108 gen-idecode.o \
109 gen-support.o \
110 gen-engine.o
111
112 igen.o: igen.c misc.h filter_host.h lf.h table.h ld-decode.h ld-cache.h ld-insn.h filter.h gen-model.h gen-itable.h gen-icache.h gen-idecode.h gen-engine.h gen-semantics.h gen-support.h igen.h
113 $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/igen.c
114
115 $(IGENLIB): $(IGEN_OBJS)
116 rm -f $(IGENLIB)
117 $(AR) $(AR_FLAGS) $(IGENLIB) $(IGEN_OBJS)
118 $(RANLIB) $(IGENLIB)
119
120
121 tmp-filter: filter.c misc.h misc.o
122 $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-filter -DMAIN $(srcdir)/filter.c misc.o $(BUILD_LIBS)
123
124 tmp-ld-decode: ld-decode.o misc.o lf.o table.o filter_host.o
125 $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-ld-decode -DMAIN $(srcdir)/ld-decode.c misc.o lf.o table.o filter_host.o $(BUILD_LIBS)
126
127 tmp-ld-cache: ld-cache.o misc.o lf.o table.o filter_host.o
128 $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-ld-cache -DMAIN $(srcdir)/ld-cache.c misc.o lf.o table.o filter_host.o $(BUILD_LIBS)
129
130 tmp-ld-insn: ld-insn.o misc.o lf.o table.o ld-decode.o filter_host.o filter.o
131 $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-ld-insn -DMAIN $(srcdir)/ld-insn.c misc.o lf.o table.o ld-decode.o filter_host.o filter.o $(BUILD_LIBS)
132
133 filter_host.o: filter_host.c filter_host.h
134 table.o: table.c misc.h filter_host.h lf.h table.h
135 lf.o: lf.c misc.h filter_host.h lf.h
136 filter.o: filter.c misc.h lf.h table.h filter.h
137 ld-decode.o: ld-decode.c misc.h lf.h table.h ld-decode.h
138 ld-cache.o: ld-cache.c misc.h lf.h table.h ld-cache.h
139 ld-insn.o: ld-insn.c misc.h lf.h table.h ld-insn.h ld-decode.h igen.h
140 gen-model.o: gen-model.c misc.h lf.h table.h gen-model.h ld-decode.h igen.h ld-insn.h
141 gen-itable.o: gen-itable.c misc.h lf.h table.h gen-itable.h ld-decode.h igen.h ld-insn.h igen.h
142 gen-icache.o: gen-icache.c misc.h lf.h table.h gen-icache.h ld-decode.h igen.h ld-insn.h gen-semantics.h gen-idecode.h
143 gen-semantics.o: gen-semantics.c misc.h lf.h table.h gen-semantics.h ld-decode.h igen.h ld-insn.h
144 gen-idecode.o: gen-idecode.c misc.h lf.h table.h gen-idecode.h gen-icache.h gen-semantics.h ld-decode.h igen.h ld-insn.h
145 gen-engine.o: gen-engine.c misc.h lf.h table.h gen-idecode.h gen-engine.h gen-icache.h gen-semantics.h ld-decode.h igen.h ld-insn.h
146 gen-support.o: gen-support.c misc.h lf.h table.h gen-support.h ld-decode.h igen.h ld-insn.h
147 misc.o: misc.c misc.h filter_host.h
148
149
150 tags etags: TAGS
151
152 TAGS:
153 etags $(srcdir)/*.h $(srcdir)/*.c
154
155 clean mostlyclean:
156 rm -f tmp-* *.[oasi] core igen
157
158 distclean realclean: clean
159 rm -f TAGS Makefile config.cache config.status config.h defines.h stamp-h config.log
160
161 maintainer-clean: distclean
162 rm -f *~ *.log ppc-config.h core *.core
163
164 Makefile: Makefile.in config.status
165 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
166
167 config.h: stamp-h ; @true
168 stamp-h: config.in config.status
169 CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
170
171 config.status: configure
172 $(SHELL) ./config.status --recheck
173
174 install:
175 #