X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fmakefile.vms;h=733ed4bd79cac738c15cc55995606f4c44995660;hb=8b8c7c9f49992750f66f81b4601d593a3858d98c;hp=f4c30d47dd2ca74cee871f8cb8f0f86fcc7ff09b;hpb=d0352a18a504a4e7b761f6b3264cf11347d8d056;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/makefile.vms b/gas/makefile.vms index f4c30d47dd..733ed4bd79 100644 --- a/gas/makefile.vms +++ b/gas/makefile.vms @@ -1,115 +1,71 @@ # # makefile for gas # -# Created by Klaus K"ampf, kkaempf@progis.de +# Created by Klaus Kaempf, kkaempf@progis.de # -CC=gcc -ifeq ($(ARCH),ALPHA) +# Copyright (C) 2012-2016 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING3. If not see +# . +# + +#CC=gcc +CC=cc + ifeq ($(CC),gcc) DEFS= CFLAGS=/include=([],[-.bfd],[.config],[-.include],[-])$(DEFS) LFLAGS= LIBS=,GNU_CC_LIBRARY:libgcc/lib,sys$$library:vaxcrtl.olb/lib,GNU_CC_LIBRARY:crt0.obj else -DEFS=/define=("table_size_of_flonum_powers_of_ten"="tabsiz_flonum_powers_of_ten",\ -"_bfd_generic_get_section_contents_in_window"="_bfd_generic_get_win_section_cont",\ -"_elf_section_from_bfd_section"="_bfd_elf_sec_from_bfd_sec","const=") -CFLAGS=/noopt/nodebug/include=([],[-.bfd],[.config],[-.include],[-])$(DEFS)\ -/warnings=disable=(missingreturn,implicitfunc,ptrmismatch,undefescap,longextern,duptypespec) -LFLAGS= -LIBS=,sys$$library:vaxcrtl.olb/lib +#DEFS=/define=("VMS_DEBUG","DEBUG2","DEBUG3","DEBUG5","DEBUG_SYMS","DEBUG_ALPHA") +OPT=/noopt/debug +CFLAGS=/names=(as_is,shortened)\ + /include=([],[-.bfd],[.config],"../include","../")$(DEFS)$(OPT)\ + /prefix=(all,except=("getopt","optarg","optopt","optind","opterr")) +#LFLAGS=/debug/map=as.map endif -else # ARCH not ALPHA +OBJS:=targ-cpu.obj,obj-format.obj,atof-targ.obj,app.obj,as.obj,\ + atof-generic.obj,cond.obj,compress-debug.obj,depend.obj,expr.obj,\ + flonum-konst.obj,flonum-copy.obj,flonum-mult.obj,\ + frags.obj,hash.obj,input-file.obj,\ + input-scrub.obj,literal.obj,messages.obj,output-file.obj,read.obj,\ + subsegs.obj,symbols.obj,write.obj,listing.obj,ecoff.obj,stabs.obj,sb.obj,\ + macro.obj,ehopt.obj,dw2gencfi.obj,dwarf2dbg.obj,remap.obj -ifeq ($(CC),gcc) -DEFS= -CFLAGS=/include=([],[.config],[-.include],[-])$(DEFS) -LFLAGS= -LIBS=,GNU_CC_LIBRARY:libgcc/lib,sys$$library:vaxcrtl.olb/lib,GNU_CC_LIBRARY:crtbegin.obj,GNU_CC_LIBRARY:crtend.obj -#LIBS=,gnu_cc:[000000]gcclib.olb/lib,sys$$library:vaxcrtl.olb/lib -else -error DECC is broken on VAX -DEFS=/define=("table_size_of_flonum_powers_of_ten"="tabsiz_flonum_powers_of_ten","const=") -CFLAGS=/noopt/debug/include=([],[.config],[-.include],[-])$(DEFS)\ -/warnings=disable=(missingreturn,implicitfunc,ptrmismatch,undefescap,longextern,duptypespec) -LFLAGS= -LIBS=,sys$$library:vaxcrtl.olb/lib +ifeq ($(ARCH),IA64) +OBJS:=$(OBJS),te-vms.obj endif -endif - - -OBJS=targ-cpu.obj,obj-format.obj,atof-targ.obj,app.obj,as.obj,atof-generic.obj,\ - bignum-copy.obj,cond.obj,depend.obj,expr.obj,flonum-konst.obj,flonum-copy.obj,\ - flonum-mult.obj,frags.obj,hash.obj,input-file.obj,input-scrub.obj,\ - literal.obj,messages.obj,output-file.obj,read.obj,subsegs.obj,symbols.obj,\ - write.obj,listing.obj,ecoff.obj,stabs.obj,sb.obj,macro.obj,ehopt.obj - -GASPOBJS = gasp.obj,macro.obj,sb.obj,hash.obj LIBIBERTY = [-.libiberty]libiberty.olb - -ifeq ($(ARCH),ALPHA) LIBBFD = [-.bfd]libbfd.olb LIBOPCODES = [-.opcodes]libopcodes.olb -BFDDEP = [-.bfd]bfd.h -else -LIBBFD = -LIBOPCODES = -BFDDEP = -endif -all: config.status $(BFDDEP) as.exe gasp.exe +all: as.exe as.exe: $(OBJS) $(LIBOPCODES) $(LIBBFD) $(LIBIBERTY) -ifeq ($(ARCH),ALPHA) link$(LFLAGS)/exe=$@ $(OBJS),$(LIBOPCODES)/lib,$(LIBBFD)/lib,$(LIBIBERTY)/lib$(LIBS) -else - link$(LFLAGS)/exe=$@ $(OBJS),$(LIBIBERTY)/lib$(LIBS) -endif - -gasp.exe: $(GASPOBJS) $(LIBBFD) $(LIBIBERTY) -ifeq ($(ARCH),ALPHA) - link$(LFLAGS)/exe=$@ $(GASPOBJS),$(LIBBFD)/lib,$(LIBIBERTY)/lib$(LIBS) -else - link$(LFLAGS)/exe=$@ $(GASPOBJS),$(LIBIBERTY)/lib$(LIBS) -endif -config.status: - $$ @config-gas - -ifeq ($(ARCH),ALPHA) -CPU=alpha -OBJFORMAT=evax -FLTFORMAT=ieee -else -CPU=vax -OBJFORMAT=vms -FLTFORMAT=vax +ifneq ($(CC),gcc) +# Work-around a DEC-C bug. +targ-cpu.obj: targ-cpu.c targ-cpu.h + $(COMPILE.c) /noopt/obj=$@ $< endif -targ-cpu.c: [.config]tc-$(CPU).c - copy $< $@ -targ-cpu.h: [.config]tc-$(CPU).h - copy $< $@ -targ-env.h: [.config]te-generic.h - copy $< $@ -obj-format.h: [.config]obj-$(OBJFORMAT).h - copy $< $@ -obj-format.c: [.config]obj-$(OBJFORMAT).c - copy $< $@ -atof-targ.c: [.config]atof-$(FLTFORMAT).c - copy $< $@ - -targ-cpu.obj: targ-cpu.c targ-cpu.h [.config]atof-vax.c - -[-.bfd]bfd.h: - $(CD) [-.bfd] - gmake -f makefile.vms "CC=$(CC)" - $(CD) [-.gas] - -install: as.exe gasp.exe - $(CP) $^ GNU_ROOT\:[BIN] +te-vms.obj: [.config]te-vms.c + $(COMPILE.c) /obj=$@ $< + sys$$library:sys$$lib_c.tlb/lib clean: $$ purge @@ -121,4 +77,3 @@ clean: $(RM) targ-env.h; $(RM) targ-cpu.h; $(RM) targ-cpu.c; - $(RM) config.status;