1 # Makefile template for Configure for the SH sim library.
2 # Copyright (C) 1990, 1991, 1992, 1995 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 VPATH
= @
srcdir@
:@
srcdir@
/..
/common
:@
srcdir@
/..
/..
/gdb
/
21 srcroot
= $(srcdir)/..
/..
24 exec_prefix = @
exec_prefix@
26 host_alias
= @host_alias@
27 target_alias
= @target_alias@
28 program_transform_name
= @program_transform_name@
32 tooldir
= $(libdir)/$(target_alias
)
36 man1dir = $(mandir)/man1
37 man2dir = $(mandir)/man2
38 man3dir = $(mandir)/man3
39 man4dir = $(mandir)/man4
40 man5dir = $(mandir)/man5
41 man6dir = $(mandir)/man6
42 man7dir = $(mandir)/man7
43 man8dir = $(mandir)/man8
44 man9dir = $(mandir)/man9
46 includedir = @
includedir@
50 INSTALL
= $(srcroot
)/install.sh
-c
51 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
52 INSTALL_DATA
= @INSTALL_DATA@
53 INSTALL_XFORM
= $(INSTALL
) -t
='$(program_transform_name)'
54 INSTALL_XFORM1
= $(INSTALL_XFORM
) -b
=.1
62 CC_FOR_BUILD
= @CC_FOR_BUILD@
75 INCDIR
= $(srcdir)/..
/..
/include
76 CSEARCH
= -I.
-I
$(srcdir) -I..
/..
/include \
77 -I..
/..
/bfd
-I
$(INCDIR
) -I
$(srcdir)/..
/..
/bfd
-I
$(srcdir)/..
/..
/gdb
-I
$(srcdir)/..
/..
/newlib
/libc
/sys
/sh
82 run
: interp.o
$(X
) run.o table.o callback.o simops.o
83 $(CC
) $(CFLAGS
) -o run
$(X
) interp.o table.o callback.o simops.o run.o ..
/..
/bfd
/libbfd.a ..
/..
/libiberty
/libiberty.a
$(XL
) -lm
85 interp.o
:interp.c table.c
88 libsim.a
:interp.o table.o simops.o
89 $(AR
) $(ARFLAGS
) libsim.a interp.o table.o
95 table.c
: gencode simops.h
99 $(CC
) $(CFLAGS
) $(HDEFINES
) $(TDEFINES
) $(CSEARCH
) $(CSWITCHE
) -o gencode
$(srcdir)/gencode.c ..
/..
/opcodes
/libopcodes.a
-lc
102 $(CC
) -c
-DINSIDE_SIMULATOR
$(CFLAGS
) $(HDEFINES
) $(TDEFINES
) $(CSEARCH
) $(CSWITCHES
) $<
113 etags
$(INCDIR
)/*.h
$(srcdir)/*.h
$(srcdir)/*.c
116 rm -f
*.
[oa
] *~ core
*.E
*.p
*.ip aout-params.h gen-aout
119 distclean mostlyclean maintainer-clean
realclean: clean
121 rm -f Makefile config.cache config.log config.status
123 # Dummy target to force execution of dependent targets.
127 # Copy the files into directories where they will be run.
129 $(INSTALL_XFORM
) run
$(bindir)/run
132 $(INSTALL_XFORM1
) $(srcdir)/run
.1 $(man1dir)/run
.1
134 Makefile
: Makefile.in config.status
135 $(SHELL
) .
/config.status
137 config.status
: configure
138 $(SHELL
) .
/config.status
--recheck
143 # What appears below is generated by a hacked mkdep using gcc -MM.
145 # DO NOT DELETE THIS LINE -- mkdep uses it.
146 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
149 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY