1 |
106 |
markom |
# Makefile template for Configure for the z8k sim library.
|
2 |
|
|
# Copyright (C) 1993, 95, 96, 1997 Free Software Foundation, Inc.
|
3 |
|
|
# Written by Cygnus Support.
|
4 |
|
|
#
|
5 |
|
|
# This program is free software; you can redistribute it and/or modify
|
6 |
|
|
# it under the terms of the GNU General Public License as published by
|
7 |
|
|
# the Free Software Foundation; either version 2 of the License, or
|
8 |
|
|
# (at your option) any later version.
|
9 |
|
|
#
|
10 |
|
|
# This program is distributed in the hope that it will be useful,
|
11 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
|
|
# GNU General Public License for more details.
|
14 |
|
|
#
|
15 |
|
|
# You should have received a copy of the GNU General Public License
|
16 |
|
|
# along with this program; if not, write to the Free Software
|
17 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
18 |
|
|
|
19 |
|
|
## COMMON_PRE_CONFIG_FRAG
|
20 |
|
|
|
21 |
|
|
SIM_OBJS = iface.o mem.o support.o quick.o \
|
22 |
|
|
comped1.o comped2.o comped3.o compedb3.o sim-load.o
|
23 |
|
|
# FIXME: hack to find syscall.h. Better support for syscall.h is
|
24 |
|
|
# in progress.
|
25 |
|
|
SIM_EXTRA_CFLAGS = -I$(srcdir)/../../newlib/libc/sys/z8k
|
26 |
|
|
SIM_EXTRA_CLEAN = clean-extra
|
27 |
|
|
|
28 |
|
|
CONFIG_H = config.h
|
29 |
|
|
|
30 |
|
|
## COMMON_POST_CONFIG_FRAG
|
31 |
|
|
|
32 |
|
|
support.o:support.c inlines.h $(CONFIG_H)
|
33 |
|
|
mem.o: mem.c tm.h mem.h sim.h $(CONFIG_H)
|
34 |
|
|
|
35 |
|
|
comped1.o:comped1.c tc-gen1.h $(CONFIG_H)
|
36 |
|
|
comped3.o:comped3.c tc-gen3.h $(CONFIG_H)
|
37 |
|
|
compedb3.o:compedb3.c tc-genb3.h $(CONFIG_H)
|
38 |
|
|
comped2.o:comped2.c tc-gen2.h $(CONFIG_H)
|
39 |
|
|
|
40 |
|
|
tc-gen1.h:writecode
|
41 |
|
|
./writecode -1 >tc-gen1.h
|
42 |
|
|
|
43 |
|
|
tc-gen2.h:writecode
|
44 |
|
|
./writecode -2 >tc-gen2.h
|
45 |
|
|
|
46 |
|
|
tc-gen3.h:writecode
|
47 |
|
|
./writecode -3 >tc-gen3.h
|
48 |
|
|
|
49 |
|
|
tc-genb3.h:writecode
|
50 |
|
|
./writecode -b3 >tc-genb3.h
|
51 |
|
|
|
52 |
|
|
writecode: writecode.o list.o bquick.o
|
53 |
|
|
$(CC_FOR_BUILD) -o writecode writecode.o list.o bquick.o
|
54 |
|
|
|
55 |
|
|
writecode.o: writecode.c $(CONFIG_H)
|
56 |
|
|
$(CC_FOR_BUILD) -c $(CFLAGS) $(HDEFINES) $(CSEARCH) $(CSWITCHES) $(srcdir)/writecode.c
|
57 |
|
|
|
58 |
|
|
list.o: list.c
|
59 |
|
|
$(CC_FOR_BUILD) -c $(CFLAGS) $(HDEFINES) $(CSEARCH) $(CSWITCHES) $(srcdir)/list.c
|
60 |
|
|
|
61 |
|
|
# Two copies of quick.o are created. One for $build and one for $host.
|
62 |
|
|
bquick.o: quick.c
|
63 |
|
|
$(CC_FOR_BUILD) -c $(CFLAGS) $(HDEFINES) $(CSEARCH) $(CSWITCHES) $(srcdir)/quick.c -o bquick.o
|
64 |
|
|
|
65 |
|
|
clean-extra:
|
66 |
|
|
rm -f tc-gen1.h tc-gen2.h tc-gen3.h tc-genb3.h writecode
|