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 bignum-copy.obj,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 GASPOBJS = gasp.obj,macro.obj,sb.obj,hash.obj
50 LIBIBERTY = [-.libiberty]libiberty.olb
53 LIBBFD = [-.bfd]libbfd.olb
54 LIBOPCODES = [-.opcodes]libopcodes.olb
62 all: config.status $(BFDDEP) as.exe gasp.exe
64 as.exe: $(OBJS) $(LIBOPCODES) $(LIBBFD) $(LIBIBERTY)
66 link$(LFLAGS)/exe=$@ $(OBJS),$(LIBOPCODES)/lib,$(LIBBFD)/lib,$(LIBIBERTY)/lib$(LIBS)
68 link$(LFLAGS)/exe=$@ $(OBJS),$(LIBIBERTY)/lib$(LIBS)
71 gasp.exe: $(GASPOBJS) $(LIBBFD) $(LIBIBERTY)
73 link$(LFLAGS)/exe=$@ $(GASPOBJS),$(LIBBFD)/lib,$(LIBIBERTY)/lib$(LIBS)
75 link$(LFLAGS)/exe=$@ $(GASPOBJS),$(LIBIBERTY)/lib$(LIBS)
91 targ-cpu.c: [.config]tc-$(CPU).c
93 targ-cpu.h: [.config]tc-$(CPU).h
95 targ-env.h: [.config]te-generic.h
97 obj-format.h: [.config]obj-$(OBJFORMAT).h
99 obj-format.c: [.config]obj-$(OBJFORMAT).c
101 atof-targ.c: [.config]atof-$(FLTFORMAT).c
104 targ-cpu.obj: targ-cpu.c targ-cpu.h [.config]atof-vax.c
108 gmake -f makefile.vms "CC=$(CC)"
111 install: as.exe gasp.exe
112 $(CP) $^ GNU_ROOT\:[BIN]