mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
* configure.in: Call AC_CONFIG_HEADER. Don't try to use
bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES and AR. Call AC_CHECK_HEADERS for stdlib.h and time.h. Touch stamp.h if creating config.h. * configure: Rebuild. * Makefile.in (AR): Define as @AR@. (CC): New variable, defined as @CC@. (CFLAGS): Define as @CFLAGS@. (RANLIB): Define as @RANLIB@. (HDEFINES, TDEFINES): New variables. (@host_makefile_frag@): Remove. (compile.o, run.o): Depend upon config.h. (mostlyclean): Make the same as clean, not distclean. (clean): Remove config.log. (distclean): Remove config.h and stamp-h. (Makefile): Don't depend upon @frags@. Just rebuild Makefile when invoking config.status. (config.h, stamp-h): New targets. * compile.c: Include "config.h". Don't include <sys/times.h>. Include <time.h> and <stdlib.h> if they exist. Don't include "sysdep.h". (get_now): Remove unused local b. * run.c: Include "config.h". Include <stdlib.h> if it exists. Don't include "sysdep.h". * writecode.c: Don't include "bfd.h" or "sysdep.h". Include <stdio.h>.
This commit is contained in:
@ -27,6 +27,7 @@ Things-to-keep:
|
|||||||
|
|
||||||
ChangeLog
|
ChangeLog
|
||||||
Makefile.in
|
Makefile.in
|
||||||
|
config.in
|
||||||
configure
|
configure
|
||||||
configure.in
|
configure.in
|
||||||
compile.c
|
compile.c
|
||||||
|
@ -1,5 +1,42 @@
|
|||||||
|
Fri Sep 8 12:18:53 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* configure.in: Call AC_CONFIG_HEADER. Don't try to use
|
||||||
|
bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and
|
||||||
|
AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES and AR.
|
||||||
|
Call AC_CHECK_HEADERS for stdlib.h and time.h. Touch stamp.h if
|
||||||
|
creating config.h.
|
||||||
|
* configure: Rebuild.
|
||||||
|
* Makefile.in (AR): Define as @AR@.
|
||||||
|
(CC): New variable, defined as @CC@.
|
||||||
|
(CFLAGS): Define as @CFLAGS@.
|
||||||
|
(RANLIB): Define as @RANLIB@.
|
||||||
|
(HDEFINES, TDEFINES): New variables.
|
||||||
|
(@host_makefile_frag@): Remove.
|
||||||
|
(compile.o, run.o): Depend upon config.h.
|
||||||
|
(mostlyclean): Make the same as clean, not distclean.
|
||||||
|
(clean): Remove config.log.
|
||||||
|
(distclean): Remove config.h and stamp-h.
|
||||||
|
(Makefile): Don't depend upon @frags@. Just rebuild Makefile when
|
||||||
|
invoking config.status.
|
||||||
|
(config.h, stamp-h): New targets.
|
||||||
|
* compile.c: Include "config.h". Don't include <sys/times.h>.
|
||||||
|
Include <time.h> and <stdlib.h> if they exist. Don't include
|
||||||
|
"sysdep.h".
|
||||||
|
(get_now): Remove unused local b.
|
||||||
|
* run.c: Include "config.h". Include <stdlib.h> if it exists.
|
||||||
|
Don't include "sysdep.h".
|
||||||
|
* writecode.c: Don't include "bfd.h" or "sysdep.h". Include
|
||||||
|
<stdio.h>.
|
||||||
|
|
||||||
|
Thu Aug 3 10:45:37 1995 Fred Fish <fnf@cygnus.com>
|
||||||
|
|
||||||
|
* Update all FSF addresses except those in COPYING* files.
|
||||||
|
|
||||||
Wed Jul 5 14:32:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
|
Wed Jul 5 14:32:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
|
||||||
|
|
||||||
|
* Makefile.in (clean): Remove run.
|
||||||
|
(distclean): Remove Makefile.
|
||||||
|
|
||||||
* h8300.mt: Removed.
|
* h8300.mt: Removed.
|
||||||
|
|
||||||
* Makefile.in, configure.in: converted to autoconf.
|
* Makefile.in, configure.in: converted to autoconf.
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# 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@
|
VPATH = @srcdir@
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
@ -54,12 +54,16 @@ INSTALL_DATA = $(INSTALL)
|
|||||||
INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
|
INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
|
||||||
INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
|
INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
|
||||||
|
|
||||||
AR = ar
|
AR = @AR@
|
||||||
AR_FLAGS = rc
|
AR_FLAGS = rc
|
||||||
CFLAGS = -g
|
CC = @CC@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
BISON = bison
|
BISON = bison
|
||||||
MAKEINFO = makeinfo
|
MAKEINFO = makeinfo
|
||||||
RANLIB = ranlib
|
RANLIB = @RANLIB@
|
||||||
|
|
||||||
|
HDEFINES = @HDEFINES@
|
||||||
|
TDEFINES =
|
||||||
|
|
||||||
.NOEXPORT:
|
.NOEXPORT:
|
||||||
MAKEOVERRIDES=
|
MAKEOVERRIDES=
|
||||||
@ -68,17 +72,13 @@ INCDIR = $(srcdir)/../../include
|
|||||||
CSEARCH = -I. -I$(srcdir) -I$(INCDIR) -I../../bfd -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb
|
CSEARCH = -I. -I$(srcdir) -I$(INCDIR) -I../../bfd -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb
|
||||||
DEP = mkdep
|
DEP = mkdep
|
||||||
|
|
||||||
#### Makefile fragments come in here.
|
|
||||||
# @host_makefile_frag@
|
|
||||||
###
|
|
||||||
|
|
||||||
all: run
|
all: run
|
||||||
|
|
||||||
run: compile.o run.o
|
run: compile.o run.o
|
||||||
$(CC) -o run compile.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a
|
$(CC) -o run compile.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a
|
||||||
|
|
||||||
compile.o:compile.c
|
compile.o: compile.c config.h
|
||||||
run.o:run.c
|
run.o: run.c config.h
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
|
$(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
|
||||||
@ -94,12 +94,13 @@ tags etags: TAGS
|
|||||||
TAGS: force
|
TAGS: force
|
||||||
etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
|
etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
|
||||||
|
|
||||||
clean:
|
mostlyclean clean:
|
||||||
rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
|
rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
|
||||||
|
rm -f run config.log
|
||||||
|
|
||||||
distclean mostlyclean realclean: clean
|
distclean realclean: clean
|
||||||
rm -f TAGS
|
rm -f TAGS
|
||||||
rm -f config.log config.cache config.status
|
rm -f Makefile config.log config.cache config.status config.h stamp-h
|
||||||
|
|
||||||
# Dummy target to force execution of dependent targets.
|
# Dummy target to force execution of dependent targets.
|
||||||
#
|
#
|
||||||
@ -118,8 +119,12 @@ install:
|
|||||||
else true; fi
|
else true; fi
|
||||||
|
|
||||||
|
|
||||||
Makefile: Makefile.in config.status @frags
|
Makefile: Makefile.in config.status
|
||||||
$(SHELL) ./config.status
|
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
config.h: stamp-h ; @true
|
||||||
|
stamp-h: config.in config.status
|
||||||
|
CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
|
||||||
|
|
||||||
config.status: configure
|
config.status: configure
|
||||||
$(SHELL) ./config.status --recheck
|
$(SHELL) ./config.status --recheck
|
||||||
|
@ -2,31 +2,22 @@ dnl Process this file with autoconf to produce a configure script.
|
|||||||
AC_PREREQ(2.3)dnl
|
AC_PREREQ(2.3)dnl
|
||||||
AC_INIT(Makefile.in)
|
AC_INIT(Makefile.in)
|
||||||
|
|
||||||
|
AC_CONFIG_HEADER(config.h:config.in)
|
||||||
|
|
||||||
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
|
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
|
||||||
AC_CANONICAL_SYSTEM
|
AC_CANONICAL_SYSTEM
|
||||||
AC_ARG_PROGRAM
|
AC_ARG_PROGRAM
|
||||||
|
|
||||||
. ${srcdir}/../../bfd/configure.host
|
. ${srcdir}/../../bfd/configure.host
|
||||||
|
|
||||||
# Set up to make a link between the host's include file and "sysdep.h".
|
AC_PROG_CC
|
||||||
files="../../bfd/hosts/${my_host}.h"
|
AC_SUBST(CFLAGS)
|
||||||
if test ! -f ${srcdir}/${files} ; then
|
AC_SUBST(HDEFINES)
|
||||||
files=../../bfd/hosts/std-host.h
|
AR=${AR-ar}
|
||||||
AC_MSG_WARN(h8300sim has no specific support for host ${host} -- using std-host)
|
AC_SUBST(AR)
|
||||||
fi
|
AC_PROG_RANLIB
|
||||||
AC_LINK_FILES($files, sysdep.h)
|
|
||||||
|
|
||||||
if test -f ${srcdir}/../../bfd/config/${my_host}.mh; then
|
AC_CHECK_HEADERS(stdlib.h time.h)
|
||||||
host_makefile_frag=../../bfd/config/${my_host}.mh
|
|
||||||
else
|
|
||||||
host_makefile_frag=/dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
frags=
|
AC_OUTPUT(Makefile,
|
||||||
if test $host_makefile_frag != /dev/null; then
|
[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
|
||||||
frags="$frags $host_makefile_frag"
|
|
||||||
fi
|
|
||||||
AC_SUBST_FILE(host_makefile_frag)
|
|
||||||
AC_SUBST(frags)
|
|
||||||
|
|
||||||
AC_OUTPUT(Makefile)
|
|
||||||
|
@ -18,10 +18,15 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include <varargs.h>
|
#include <varargs.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#ifdef HAVE_STDLIB_H
|
||||||
|
#include <stdlib.h>
|
||||||
|
#endif
|
||||||
|
#include "getopt.h"
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "sysdep.h"
|
|
||||||
#include "remote-sim.h"
|
#include "remote-sim.h"
|
||||||
|
|
||||||
void usage();
|
void usage();
|
||||||
|
Reference in New Issue
Block a user