Regenerate simulator configure scripts; Remove d10v traps 1-3, Make 15 the system...
[deliverable/binutils-gdb.git] / sim / arm / Makefile.orig
CommitLineData
2494eaf6
SC
1# Makefile for ARMulator: ARM6 Instruction Emulator.
2# Copyright (C) 1994 Advanced RISC Machines Ltd.
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18# These variables can be overridden
19
20#Default endianness of the processor (LITTLEEND or BIGEND)
21ENDIAN=LITTLEEND
22
23prefix=/usr/local
24CC = gcc
25CFLAGS = -O2 -D$(ENDIAN) $(CFL)
26INSTALL_DIR = $(prefix)/bin
27INSTALL=cp
28
29# Everything else should be ok as it is.
30
31OBJS = armcopro.o armemu26.o armemu32.o arminit.o armos.o \
32 armsupp.o main.o parent.o kid.o communicate.o gdbhost.o \
33 bag.o armrdi.o
34
35SRCS = armcopro.c armemu.c arminit.c armos.c armvirt.c \
36 armsupp.c main.c parent.c kid.c communicate.c gdbhost.c \
37 bag.c armrdi.c
38INCS = armdefs.h armemu.h armfpe.h armopts.h armos.h bag.h communicate.h \
39 dbg_conf.h dbg_cp.h dbg_hif.h dbg_rdi.h gdbhost.h
40
41TARED = $(SRCS) $(INCS) README COPYING Makefile
42
43MODEL = armvirt
44
45VER=1.0
46
47all: armul
48
49install: all
50 $(INSTALL) armul $(INSTALL_DIR)
51
52armul: $(OBJS) $(MODEL).o
53 $(CC) $(CFLAGS) $(OBJS) $(MODEL).o -o $@ -lm -lXext -lX11
54
55clean:
56 rm -f *.o armul core
57
58distclean: clean
59 rm -f *~
60
61realclean: distclean
62 rm -f *.tar *.tar.gz
63
64armul.tar.gz:
65 rm -rf armul-$(VER)
66 mkdir armul-$(VER)
67 cd armul-$(VER) ; \
68 for file in $(TARED) ; do \
69 ln ../$${file} . ; \
70 done
71 tar cf armul.tar armul-$(VER)
72 gzip armul.tar
73 mv armul.tar.gz armul-$(VER).tar.gz
74
75# memory models
76
77armvirt.o: armdefs.h armvirt.c
78 $(CC) $(CFLAGS) -c $*.c
79
80# other objects
81
82armos.o: armos.c armdefs.h armos.h armfpe.h
83 $(CC) $(CFLAGS) -c $*.c
84
85armcopro.o: armcopro.c armdefs.h
86 $(CC) $(CFLAGS) -c $*.c
87
88armemu26.o: armemu.c armdefs.h armemu.h
89 $(CC) $(CFLAGS) -o armemu26.o -c armemu.c
90
91armemu32.o: armemu.c armdefs.h armemu.h
92 $(CC) $(CFLAGS) -o armemu32.o -DMODE32 -c armemu.c
93
94arminit.o: arminit.c armdefs.h armemu.h
95 $(CC) $(CFLAGS) -c $*.c
96
97armrdi.o: armrdi.c armdefs.h armemu.h armos.h dbg_cp.h dbg_conf.h dbg_rdi.h \
98 dbg_hif.h communicate.h
99 $(CC) $(CFLAGS) -c $*.c
100
101armsupp.o: armsupp.c armdefs.h armemu.h
102 $(CC) $(CFLAGS) -c $*.c
103
104kid.o: kid.c armdefs.h dbg_conf.h dbg_hif.h dbg_rdi.h gdbhost.h communicate.h
105 $(CC) $(CFLAGS) -c $*.c
106
107main.o: main.c armdefs.h dbg_rdi.h dbg_conf.h
108 $(CC) $(CFLAGS) -c $*.c
109
110communicate.o: communicate.c armdefs.h
111 $(CC) $(CFLAGS) -c $*.c
112
113bag.o: bag.c bag.h
114 $(CC) $(CFLAGS) -c $*.c
115
116gdbhost.o: gdbhost.c armdefs.h communicate.h dbg_rdi.h armos.h
117 $(CC) $(CFLAGS) -c $*.c
118
119parent.o: parent.c armdefs.h dbg_rdi.h communicate.h
120 $(CC) $(CFLAGS) -c $*.c
This page took 0.076549 seconds and 4 git commands to generate.