--- gas/Makefile 2018/04/24 16:39:13 1.1.1.4 +++ gas/Makefile 2018/04/24 16:39:44 1.1.1.5 @@ -18,13 +18,14 @@ # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # This makefile may be used to make the VAX, 68020, 80386, -# SPARC, or ns32k assembler(s). +# SPARC, ns32k, or i860 assembler(s). BINDIR = /usr/local/bin +#CC=gcc # If you are on a BSD system, un-comment the next two lines, and comment out # the lines for SystemV and HPUX below -G0 = -g -I. +G0 = -g -I. #-O -Wall LDFLAGS = $(CFLAGS) # # To compile gas on a System Five machine, comment out the two lines above @@ -37,6 +38,11 @@ LDFLAGS = $(CFLAGS) # To compile gas for HPUX, link m-hpux.h to m68k.h , and un-comment the # next two lines. (If you are using GCC, comment out the alloca.o part) # (Get alloca from the emacs distribution, or use GCC.) +# HPUX 7.0 may have a bug in setvbuf. gas gives an error message like +# 1:"Unknown operator" -- Statement 'NO_APP' ignored +# if setvbuf is broken. Re-compile input-file.c (and only input-file.c +# with -DVMS and the problem should go away. +# # G0 = -g -I. -DUSG # LOADLIBES = alloca.o # @@ -61,6 +67,9 @@ LDFLAGS = $(CFLAGS) # m-sun3.h , m-hpux.h or m-generic.h # depending on which machine you want to compile the 68020 assembler for. # +# If you want the 68k assembler to be completely compatable with the the +# SUN one, un-comment the -DSUN_ASM_SYNTAX line below. +# # If you machine does not have vfprintf, but does have _doprnt(), # remove the # from the -DNO_VARARGS line below. # @@ -70,6 +79,13 @@ LDFLAGS = $(CFLAGS) # To include the mc68851 mmu coprocessor instructions in the 68020 assembler, # remove the # from the -Dm68851 line below. # +# If you want the 68020 assembler use a register prefix character, un-comment +# the REGISTER_PREFIX line, and (maybe) change the '%' to the appropriate +# character. +# +# If you want the assembler to treat .L* or ..* symbols as local, instead of +# the usual L* symbols, un-comment the DOT_LABEL_PREFIX line. +# # If you want the 80386 assembler to correctly handle fsub/fsubr and fdiv/fdivr # opcodes (unlike most 80386 assemblers), remove the # from # the -DNON_BROKEN_WORDS line below. @@ -79,18 +95,38 @@ LDFLAGS = $(CFLAGS) # # To compile gas for the HP 9000/300 un-comment the -DUSE_HP_HDR line below. # +# For the ns32k, the options are 32532 or 32032 CPU and 32381 or 32081 FPU. +# To select the NS32532, remove the # from the -DNS32532 line below. +# To compile in tne NS32381 opcodes in addition to the NS32081 opcodes +# (the 32381 is a superset of the 32081), remove the # from the -DNS32381 +# line below. +# +# For the ns32k on a Sequent, uncomment the SEQUENT_COMPATABILITY line below. +# +# If you want the .align N directive to align to the next N byte boundry, +# instead of the next 1< .fname +dist: COPYING README ChangeLog $A $H $Z $Y $X $W $V $U Makefile + echo gas-`sed -n -e '/ version /s/[^0-9.]*\([0-9.]*\).*/\1/p' < version.c` > .fname mkdir `cat .fname` - ln COPYING README ChangeLog $A $H $Z $Y $X $W $V Makefile `cat .fname` + ln COPYING README ChangeLog $A $H $Z $Y $X $W $V $U Makefile `cat .fname` tar cvhZf `cat .fname`.tar.Z `cat .fname` -rm -r `cat .fname` + -rm .fname clean: rm -f a avax a68 a386 a32k asparc $a $v $w $x $y $z a core gmon.out bugs a.out @@ -258,31 +325,31 @@ install: a # General .o-->.h dependencies app.o: as.h -as.o: a.out.h as.h read.h struc-symbol.h write.h +as.o: a.out.gnu.h as.h read.h struc-symbol.h write.h atof-generic.o: flonum.h bignum-copy.o: bignum.h -expr.o: a.out.h as.h expr.h flonum.h obstack.h read.h struc-symbol.h +expr.o: a.out.gnu.h as.h expr.h flonum.h obstack.h read.h struc-symbol.h expr.o: symbols.h flonum-const.o: flonum.h flonum-copy.o: flonum.h flonum-mult.o: flonum.h flonum-normal.o:flonum.h flonum-print.o: flonum.h -frags.o: a.out.h as.h frags.h obstack.h struc-symbol.h subsegs.h -gdb.o: as.h -gdb-blocks.o: as.h -gdb-lines.o: as.h frags.h obstack.h -gdb-symbols.o: a.out.h as.h struc-symbol.h +frags.o: a.out.gnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h +#gdb.o: as.h +#gdb-blocks.o: as.h +#gdb-lines.o: as.h frags.h obstack.h +#gdb-symbols.o: a.out.gnu.h as.h struc-symbol.h hash.o: hash.h input-file.o: input-file.h input-scrub.o: as.h input-file.h read.h messages.o: as.h obstack.o: obstack.h -read.o: a.out.h as.h expr.h flonum.h frags.h hash.h md.h obstack.h +read.o: a.out.gnu.h as.h expr.h flonum.h frags.h hash.h md.h obstack.h read.o: read.h struc-symbol.h symbols.h -subsegs.o: a.out.h as.h frags.h obstack.h struc-symbol.h subsegs.h write.h -symbols.o: a.out.h as.h frags.h hash.h obstack.h struc-symbol.h symbols.h -write.o: a.out.h as.h md.h obstack.h struc-symbol.h subsegs.h +subsegs.o: a.out.gnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h write.h +symbols.o: a.out.gnu.h as.h frags.h hash.h obstack.h struc-symbol.h symbols.h +write.o: a.out.gnu.h as.h md.h obstack.h struc-symbol.h subsegs.h write.o: symbols.h write.h flonum.h: bignum.h