aboutsummaryrefslogtreecommitdiff
path: root/sim/sh/Makefile.in
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1995-09-07 22:07:47 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1995-09-07 22:07:47 +0000
commitc632873c27144551ef119f4c9e165d296e9fd25d (patch)
tree0d53c906d3d990b867bfed2c2a046002b0704454 /sim/sh/Makefile.in
parent3dce804d95038e79221db090a067112bbca304d1 (diff)
downloadgdb-c632873c27144551ef119f4c9e165d296e9fd25d.zip
gdb-c632873c27144551ef119f4c9e165d296e9fd25d.tar.gz
gdb-c632873c27144551ef119f4c9e165d296e9fd25d.tar.bz2
(Try to) Update to new bfd autoconf scheme.
* run.c: Don't include sysdep.h. * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value. (CC, CFLAGS, AR, RANLIB): Likewise. (HDEFINES, TDEFINES): Define. (CC_FOR_BUILD): Delete. (host_makefile_frag): Delete. (Makefile): Don't depend on frags. * configure.in (sysdep.h): Don't create symlink. (host_makefile_frag, frags): Deleted. (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values. * configure: Regenerated.
Diffstat (limited to 'sim/sh/Makefile.in')
-rw-r--r--sim/sh/Makefile.in46
1 files changed, 20 insertions, 26 deletions
diff --git a/sim/sh/Makefile.in b/sim/sh/Makefile.in
index a8ed2e1..839fdc7 100644
--- a/sim/sh/Makefile.in
+++ b/sim/sh/Makefile.in
@@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
VPATH = @srcdir@
srcdir = @srcdir@
@@ -27,6 +27,7 @@ host_alias = @host_alias@
target_alias = @target_alias@
program_transform_name = @program_transform_name@
bindir = $(exec_prefix)/bin
+
libdir = $(exec_prefix)/lib
tooldir = $(libdir)/$(target_alias)
@@ -47,24 +48,24 @@ docdir = $(datadir)/doc
SHELL = /bin/sh
-# FIXME: use autoconf's AC_PROG_INSTALL
-INSTALL = $(srcroot)/install.sh -c
-INSTALL_PROGRAM = $(INSTALL)
-INSTALL_DATA = $(INSTALL)
-INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
-INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
-AR = ar
+AR = @AR@
AR_FLAGS = rc
-CFLAGS = -g
+CC = @CC@
+CFLAGS = @CFLAGS@
BISON = bison
MAKEINFO = makeinfo
-RANLIB = ranlib
+RANLIB = @RANLIB@
+
+HDEFINES = @HDEFINES@
+TDEFINES =
.NOEXPORT:
MAKEOVERRIDES=
-CC_FOR_BUILD = cc
X=xstuff.o
XL=-lX11
X=
@@ -75,14 +76,10 @@ CSEARCH = -I. -I$(srcdir) -I../../include \
-I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb -I$(srcdir)/../../newlib/libc/sys/sh
DEP = mkdep
-#### Makefile fragments come in here.
-# @host_makefile_frag@
-###
-
all: run libsim.a
run: interp.o $(X) run.o table.o
- $(CC) $(CFLAGS) -o run $(X) interp.o table.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a $(XL)
+ $(CC) $(CFLAGS) -o run $(X) interp.o table.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a $(XL) -lm
interp.o:interp.c code.c table.c
run.o:run.c
@@ -100,7 +97,7 @@ table.c:gencode
# indent table.c
gencode:gencode.c
- $(CC_FOR_BUILD) -o gencode $(srcdir)/gencode.c
+ $(CC) -o gencode $(srcdir)/gencode.c
.c.o:
$(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
@@ -118,6 +115,7 @@ TAGS: force
clean:
rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
+ rm -f run libsim.a
distclean mostlyclean realclean: clean
rm -f TAGS
@@ -130,20 +128,16 @@ force:
# Copy the files into directories where they will be run.
install:
srcroot=`cd $(srcroot); pwd`; export srcroot; \
- $(INSTALL_XFORM) run $(bindir)/run ; \
n=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
- if [ -d $(tooldir) ] ; then \
- if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
- rm -f $(tooldir)/bin/run; \
- ln $(bindir)/$$n $(tooldir)/bin/run \
- || $(INSTALL_PROGRAM) run $(tooldir)/bin/run; \
- else true; fi
+ $(INSTALL_PROGRAM) run $(bindir)/$$n ; \
+ rm -f $(tooldir)/bin/run; \
+ ln $(bindir)/$$n $(tooldir)/bin/run \
+ || (INSTALL_PROGRAM) run $(tooldir)/bin/run; \
install-man: run.1
$(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
-
-Makefile: Makefile.in config.status @frags@
+Makefile: Makefile.in config.status
$(SHELL) ./config.status
config.status: configure