4 # Created by Klaus K"ampf, kkaempf@progis.de
10 CFLAGS=/include=([],[-.bfd],[.config],[-.include],[-])$(DEFS)
12 LIBS=,GNU_CC_LIBRARY:libgcc/lib,sys$$library:vaxcrtl.olb/lib,GNU_CC_LIBRARY:crt0.obj
14 DEFS=/define=("table_size_of_flonum_powers_of_ten"="tabsiz_flonum_powers_of_ten",\
15 "_bfd_generic_get_section_contents_in_window"="_bfd_generic_get_win_section_cont",\
16 "_elf_section_from_bfd_section"="_bfd_elf_sec_from_bfd_sec","const=")
17 CFLAGS=/noopt/nodebug/include=([],[-.bfd],[.config],[-.include],[-])$(DEFS)\
18 /warnings=disable=(missingreturn,implicitfunc,ptrmismatch,undefescap,longextern,duptypespec)
20 LIBS=,sys$$library:vaxcrtl.olb/lib
27 CFLAGS=/include=([],[.config],[-.include],[-])$(DEFS)
29 LIBS=,GNU_CC_LIBRARY:libgcc/lib,sys$$library:vaxcrtl.olb/lib,GNU_CC_LIBRARY:crtbegin.obj,GNU_CC_LIBRARY:crtend.obj
30 #LIBS=,gnu_cc:[000000]gcclib.olb/lib,sys$$library:vaxcrtl.olb/lib
32 error DECC is broken on VAX
33 DEFS=/define=("table_size_of_flonum_powers_of_ten"="tabsiz_flonum_powers_of_ten","const=")
34 CFLAGS=/noopt/debug/include=([],[.config],[-.include],[-])$(DEFS)\
35 /warnings=disable=(missingreturn,implicitfunc,ptrmismatch,undefescap,longextern,duptypespec)
37 LIBS=,sys$$library:vaxcrtl.olb/lib
42 OBJS=targ-cpu.obj,obj-format.obj,atof-targ.obj,app.obj,as.obj,atof-generic.obj,\
43 cond.obj,depend.obj,expr.obj,flonum-konst.obj,flonum-copy.obj,\
44 flonum-mult.obj,frags.obj,hash.obj,input-file.obj,input-scrub.obj,\
45 literal.obj,messages.obj,output-file.obj,read.obj,subsegs.obj,symbols.obj,\
46 write.obj,listing.obj,ecoff.obj,stabs.obj,sb.obj,macro.obj,ehopt.obj
48 LIBIBERTY = [-.libiberty]libiberty.olb
51 LIBBFD = [-.bfd]libbfd.olb
52 LIBOPCODES = [-.opcodes]libopcodes.olb
60 all: config.status $(BFDDEP) as.exe
62 as.exe: $(OBJS) $(LIBOPCODES) $(LIBBFD) $(LIBIBERTY)
64 link$(LFLAGS)/exe=$@ $(OBJS),$(LIBOPCODES)/lib,$(LIBBFD)/lib,$(LIBIBERTY)/lib$(LIBS)
66 link$(LFLAGS)/exe=$@ $(OBJS),$(LIBIBERTY)/lib$(LIBS)
82 targ-cpu.c: [.config]tc-$(CPU).c
84 targ-cpu.h: [.config]tc-$(CPU).h
86 targ-env.h: [.config]te-generic.h
88 obj-format.h: [.config]obj-$(OBJFORMAT).h
90 obj-format.c: [.config]obj-$(OBJFORMAT).c
92 atof-targ.c: [.config]atof-$(FLTFORMAT).c
95 targ-cpu.obj: targ-cpu.c targ-cpu.h [.config]atof-vax.c
99 gmake -f makefile.vms "CC=$(CC)"
103 $(CP) $^ GNU_ROOT\:[BIN]