c5ac1056d7
* makefile.vms-in: Fix CFLAGS, add addr2line.exe target. * configure.com: Fix it: handle alloca and define TARGET in config.h.
96 lines
2.2 KiB
Plaintext
96 lines
2.2 KiB
Plaintext
#
|
|
# Makefile for binutils under openVMS (Alpha and Vax)
|
|
#
|
|
# For use with gnu-make for vms
|
|
#
|
|
# Created by Klaus K"ampf, kkaempf@rmi.de
|
|
#
|
|
#
|
|
|
|
# Distribution version, filled in by configure.com
|
|
VERSION=@VERSION@
|
|
|
|
ifeq ($(CC),gcc)
|
|
DEFS=
|
|
CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
|
|
LIBS=,gnu_cc_library:libgcc/lib,sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0.obj
|
|
else
|
|
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
|
|
|
|
BFDLIB = [-.bfd]libbfd.olb/lib
|
|
BFDLIB_DEP = [-.bfd]libbfd.olb
|
|
LIBIBERTY_DEP = [-.libiberty]libiberty.olb
|
|
LIBIBERTY = [-.libiberty]libiberty.olb/lib
|
|
OPCODES_DEP = [-.opcodes]libopcodes.olb
|
|
OPCODES = [-.opcodes]libopcodes.olb/lib
|
|
|
|
DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj
|
|
|
|
WRITE_DEBUG_OBJS = $(DEBUG_OBJS),wrstabs.obj
|
|
|
|
BULIBS = []bucomm.obj,version.obj,filemode.obj
|
|
|
|
ADDL_DEPS = $(BULIBS),$(BFDLIB_DEP),$(LIBIBERTY_DEP)
|
|
ADDL_LIBS = $(BULIBS),$(BFDLIB),$(LIBIBERTY)
|
|
|
|
SIZEOBJS = $(ADDL_DEPS),size.obj
|
|
|
|
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 addr2line.exe
|
|
|
|
size.exe: $(SIZEOBJS)
|
|
link/exe=$@ size.obj,$(ADDL_LIBS)$(LIBS)
|
|
|
|
strings.exe: $(STRINGSOBJS)
|
|
link/exe=$@ strings.obj,$(ADDL_LIBS)$(LIBS)
|
|
|
|
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)
|
|
|
|
config.h:
|
|
$$ @configure
|
|
$(MAKE) -f makefile.vms "CC=$(CC)"
|
|
|
|
[-.bfd]libbfd.olb:
|
|
$(CD) [-.bfd]
|
|
$(MAKE) -f makefile.vms "CC=$(CC)"
|
|
$(CD) [-.binutils]
|
|
|
|
[-.libiberty]libiberty.olb:
|
|
$(CD) [-.libiberty]
|
|
$(MAKE) -f makefile.vms "CC=$(CC)"
|
|
$(CD) [-.binutils]
|
|
|
|
[-.opcodes]libopcodes.olb:
|
|
$(CD) [-.opcodes]
|
|
$(MAKE) -f makefile.vms "CC=$(CC)"
|
|
$(CD) [-.binutils]
|
|
|
|
clean:
|
|
$$ purge
|
|
$(RM) *.obj;
|
|
$(RM) *.exe;
|
|
|
|
distclean: clean
|
|
$(RM) config.h;
|
|
$(RM) makefile.vms;
|