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