diff options
Diffstat (limited to 'binutils/makefile.vms')
-rw-r--r-- | binutils/makefile.vms | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/binutils/makefile.vms b/binutils/makefile.vms index cf869a6..5e9b2df 100644 --- a/binutils/makefile.vms +++ b/binutils/makefile.vms @@ -7,13 +7,19 @@ # # +# Distribution version, filled in by configure.com +VERSION= + +TARGET=""evax-alpha"" + ifeq ($(CC),gcc) -CFLAGS=/cc1="-fno-exceptions -g0"/include=([],[-.include],[-.bfd])$(DEFS) -DEFS= -LIBS=,GNU:[000000]LIBGCC2/lib,GNU:[000000]LIBGCCLIB/lib,sys$$library:vaxcrtl.olb/lib,GNU:[000000]crt0.obj +CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS) +DEFS=/define=("TARGET=$(TARGET)") +LIBS=,GNU:[000000]libgcc/lib,sys$$library:vaxcrtl.olb/lib,GNU:[000000]crt0.obj else CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)/warnings=disable=(missingreturn,implicitfunc) -DEFS=/define=("const=","unlink=remove",\ +DEFS=/define=("TARGET=$(TARGET)",\ +"const=","unlink=remove",\ "_bfd_generic_get_section_contents_in_window"="_bfd_generic_get_win_section_cont",\ "_bfd_elf_section_from_bfd_section"="_bfd_elf_sec_from_bfd_sec") LIBS=,sys$$library:vaxcrtl.olb/lib @@ -59,7 +65,29 @@ objdump.exe: $(OBJDUMPOBJS) version.obj: version.c - $(CC) $(CFLAGS)/define=(VERSION="""970202""") $< - -config.h: config.h-vms - $(CP) $< $@ + $(CC) $(CFLAGS)/define=(VERSION="""$(VERSION)""") $< + +config.h: + $$ @configure + $(MAKE) -f makefile.vms + +[-.bfd]libbfd.olb: + $(CD) [-.bfd] + $(MAKE) -f makefile.vms + $(CD) [-.binutils] + +[-.libiberty]libiberty.olb: + $(CD) [-.libiberty] + $(MAKE) -f makefile.vms + $(CD) [-.binutils] + +[-.opcodes]libopcodes.olb: + $(CD) [-.opcodes] + $(MAKE) -f makefile.vms + $(CD) [-.binutils] + +clean: + $$ purge + $(RM) *.obj; + $(RM) *.exe; + $(RM) config.h; |