* arminit.c (ARMul_NewState): Preinitialize the state to
[deliverable/binutils-gdb.git] / sim / arm / Makefile.orig
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)
21 ENDIAN=LITTLEEND
22
23 prefix=/usr/local
24 CC = gcc
25 CFLAGS = -O2 -D$(ENDIAN) $(CFL)
26 INSTALL_DIR = $(prefix)/bin
27 INSTALL=cp
28
29 # Everything else should be ok as it is.
30
31 OBJS = 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
35 SRCS = 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
38 INCS = 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
41 TARED = $(SRCS) $(INCS) README COPYING Makefile
42
43 MODEL = armvirt
44
45 VER=1.0
46
47 all: armul
48
49 install: all
50 $(INSTALL) armul $(INSTALL_DIR)
51
52 armul: $(OBJS) $(MODEL).o
53 $(CC) $(CFLAGS) $(OBJS) $(MODEL).o -o $@ -lm -lXext -lX11
54
55 clean:
56 rm -f *.o armul core
57
58 distclean: clean
59 rm -f *~
60
61 realclean: distclean
62 rm -f *.tar *.tar.gz
63
64 armul.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
77 armvirt.o: armdefs.h armvirt.c
78 $(CC) $(CFLAGS) -c $*.c
79
80 # other objects
81
82 armos.o: armos.c armdefs.h armos.h armfpe.h
83 $(CC) $(CFLAGS) -c $*.c
84
85 armcopro.o: armcopro.c armdefs.h
86 $(CC) $(CFLAGS) -c $*.c
87
88 armemu26.o: armemu.c armdefs.h armemu.h
89 $(CC) $(CFLAGS) -o armemu26.o -c armemu.c
90
91 armemu32.o: armemu.c armdefs.h armemu.h
92 $(CC) $(CFLAGS) -o armemu32.o -DMODE32 -c armemu.c
93
94 arminit.o: arminit.c armdefs.h armemu.h
95 $(CC) $(CFLAGS) -c $*.c
96
97 armrdi.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
101 armsupp.o: armsupp.c armdefs.h armemu.h
102 $(CC) $(CFLAGS) -c $*.c
103
104 kid.o: kid.c armdefs.h dbg_conf.h dbg_hif.h dbg_rdi.h gdbhost.h communicate.h
105 $(CC) $(CFLAGS) -c $*.c
106
107 main.o: main.c armdefs.h dbg_rdi.h dbg_conf.h
108 $(CC) $(CFLAGS) -c $*.c
109
110 communicate.o: communicate.c armdefs.h
111 $(CC) $(CFLAGS) -c $*.c
112
113 bag.o: bag.c bag.h
114 $(CC) $(CFLAGS) -c $*.c
115
116 gdbhost.o: gdbhost.c armdefs.h communicate.h dbg_rdi.h armos.h
117 $(CC) $(CFLAGS) -c $*.c
118
119 parent.o: parent.c armdefs.h dbg_rdi.h communicate.h
120 $(CC) $(CFLAGS) -c $*.c
This page took 0.032202 seconds and 4 git commands to generate.