mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
remove parentdir support; use INSTALL_XFORM
This commit is contained in:
@ -49,19 +49,60 @@ infodir = $(prefix)/info
|
|||||||
includedir = $(prefix)/include
|
includedir = $(prefix)/include
|
||||||
docdir = $(datadir)/doc
|
docdir = $(datadir)/doc
|
||||||
|
|
||||||
|
VERSION=2.1.4
|
||||||
|
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
||||||
INSTALL = install -c
|
INSTALL = $(srcdir)/../install.sh -c
|
||||||
INSTALL_PROGRAM = $(INSTALL)
|
INSTALL_PROGRAM = $(INSTALL)
|
||||||
INSTALL_DATA = $(INSTALL)
|
INSTALL_DATA = $(INSTALL)
|
||||||
|
INSTALL_XFORM = $(INSTALL) -t=$(program_transform_name)
|
||||||
|
INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
AR_FLAGS = qv
|
AR_FLAGS = qv
|
||||||
BISON = bison
|
BISON = bison
|
||||||
MAKEINFO = makeinfo
|
MAKEINFO = makeinfo
|
||||||
|
TEXI2DVI = texi2dvi
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
CFLAGS = -g
|
CFLAGS = -g
|
||||||
|
|
||||||
|
AS_FOR_TARGET = $${here}/as.new
|
||||||
|
|
||||||
|
CC_FOR_TARGET = ` \
|
||||||
|
if [ -f $${here}/../gcc/Makefile ] ; then \
|
||||||
|
echo $${here}/../gcc/xgcc -B$${here}/../gcc/; \
|
||||||
|
else \
|
||||||
|
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
|
||||||
|
echo $(CC); \
|
||||||
|
else \
|
||||||
|
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
|
||||||
|
fi; \
|
||||||
|
fi`
|
||||||
|
|
||||||
|
NM_FOR_TARGET = ` \
|
||||||
|
if [ -f $${here}/../binutils/Makefile ] ; then \
|
||||||
|
echo $${here}/../binutils/nm ; \
|
||||||
|
else \
|
||||||
|
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
|
||||||
|
echo $(NM); \
|
||||||
|
else \
|
||||||
|
t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \
|
||||||
|
fi; \
|
||||||
|
fi`
|
||||||
|
|
||||||
|
OBJDUMP=objdump
|
||||||
|
OBJDUMP_FOR_TARGET = ` \
|
||||||
|
if [ -f $${here}/../binutils/Makefile ] ; then \
|
||||||
|
echo $${here}/../binutils/objdump ; \
|
||||||
|
else \
|
||||||
|
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
|
||||||
|
echo $(OBJDUMP); \
|
||||||
|
else \
|
||||||
|
t='$(program_transform_name)'; echo objdump | sed -e '' $$t ; \
|
||||||
|
fi; \
|
||||||
|
fi`
|
||||||
|
|
||||||
FLAGS_TO_PASS = \
|
FLAGS_TO_PASS = \
|
||||||
"prefix=$(prefix)" \
|
"prefix=$(prefix)" \
|
||||||
"exec_prefix=$(exec_prefix)" \
|
"exec_prefix=$(exec_prefix)" \
|
||||||
@ -80,6 +121,12 @@ FLAGS_TO_PASS = \
|
|||||||
"INSTALL_DATA=$(INSTALL_DATA)" \
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
||||||
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
|
||||||
|
|
||||||
|
CHECKFLAGS= \
|
||||||
|
"AS_FOR_TARGET=$(AS_FOR_TARGET)" \
|
||||||
|
"CC_FOR_TARGET=$(CC_FOR_TARGET)" \
|
||||||
|
"NM_FOR_TARGET=$(NM_FOR_TARGET)" \
|
||||||
|
"OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)"
|
||||||
|
|
||||||
# Lists of files for various purposes.
|
# Lists of files for various purposes.
|
||||||
|
|
||||||
REAL_SOURCES = \
|
REAL_SOURCES = \
|
||||||
@ -165,20 +212,17 @@ OBJS = \
|
|||||||
read.o \
|
read.o \
|
||||||
subsegs.o \
|
subsegs.o \
|
||||||
symbols.o \
|
symbols.o \
|
||||||
version.o \
|
|
||||||
write.o \
|
write.o \
|
||||||
listing.o \
|
listing.o \
|
||||||
xmalloc.o
|
xmalloc.o
|
||||||
|
|
||||||
#### host, target, and site specific Makefile frags come in here.
|
#### host, target, and site specific Makefile frags come in here.
|
||||||
|
|
||||||
VERSION=2.0.1-alpha
|
|
||||||
|
|
||||||
all: as.new
|
all: as.new
|
||||||
@(cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
|
@(cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
|
||||||
|
|
||||||
info:
|
dvi info:
|
||||||
@(cd doc ; $(MAKE) $(FLAGS_TO_PASS) info)
|
@(cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@)
|
||||||
|
|
||||||
install-info:
|
install-info:
|
||||||
@(cd doc ; $(MAKE) $(FLAGS_TO_PASS) install-info)
|
@(cd doc ; $(MAKE) $(FLAGS_TO_PASS) install-info)
|
||||||
@ -219,8 +263,12 @@ STAGESTUFF = *.o as.new
|
|||||||
as.new: $(OBJS) $(LIBS)
|
as.new: $(OBJS) $(LIBS)
|
||||||
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
|
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
|
||||||
|
|
||||||
installcheck check:
|
installcheck:
|
||||||
@echo No checks are available yet for the GNU assembler.
|
@echo No installcheck target is available yet for the GNU assembler.
|
||||||
|
|
||||||
|
check: as.new
|
||||||
|
@(here=`pwd` ; export here ; \
|
||||||
|
cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $(CHECKFLAGS) check)
|
||||||
|
|
||||||
config.status:
|
config.status:
|
||||||
@echo You must configure gas. Look at the INSTALL file for details.
|
@echo You must configure gas. Look at the INSTALL file for details.
|
||||||
@ -232,16 +280,10 @@ config-stamp: Makefile
|
|||||||
echo '#define TARGET_CPU "$(target_cpu)"' > config.new
|
echo '#define TARGET_CPU "$(target_cpu)"' > config.new
|
||||||
echo '#define TARGET_ALIAS "$(target_alias)"' >> config.new
|
echo '#define TARGET_ALIAS "$(target_alias)"' >> config.new
|
||||||
echo '#define TARGET_CANONICAL "$(target_canonical)"' >> config.new
|
echo '#define TARGET_CANONICAL "$(target_canonical)"' >> config.new
|
||||||
|
echo '#define GAS_VERSION "$(VERSION)"' >> config.new
|
||||||
$(srcdir)/../move-if-change config.new config.h
|
$(srcdir)/../move-if-change config.new config.h
|
||||||
touch config-stamp
|
touch config-stamp
|
||||||
|
|
||||||
version.c: vers-stamp ; @true
|
|
||||||
vers-stamp: Makefile
|
|
||||||
echo '#include "ansidecl.h"' > version.new
|
|
||||||
echo 'CONST char version_string[] = "$(VERSION)";' >> version.new
|
|
||||||
$(srcdir)/../move-if-change version.new version.c
|
|
||||||
touch vers-stamp
|
|
||||||
|
|
||||||
# Compiling object files from source files.
|
# Compiling object files from source files.
|
||||||
|
|
||||||
app.o : app.c as.h host.h targ-env.h obj-format.h \
|
app.o : app.c as.h host.h targ-env.h obj-format.h \
|
||||||
@ -313,7 +355,6 @@ symbols.o : symbols.c as.h host.h targ-env.h obj-format.h \
|
|||||||
targ-cpu.h struc-symbol.h \
|
targ-cpu.h struc-symbol.h \
|
||||||
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
|
||||||
subsegs.h
|
subsegs.h
|
||||||
version.o : version.c
|
|
||||||
write.o : write.c as.h host.h targ-env.h obj-format.h \
|
write.o : write.c as.h host.h targ-env.h obj-format.h \
|
||||||
targ-cpu.h struc-symbol.h \
|
targ-cpu.h struc-symbol.h \
|
||||||
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
|
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
|
||||||
@ -337,34 +378,25 @@ targ-cpu.o : targ-cpu.c config.h targ-env.h obj-format.h \
|
|||||||
doc: $(srcdir)/as.info
|
doc: $(srcdir)/as.info
|
||||||
|
|
||||||
$(srcdir)/as.info: $(srcdir)/doc/as.texinfo
|
$(srcdir)/as.info: $(srcdir)/doc/as.texinfo
|
||||||
@(cd doc; make $(FLAGS_TO_PASS) as.info; mv as.info $srcdir)
|
@(cd doc; $(MAKE) $(FLAGS_TO_PASS) as.info; mv as.info $srcdir)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@(cd doc ; $(MAKE) $(FLAGS_TO_PASS) clean)
|
@(cd doc ; $(MAKE) $(FLAGS_TO_PASS) clean)
|
||||||
|
@(cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) clean)
|
||||||
-rm -f $(STAGESTUFF) core
|
-rm -f $(STAGESTUFF) core
|
||||||
|
|
||||||
# Like clean but also delete the links made to configure gas.
|
# Like clean but also delete the links made to configure gas.
|
||||||
distclean: clean
|
distclean: clean
|
||||||
-rm -f config.status Makefile host.h targ-env.h targ-cpu.h \
|
-rm -f config.status Makefile host.h targ-env.h targ-cpu.h \
|
||||||
targ-cpu.c obj-format.h obj-format.c atof-targ.c \
|
targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS
|
||||||
gas.aux gas.cps gas.fns gas.info gas.kys gas.pgs
|
|
||||||
gas.tps gas.vrs TAGS gas.info* gas.?? gas.??s gas.log \
|
|
||||||
gas.toc gas.*aux *.dvi
|
|
||||||
|
|
||||||
# Entry points `install', `includes' and `uninstall'.
|
# Entry points `install', `includes' and `uninstall'.
|
||||||
|
|
||||||
# Copy the files into directories where they will be run.
|
# Copy the files into directories where they will be run.
|
||||||
install:
|
install:
|
||||||
-parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
|
$(INSTALL_XFORM) as.new $(bindir)/as; \
|
||||||
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
|
$(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1;
|
||||||
-if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
|
|
||||||
-parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
|
|
||||||
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
|
|
||||||
-if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
|
|
||||||
-n=`t='$(program_transform_name)'; echo as | sed -e "" $$t`; \
|
-n=`t='$(program_transform_name)'; echo as | sed -e "" $$t`; \
|
||||||
rm -f $(bindir)/$$n; \
|
|
||||||
$(INSTALL_PROGRAM) as.new $(bindir)/$$n; \
|
|
||||||
$(INSTALL_DATA) $(srcdir)/doc/as.1 $(man1dir)/$$n.1; \
|
|
||||||
if [ -d $(tooldir) ]; then \
|
if [ -d $(tooldir) ]; then \
|
||||||
if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
|
if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
|
||||||
rm -f $(tooldir)/bin/as; \
|
rm -f $(tooldir)/bin/as; \
|
||||||
|
15
ld/ChangeLog
15
ld/ChangeLog
@ -1,3 +1,18 @@
|
|||||||
|
Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
|
||||||
|
|
||||||
|
* Makefile.in: remove parentdir support, use INSTALL_XFORM
|
||||||
|
|
||||||
|
Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
|
||||||
|
|
||||||
|
* ldexp.c (exp_fold_tree): Don't lose the old flag bits.
|
||||||
|
* ldgram.y (statement_list_opt): New nonterminal, either empty or
|
||||||
|
statement_list.
|
||||||
|
(section): Use statement_list_opt, not statement_list.
|
||||||
|
* m68kcoff.sc-sh: Gather constructors and destructors and define
|
||||||
|
__CTOR_LIST__ and __DTOR_LIST__ appropriately.
|
||||||
|
* sa29200.sc-sh: Gather constructors and destructors and define
|
||||||
|
___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
|
||||||
|
|
||||||
Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
|
Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
|
||||||
|
|
||||||
* Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
|
* Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
|
||||||
|
@ -46,9 +46,12 @@ gcclibdir = $(libdir)/gcc/$(target_alias)
|
|||||||
|
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
||||||
INSTALL = install -c
|
INSTALL = $(srcdir)/../install.sh -c
|
||||||
INSTALL_PROGRAM = $(INSTALL)
|
INSTALL_PROGRAM = $(INSTALL)
|
||||||
INSTALL_DATA = $(INSTALL)
|
INSTALL_DATA = $(INSTALL)
|
||||||
|
INSTALL_XFORM = $(INSTALL) -t=$(program_transform_name)
|
||||||
|
INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
AR_FLAGS = qv
|
AR_FLAGS = qv
|
||||||
CFLAGS = -g
|
CFLAGS = -g
|
||||||
@ -72,7 +75,7 @@ LIB_PATH =
|
|||||||
|
|
||||||
BASEDIR = ../..
|
BASEDIR = ../..
|
||||||
INCLUDE = $(srcdir)/../include
|
INCLUDE = $(srcdir)/../include
|
||||||
INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../bfd -I$(INCLUDE)
|
INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/../bfd -I$(INCLUDE)
|
||||||
|
|
||||||
# What version of the manual to build
|
# What version of the manual to build
|
||||||
DOCVER = gen
|
DOCVER = gen
|
||||||
@ -95,6 +98,8 @@ HOSTING_CRT0=/lib/crt0.o
|
|||||||
HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else echo $(libdir)/libgcc.a; fi` -lc
|
HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else echo $(libdir)/libgcc.a; fi` -lc
|
||||||
HOSTING_EMU=LDEMULATION=$(EMUL); export LDEMULATION
|
HOSTING_EMU=LDEMULATION=$(EMUL); export LDEMULATION
|
||||||
|
|
||||||
|
C++ = g++ -fgnu-linker
|
||||||
|
|
||||||
### Host, target, and site specific Makefile fragments come in here.
|
### Host, target, and site specific Makefile fragments come in here.
|
||||||
####
|
####
|
||||||
|
|
||||||
@ -105,6 +110,9 @@ LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
|
|||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $<
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $<
|
||||||
|
|
||||||
|
.cc.o:
|
||||||
|
$(C++) -c $(CFLAGS) -I$(srcdir) $<
|
||||||
|
|
||||||
# go directly to ld.new in case this ld isn't capable of
|
# go directly to ld.new in case this ld isn't capable of
|
||||||
# linking native object on this host. It can be renamed on
|
# linking native object on this host. It can be renamed on
|
||||||
# install.
|
# install.
|
||||||
@ -507,29 +515,17 @@ objdump:objdump.c
|
|||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
-parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
|
$(INSTALL_XFORM) ld.new $(bindir)/ld; \
|
||||||
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
|
$(INSTALL_XFORM1) $(srcdir)/ld.1 $(man1dir)/ld.1; \
|
||||||
-if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
|
|
||||||
-parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
|
|
||||||
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
|
|
||||||
-if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
|
|
||||||
-n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
|
-n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
|
||||||
rm -f $(bindir)/$$n; \
|
|
||||||
$(INSTALL_PROGRAM) ld.new $(bindir)/$$n; \
|
|
||||||
$(INSTALL_DATA) $(srcdir)/ld.1 $(man1dir)/$$n.1; \
|
|
||||||
if [ -d $(tooldir) ]; then \
|
|
||||||
if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
|
|
||||||
rm -f $(tooldir)/bin/ld; \
|
rm -f $(tooldir)/bin/ld; \
|
||||||
ln $(bindir)/$$n $(tooldir)/bin/ld \
|
ln $(bindir)/$$n $(tooldir)/bin/ld \
|
||||||
|| $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld; \
|
|| $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld; \
|
||||||
rm -f $(tooldir)/bin/gld; \
|
rm -f $(tooldir)/bin/gld; \
|
||||||
ln $(tooldir)/bin/ld $(tooldir)/bin/gld; \
|
ln $(tooldir)/bin/ld $(tooldir)/bin/gld; \
|
||||||
else true; fi
|
|
||||||
|
|
||||||
install-info:
|
install-info:
|
||||||
-parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
|
|
||||||
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
|
|
||||||
-if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
|
|
||||||
for i in ld.info* ; do \
|
for i in ld.info* ; do \
|
||||||
$(INSTALL_DATA) $$i $(infodir)/$$i ; \
|
$(INSTALL_DATA) $$i $(infodir)/$$i ; \
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user