aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-08 16:26:41 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-08 16:26:41 +0000
commit0743b4ac29326167e2f5507d9d4bf86ddaaa4ffb (patch)
tree1700d34c12558b47229ecd3b1d88e87473cd99b3 /sim/h8300/Makefile.in
parent1dff79026a659ca1ae5613cf98c2b62a5c0f98a4 (diff)
downloadgdb-0743b4ac29326167e2f5507d9d4bf86ddaaa4ffb.zip
gdb-0743b4ac29326167e2f5507d9d4bf86ddaaa4ffb.tar.gz
gdb-0743b4ac29326167e2f5507d9d4bf86ddaaa4ffb.tar.bz2
* 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>.
Diffstat (limited to 'sim/h8300/Makefile.in')
-rw-r--r--sim/h8300/Makefile.in35
1 files changed, 20 insertions, 15 deletions
diff --git a/sim/h8300/Makefile.in b/sim/h8300/Makefile.in
index 8020a34..9b1cb3f 100644
--- a/sim/h8300/Makefile.in
+++ b/sim/h8300/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@
@@ -54,12 +54,16 @@ INSTALL_DATA = $(INSTALL)
INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
-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=
@@ -68,17 +72,13 @@ INCDIR = $(srcdir)/../../include
CSEARCH = -I. -I$(srcdir) -I$(INCDIR) -I../../bfd -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb
DEP = mkdep
-#### Makefile fragments come in here.
-# @host_makefile_frag@
-###
-
all: run
run: compile.o run.o
$(CC) -o run compile.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a
-compile.o:compile.c
-run.o:run.c
+compile.o: compile.c config.h
+run.o: run.c config.h
.c.o:
$(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
@@ -94,12 +94,13 @@ tags etags: TAGS
TAGS: force
etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
-clean:
+mostlyclean clean:
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 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.
#
@@ -118,8 +119,12 @@ install:
else true; fi
-Makefile: Makefile.in config.status @frags
- $(SHELL) ./config.status
+Makefile: Makefile.in 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
$(SHELL) ./config.status --recheck