diff options
author | Tristan Gingold <gingold@adacore.com> | 2009-05-25 13:03:24 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2009-05-25 13:03:24 +0000 |
commit | c5ac1056d712c66a57d959ef35c4c9ba11dcce92 (patch) | |
tree | cea08adb4b29ea7b910a3ae6f2fb450787da6497 /binutils/makefile.vms-in | |
parent | 4f8318f89001b8570f862f589d34a37ed2da87c2 (diff) | |
download | gdb-c5ac1056d712c66a57d959ef35c4c9ba11dcce92.zip gdb-c5ac1056d712c66a57d959ef35c4c9ba11dcce92.tar.gz gdb-c5ac1056d712c66a57d959ef35c4c9ba11dcce92.tar.bz2 |
2009-05-25 Tristan Gingold <gingold@adacore.com>
* makefile.vms-in: Fix CFLAGS, add addr2line.exe target.
* configure.com: Fix it: handle alloca and define TARGET in config.h.
Diffstat (limited to 'binutils/makefile.vms-in')
-rw-r--r-- | binutils/makefile.vms-in | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/binutils/makefile.vms-in b/binutils/makefile.vms-in index 1b593f4..8e597c9 100644 --- a/binutils/makefile.vms-in +++ b/binutils/makefile.vms-in @@ -10,22 +10,16 @@ # Distribution version, filled in by configure.com VERSION=@VERSION@ -ifeq ($(ARCH),ALPHA) -TARGET=""vms-alpha"" -else -TARGET=""vms-vax"" -endif - ifeq ($(CC),gcc) +DEFS= CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS) -DEFS=/define=("TARGET=$(TARGET)") LIBS=,gnu_cc_library:libgcc/lib,sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0.obj else -CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)\ -/name=(as_is,shortened)\ -/warnings=disable=(missingreturn,longextern)\ -/prefix=(all,except=("getopt","optarg","optopt","optind","opterr")) -DEFS=/define=("TARGET=$(TARGET)","const=","unlink=remove") +DEFS= +OPT=/noopt/debug +CFLAGS=$(OPT)/include=([],[-.include],[-.bfd])$(DEFS)\ + /name=(as_is,shortened)\ + /prefix=(all,except=("getopt","optarg","optopt","optind","opterr")) LIBS=,sys$$library:vaxcrtl.olb/lib endif @@ -51,9 +45,11 @@ STRINGSOBJS = $(ADDL_DEPS),strings.obj NMOBJS = $(ADDL_DEPS),nm.obj +ADDR2LINEOBJS = $(ADDL_DEPS),addr2line.obj + OBJDUMPOBJS = $(ADDL_DEPS),objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(OPCODES_DEP) -all: config.h size.exe strings.exe objdump.exe nm.exe +all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe size.exe: $(SIZEOBJS) link/exe=$@ size.obj,$(ADDL_LIBS)$(LIBS) @@ -64,13 +60,12 @@ strings.exe: $(STRINGSOBJS) nm.exe: $(NMOBJS) link/exe=$@ nm.obj,$(ADDL_LIBS)$(LIBS) +addr2line.exe: $(ADDR2LINEOBJS) + link/exe=$@ addr2line.obj,$(ADDL_LIBS)$(LIBS) + objdump.exe: $(OBJDUMPOBJS) link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(BFDLIB),$(OPCODES),$(ADDL_LIBS)$(LIBS) - -version.obj: version.c - $(CC) $(CFLAGS)/define=(VERSION="""$(VERSION)""") $< - config.h: $$ @configure $(MAKE) -f makefile.vms "CC=$(CC)" |