aboutsummaryrefslogtreecommitdiff
path: root/bfd/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-06 22:53:43 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-06 22:53:43 +0000
commitb7577823b60110d3b33ac7753e68a0291f0b132a (patch)
tree2889e39d803567e04add5e03ef7fcf6302651c52 /bfd/Makefile.in
parentdd6ed5ab2ddcf5b307b5b847ff336ff51e9d3974 (diff)
downloadgdb-b7577823b60110d3b33ac7753e68a0291f0b132a.zip
gdb-b7577823b60110d3b33ac7753e68a0291f0b132a.tar.gz
gdb-b7577823b60110d3b33ac7753e68a0291f0b132a.tar.bz2
* configure.in: Call AC_CONFIG_HEADER. Substitute
HOST_64BIT_LONG. Check that various header files exist. Check that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc and/or free need to be declared. Don't make a link to sysdep.h. Define TRAD_HEADER for various hosts. * configure: Rebuild. * configure.host: Don't set my_host. Add definitions taken from host header files for various entries. Remove entries which now do nothing. * acconfig.h: New file. * config.h.in: New file, built by autoheader. * sysdep.h: New file. * Makefile.in (do_distclean): Don't remove sysdep.h. (RECONFIG): Remove. (LOCAL_H_DEPS): New variable. ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and $(RECONFIG). ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise. ($(OPTIONAL_BACKENDS)): Likewise. (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than looking through sysdep.h. * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile. (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG. (fprintf_vma, sprintf_vma): Likewise. (int64_type, uint64_type): Don't define. * bfd-in2.h: Rebuild. * archures.c, bfd.c, srec.c: Include <ctype.h>. * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS. * lynx-core.c: Include stuff from old hosts/lynx.h. * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL), rather than NO_FCNTL. * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__ rather than NATIVE_HPPAHPUX_COMPILER. * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it is defined. * hosts/*.h: Remove all header files which merely include, declare, and define things. Leave header files which define information needed by trad-core.c.
Diffstat (limited to 'bfd/Makefile.in')
-rw-r--r--bfd/Makefile.in53
1 files changed, 17 insertions, 36 deletions
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index feb11f0..0279f0a 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -45,17 +45,18 @@ docdir = doc
SHELL = /bin/sh
-INSTALL = `cd $(srcdir)/..;pwd`/install.sh -c
-INSTALL_PROGRAM = $(INSTALL)
-INSTALL_DATA = $(INSTALL)
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
-AR = ar
+AR = @AR@
AR_FLAGS = rc
-CFLAGS = -g
+CC = @CC@
+CFLAGS = @CFLAGS@
MAKEINFO = makeinfo
RANLIB = @RANLIB@
-CC_FOR_BUILD = $(CC)
+CC_FOR_BUILD = @CC_FOR_BUILD@
INCDIR = $(srcdir)/../include
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
@@ -233,10 +234,6 @@ TDEFAULTS = @tdefaults@
all:
-#### host and target dependent Makefile fragments come in here.
-# @host_makefile_frag@
-###
-
FLAGS_TO_PASS = \
"prefix=$(prefix)" \
"exec_prefix=$(exec_prefix)" \
@@ -253,7 +250,7 @@ FLAGS_TO_PASS = \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
"BISON=$(BISON)"
-ALL_CFLAGS=$(CFLAGS) $(HDEFINES) @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES)
+ALL_CFLAGS=@HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) $(CFLAGS)
.c.o:
$(CC) -c $(ALL_CFLAGS) $<
@@ -342,7 +339,6 @@ $(TARGETLIB): $(OFILES) ofiles
# When compiling archures.c and targets.c, supply the default target
# info from configure.
-
targets.o: targets.c Makefile
$(CC) -c $(ALL_CFLAGS) $(TDEFAULTS) $<
@@ -379,7 +375,7 @@ do_clean: do_mostlyclean
rm -f libbfd.a TAGS bfd.h stmp-bfd.h ofiles \
elf32-target.h elf64-target.h
do_distclean: do_clean
- rm -f Makefile config.status sysdep.h config.cache
+ rm -f Makefile config.status config.cache
# Should we remove $(srcdir)/libcoff.h $(srcdir)/libbfd.h $(srcdir)/bfd-in2.h?
# make-stds.texi says it depends on whether they can be regenerated using
@@ -399,15 +395,12 @@ clobber realclean:
$(MAKE) subdir_do DO=realclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
$(MAKE) do_realclean
-# Mark everything as depending on config.status, since the timestamp on
-# sysdep.h might actually move backwards if we reconfig and relink it
-# to a different hosts/h-xxx.h file. This will force a recompile anyway.
BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h
-RECONFIG = config.status
-$(BFD_LIBS): libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
-$(BFD_MACHINES): libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
-$(BFD_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
-$(OPTIONAL_BACKENDS): libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
+LOCAL_H_DEPS= libbfd.h sysdep.h config.h
+$(BFD_LIBS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
+$(BFD_MACHINES): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
+$(BFD_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
+$(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
# Get around a Sun Make bug in SunOS 4.1.1 with VPATH
cpu-i386.o:cpu-i386.c
@@ -483,7 +476,7 @@ install:
Makefile: Makefile.in config.status
$(SHELL) config.status
-config.status: configure configure.host config.bfd @frags@
+config.status: configure configure.host config.bfd
$(SHELL) config.status --recheck
# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
@@ -528,26 +521,14 @@ BFDIN_H= $(srcdir)/bfd-in2.h
$(BFD_H): stmp-bfd.h ; @true
-# The file ../include/bfd.h is from earlier attempts to get this right.
-# If the file is still there, kill it.
-# The weird sh*t with grep is to avoid printing "exit 1 (ignored)" type
-# messages from make, and avoid various ways in which different versions
-# of make will screw up exit status checks.
-# -grep... -> make prints "exit 1" message
-# grep ... ; exit 0 -> sun(?) make notices grep failure
-# grep ... || exit 0 -> bsd4.4 make still notices
-# if grep ... -> seems okay so far
stmp-bfd.h : $(srcdir)/bfd-in2.h Makefile
- rm -f bfd.h-new 64 ../include/bfd.h
- if grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null; then true; \
- else true; fi
+ rm -f bfd.h-new
sed -e 's/@WORDSIZE@/$(WORDSIZE)/' \
-e "s/@VERSION@/`cat $(srcdir)/VERSION`/" \
- -e '/64-bit.*sysdep.h/ r 64' \
+ -e 's/@BFD_HOST_64BIT_LONG@/@HOST_64BIT_LONG@/' \
< $(srcdir)/bfd-in2.h \
> bfd.h-new
$(srcdir)/../move-if-change bfd.h-new $(BFD_H)
- rm -f 64
touch stmp-bfd.h
# Could really use a "copy-if-change"...