* common/aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
[platform/upstream/binutils.git] / sim / m32c / Makefile.in
1 #### Makefile.in --- Makefile template for the M32C simulator
2
3 ### Copyright (C) 2005 Free Software Foundation, Inc.
4 ### Contributed by Red Hat, Inc.
5 ### 
6 ### This file is part of the GNU simulators.
7 ### 
8 ### The GNU simulators are free software; you can redistribute them and/or
9 ### modify them under the terms of the GNU General Public License as
10 ### published by the Free Software Foundation; either version 2 of the
11 ### License, or (at your option) any later version.
12 ### 
13 ### The GNU simulators are distributed in the hope that they will be
14 ### useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ### General Public License for more details.
17 ### 
18 ### You should have received a copy of the GNU General Public License
19 ### along with the GNU simulators; if not, write to the Free Software
20 ### Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 ### 02110-1301, USA
22
23 ## COMMON_PRE_CONFIG_FRAG
24
25 SIM_EXTRA_CFLAGS = -Wall
26
27 SIM_RUN_OBJS = \
28         main.o \
29         $(ENDLIST)
30
31 SIM_OBJS = \
32         gdb-if.o \
33         int.o \
34         load.o \
35         mem.o \
36         misc.o \
37         reg.o \
38         r8c.o \
39         m32c.o \
40         srcdest.o \
41         syscalls.o \
42         trace.o \
43         $(ENDLIST)
44
45 # SIM_EXTRA_ALL = sample.x sample2.x
46
47 LIBS = $B/bfd/libbfd.a $B/libiberty/libiberty.a
48
49 ## COMMON_POST_CONFIG_FRAG
50
51 arch = m32c
52
53 r8c.c : r8c.opc opc2c
54         ./opc2c -l r8c.out $(srcdir)/r8c.opc > r8c.c
55
56 m32c.c : m32c.opc opc2c
57         ./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c
58
59 opc2c : opc2c.o safe-fgets.o
60         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
61
62 sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld
63         ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o
64         ../../ld/ld-new sample.o -o sample.x -T$(srcdir)/sample.ld
65
66 sample.mot : sample.x
67         ../../binutils/objcopy --srec-forceS3 -O srec sample.x sample.mot
68
69 sample2.x : sample2.o gloss.o $(srcdir)/sample.ld
70         ../../ld/ld-new sample2.o gloss.o -o sample2.x -T$(srcdir)/sample.ld
71
72 sample2.o : $(srcdir)/sample2.c
73         ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample2.c -o sample2.o
74
75 gloss.o : $(srcdir)/gloss.S
76         ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/gloss.S -o gloss.o
77
78 encodings:
79         grep '/\* [01]' $(srcdir)/r8c.opc | sort
80
81 gdb-if.o : cpu.h mem.h load.h syscalls.h
82 int.o : int.h cpu.h mem.h
83 load.o : load.h cpu.h mem.h
84 main.o : cpu.h mem.h misc.h load.h
85 mem.o : mem.h cpu.h syscalls.h
86 misc.o : cpu.h misc.h
87 opc2c.o : safe-fgets.h
88 reg.o : cpu.h
89 safe-fgets.o : safe-fgets.h
90 srcdest.c : cpu.h mem.h
91 syscalls.c : cpu.h mem.h syscalls.h
92
93 r8c.o : cpu.h mem.h misc.h int.h