1 # 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.
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.
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.
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.
19 ## COMMON_PRE_CONFIG_FRAG
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
25 SIM_EXTRA_CFLAGS
= -I
$(srcdir)/..
/..
/newlib
/libc
/sys
/z8k
26 SIM_EXTRA_CLEAN
= clean-extra
30 ## COMMON_POST_CONFIG_FRAG
32 support.o
:support.c inlines.h
$(CONFIG_H
)
33 mem.o
: mem.c tm.h mem.h sim.h
$(CONFIG_H
)
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
)
41 .
/writecode
-1 >tc-gen1.h
44 .
/writecode
-2 >tc-gen2.h
47 .
/writecode
-3 >tc-gen3.h
50 .
/writecode
-b3
>tc-genb3.h
52 writecode
: writecode.o list.o bquick.o
53 $(CC_FOR_BUILD
) -o writecode writecode.o list.o bquick.o
55 writecode.o
: writecode.c
$(CONFIG_H
)
56 $(CC_FOR_BUILD
) -c
$(CFLAGS
) $(HDEFINES
) $(CSEARCH
) $(CSWITCHES
) $(srcdir)/writecode.c
59 $(CC_FOR_BUILD
) -c
$(CFLAGS
) $(HDEFINES
) $(CSEARCH
) $(CSWITCHES
) $(srcdir)/list.c
61 # Two copies of quick.o are created. One for $build and one for $host.
63 $(CC_FOR_BUILD
) -c
$(CFLAGS
) $(HDEFINES
) $(CSEARCH
) $(CSWITCHES
) $(srcdir)/quick.c
-o bquick.o
66 rm -f tc-gen1.h tc-gen2.h tc-gen3.h tc-genb3.h writecode