aboutsummaryrefslogtreecommitdiff
path: root/binutils/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/Makefile.in')
-rw-r--r--binutils/Makefile.in108
1 files changed, 58 insertions, 50 deletions
diff --git a/binutils/Makefile.in b/binutils/Makefile.in
index 961d783..7e189e7 100644
--- a/binutils/Makefile.in
+++ b/binutils/Makefile.in
@@ -17,12 +17,14 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-srcdir = .
+VPATH = @srcdir@
+srcdir = @srcdir@
-prefix = /usr/local
+target_alias = @target_alias@
+prefix = @prefix@
-program_transform_name =
-exec_prefix = $(prefix)
+program_transform_name = @program_transform_name@
+exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
tooldir = $(exec_prefix)/$(target_alias)
@@ -111,7 +113,7 @@ SRCONV_PROG=srconv sysdump coffdump
MANPAGES= ar nm objdump ranlib size strings strip objcopy nlmconv
-PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRINGS_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) $(BUILD_NLMCONV) $(BUILD_SRCONV) $(SYSINFO_PROG) $(BUILD_DLLTOOL)
+PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRINGS_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@
STAGESTUFF = $(PROGS) *.o
# Files that can be generated, but should be in the distribution.
# Don't build $(DEMANGLER_PROG).1, since its name may vary with the
@@ -126,10 +128,9 @@ BFDDIR = $(BASEDIR)/bfd
INCDIR = $(BASEDIR)/include
INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR)
-#### host and target dependant Makefile fragments come in here.
-###
+@target_makefile_fragment@
-ALL_CFLAGS = $(INCLUDES) @HDEFINES@ $(TDEFINES) $(CFLAGS)
+ALL_CFLAGS = $(INCLUDES) @HDEFINES@ $(CFLAGS)
.c.o:
$(CC) -c $(ALL_CFLAGS) $<
@@ -192,16 +193,16 @@ site.exp: ./config.status Makefile
@echo "# Do not edit here. If you wish to override these" >> ./tmp0
@echo "# values, add them to the last section" >> ./tmp0
@echo "# HOST AND TARGET INFO" >> ./tmp0
- @echo "set host_os $(host_os)" >> ./tmp0
- @echo "set host_alias $(host_alias)" >> ./tmp0
- @echo "set host_cpu $(host_cpu)" >> ./tmp0
- @echo "set host_vendor $(host_vendor)" >> ./tmp0
- @echo "set target_os $(target_os)" >> ./tmp0
- @echo "set target_alias $(target_alias)" >> ./tmp0
- @echo "set target_cpu $(target_cpu)" >> ./tmp0
- @echo "set target_vendor $(target_vendor)" >> ./tmp0
- @echo "set host_triplet $(host_canonical)" >> ./tmp0
- @echo "set target_triplet $(target_canonical)" >> ./tmp0
+ @echo "set host_os @host_os@" >> ./tmp0
+ @echo "set host_alias @host_alias@" >> ./tmp0
+ @echo "set host_cpu @host_cpu@" >> ./tmp0
+ @echo "set host_vendor @host_vendor@" >> ./tmp0
+ @echo "set target_os @target_os@" >> ./tmp0
+ @echo "set target_alias @target_alias@" >> ./tmp0
+ @echo "set target_cpu @target_cpu@" >> ./tmp0
+ @echo "set target_vendor @target_vendor@" >> ./tmp0
+ @echo "set host_triplet @host@" >> ./tmp0
+ @echo "set target_triplet @target@" >> ./tmp0
@echo "# DIRECTORY INFO" >> ./tmp0
@echo "set objdir `pwd`" >> ./tmp0
@echo "" >> ./tmp0
@@ -249,14 +250,14 @@ $(OBJDUMP_PROG): $(ADDL_LIBS) objdump.o $(BFD) $(OPCODES)
underscore.c: Makefile
rm -f underscore.c
echo '/*WARNING: This file is automatically generated!*/' >underscore.t
- echo "int prepends_underscore = $(UNDERSCORE);" >>underscore.t
+ echo "int prepends_underscore = @UNDERSCORE@;" >>underscore.t
mv -f underscore.t underscore.c
version.o: version.c Makefile
- $(CC) $(INCLUDES) $(HDEFINES) $(TDEFINES) -DVERSION='"$(VERSION)"' $(CFLAGS) -c $(srcdir)/version.c
+ $(CC) -DVERSION='"$(VERSION)"' $(ALL_CFLAGS) -c $(srcdir)/version.c
cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h
- $(CC) -c -DMAIN -DVERSION='"$(VERSION)"' $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CFLAGS) $(BASEDIR)/libiberty/cplus-dem.c
+ $(CC) -c -DMAIN -DVERSION='"$(VERSION)"' $(ALL_CFLAGS) $(BASEDIR)/libiberty/cplus-dem.c
$(DEMANGLER_PROG): cplus-dem.o $(LIBIBERTY) underscore.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $(DEMANGLER_PROG) cplus-dem.o $(LIBIBERTY) $(EXTRALIBS) underscore.o
@@ -341,7 +342,7 @@ sysinfo.o: sysinfo.c
fi
srconv.o: srconv.c sysroff.h sysroff.c coffgrok.h $(INCDIR)/coff/internal.h \
- ../bfd/libcoff.h
+ ../bfd/libcoff.h config.h
srconv: srconv.o coffgrok.o $(ADDL_LIBS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ srconv.o coffgrok.o $(ADDL_LIBS) $(EXTRALIBS)
@@ -361,12 +362,12 @@ deflex.c:deflex.l
mv lex.yy.c deflex.c
dlltool.o:dlltool.c
- $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(DLLTOOL_DEFS) $(CFLAGS) $(srcdir)/dlltool.c
+ $(CC) -c @DLLTOOL_DEFS@ $(ALL_CFLAGS) $(srcdir)/dlltool.c
coffdump: coffdump.o coffgrok.o $(ADDL_LIBS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ coffdump.o coffgrok.o $(ADDL_LIBS) $(EXTRALIBS)
-sysdump.o: sysdump.c sysroff.h sysroff.c
+sysdump.o: sysdump.c sysroff.h sysroff.c bucomm.h config.h
sysdump: sysdump.o $(ADDL_LIBS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ sysdump.o $(ADDL_LIBS) $(EXTRALIBS)
@@ -379,8 +380,8 @@ nlmheader.c: nlmheader.y sysinfo.c
mv -f y.tab.c nlmheader.c
nlmconv.o: nlmconv.c
- ldname=`t='$(program_transform_name)'; echo ld | sed -e "s/brokensed/brokensed/" $$t`; \
- $(CC) -c -DLD_NAME="\"$${ldname}\"" $(INCLUDES) $(HDEFINES) $(TDEFINES) $(NLMCONV_DEFS) $(CFLAGS) $(srcdir)/nlmconv.c
+ ldname=`echo ld | sed '$(program_transform_name)'`; \
+ $(CC) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(ALL_CFLAGS) $(srcdir)/nlmconv.c
$(NLMCONV_PROG): nlmconv.o nlmheader.o $(ADDL_LIBS) $(BFD)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ nlmconv.o nlmheader.o $(ADDL_LIBS) $(EXTRALIBS)
@@ -392,47 +393,47 @@ $(NLMCONV_PROG): nlmconv.o nlmheader.o $(ADDL_LIBS) $(BFD)
# changing "../include" to "$(INCDIR)"
bucomm.o: bucomm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
- $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
- $(INCDIR)/fopen-same.h bucomm.h
+ $(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
+ $(INCDIR)/fopen-same.h bucomm.h config.h
filemode.o: filemode.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
- $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
+ $(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
$(INCDIR)/fopen-same.h
size.o: size.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
- $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
- $(INCDIR)/fopen-same.h $(INCDIR)/getopt.h
+ $(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
+ $(INCDIR)/fopen-same.h $(INCDIR)/getopt.h config.h
objdump.o: objdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
- $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
+ $(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
$(INCDIR)/fopen-same.h $(INCDIR)/getopt.h \
$(INCDIR)/dis-asm.h $(INCDIR)/aout/aout64.h \
- $(INCDIR)/elf/internal.h $(INCDIR)/aout/stab.def
+ $(INCDIR)/elf/internal.h $(INCDIR)/aout/stab.def config.h
nm.o: nm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
- $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
- $(INCDIR)/fopen-same.h bucomm.h $(INCDIR)/getopt.h \
+ $(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
+ $(INCDIR)/fopen-same.h bucomm.h config.h $(INCDIR)/getopt.h \
$(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
$(INCDIR)/aout/ranlib.h $(INCDIR)/demangle.h
ar.o: ar.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
- $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
- $(INCDIR)/fopen-same.h bucomm.h $(INCDIR)/aout/ar.h \
- $(BFDDIR)/libbfd.h arsup.h
+ $(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
+ $(INCDIR)/fopen-same.h bucomm.h config.h $(INCDIR)/aout/ar.h \
+ $(BFDDIR)/libbfd.h arsup.h
arparse.o: arparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h arsup.h
arlex.o: arlex.c ./arparse.h
not-ranlib.o: not-ranlib.c
arsup.o: arsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
- $(INCDIR)/obstack.h arsup.h bucomm.h
+ $(INCDIR)/obstack.h arsup.h bucomm.h config.h
strings.o: strings.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
- $(INCDIR)/obstack.h bucomm.h
+ $(INCDIR)/obstack.h bucomm.h config.h
objcopy.o: objcopy.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
- $(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
- $(INCDIR)/fopen-same.h bucomm.h
+ $(INCDIR)/obstack.h $(BFDDIR)/hosts/std-host.h \
+ $(INCDIR)/fopen-same.h bucomm.h config.h
is-strip.o: is-strip.c
is-ranlib.o: is-ranlib.c
not-strip.o: not-strip.c
-nlmheader.o: nlmheader.c ../bfd/bfd.h ../bfd/sysdep.h \
- $(BFDDIR)/hosts/std-host.h $(INCDIR)/fopen-same.h bucomm.h \
+nlmheader.o: nlmheader.c ../bfd/bfd.h \
+ $(BFDDIR)/hosts/std-host.h $(INCDIR)/fopen-same.h bucomm.h config.h \
$(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h nlmconv.h
-nlmconv.o: nlmconv.c ../bfd/bfd.h $(INCDIR)/libiberty.h ../bfd/sysdep.h \
- $(BFDDIR)/hosts/std-host.h $(INCDIR)/fopen-same.h bucomm.h \
+nlmconv.o: nlmconv.c ../bfd/bfd.h $(INCDIR)/libiberty.h \
+ $(BFDDIR)/hosts/std-host.h $(INCDIR)/fopen-same.h bucomm.h config.h \
$(BFDDIR)/libnlm.h $(INCDIR)/nlm/common.h \
$(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h nlmconv.h \
$(INCDIR)/coff/sym.h $(INCDIR)/coff/ecoff.h
@@ -551,7 +552,7 @@ mostlyclean:
clean: mostlyclean
-rm -f $(PROGS) underscore.c sysroff sysroff.c sysroff.h sysinfo
distclean:
- -rm -f Makefile config.status sysdep.h *.o *~ \#* core y.* \
+ -rm -f Makefile config.status *.o *~ \#* core y.* \
binutils.?? binutils.??s binutils.aux binutils.log binutils.toc
-rm -f $(PROGS) underscore.c
realclean: clean distclean
@@ -575,7 +576,7 @@ install: all $(DEMANGLER_PROG).1
for i in $(TOOL_PROGS) ; do \
j=`echo $$i | sed -e 's/.new//'`; \
rm -f $(tooldir)/bin/$$j; \
- k=`t='$(program_transform_name)'; echo $$j | sed -e s/x/x/ $$t`; \
+ k=`echo $$j | sed '$(program_transform_name)'`; \
ln $(bindir)/$$k $(tooldir)/bin/$$j >/dev/null 2>/dev/null \
|| $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$j; \
done; \
@@ -657,8 +658,15 @@ make:
echo >>Makefile ; \
sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
-Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
- $(SHELL) ./config.status
+Makefile: Makefile.in config.status
+ CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
+
+config.h: stamp-h ; @true
+stamp-h: config.h.in config.status
+ CONFIG_FILES= CONFIG_HEADERS=config.h $(SHELL) ./config.status
+
+config.status: configure
+ $(SHELL) ./config.status --recheck
### Local Variables: ***
### mode:fundamental ***