1996-06-19 03:10:39 +08:00
|
|
|
#
|
1997-02-14 10:36:21 +08:00
|
|
|
# Makefile for binutils under openVMS/Alpha
|
1996-06-19 03:10:39 +08:00
|
|
|
#
|
|
|
|
# For use with gnu-make for vms
|
|
|
|
#
|
1997-02-14 10:36:21 +08:00
|
|
|
# Created by Klaus K"ampf, kkaempf@progis.de
|
1996-06-19 03:10:39 +08:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
1997-04-02 05:22:54 +08:00
|
|
|
# Distribution version, filled in by configure.com
|
|
|
|
VERSION=
|
|
|
|
|
|
|
|
TARGET=""evax-alpha""
|
|
|
|
|
1996-06-19 03:10:39 +08:00
|
|
|
ifeq ($(CC),gcc)
|
1997-04-02 05:22:54 +08:00
|
|
|
CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
|
|
|
|
DEFS=/define=("TARGET=$(TARGET)")
|
|
|
|
LIBS=,GNU:[000000]libgcc/lib,sys$$library:vaxcrtl.olb/lib,GNU:[000000]crt0.obj
|
1996-06-19 03:10:39 +08:00
|
|
|
else
|
1996-08-09 00:29:04 +08:00
|
|
|
CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)/warnings=disable=(missingreturn,implicitfunc)
|
1997-04-02 05:22:54 +08:00
|
|
|
DEFS=/define=("TARGET=$(TARGET)",\
|
|
|
|
"const=","unlink=remove",\
|
1996-06-19 03:10:39 +08:00
|
|
|
"_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")
|
1996-08-09 00:29:04 +08:00
|
|
|
LIBS=,sys$$library:vaxcrtl.olb/lib
|
1996-06-19 03:10:39 +08:00
|
|
|
endif
|
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
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
|
1996-06-19 03:10:39 +08:00
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj
|
1996-06-19 03:10:39 +08:00
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
WRITE_DEBUG_OBJS = $(DEBUG_OBJS),wrstabs.obj
|
1996-06-19 03:10:39 +08:00
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
BULIBS = []bucomm.obj,version.obj,filemode.obj
|
1996-06-19 03:10:39 +08:00
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
ADDL_DEPS = $(BULIBS),$(BFDLIB_DEP),$(LIBIBERTY_DEP)
|
|
|
|
ADDL_LIBS = $(BULIBS),$(BFDLIB),$(LIBIBERTY)
|
1996-06-19 03:10:39 +08:00
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
SIZEOBJS = $(ADDL_DEPS),size.obj
|
1996-06-19 03:10:39 +08:00
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
STRINGSOBJS = $(ADDL_DEPS),strings.obj
|
1996-06-19 03:10:39 +08:00
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
NMOBJS = $(ADDL_DEPS),nm.obj
|
1996-06-19 03:10:39 +08:00
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
OBJDUMPOBJS = $(ADDL_DEPS),objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(OPCODES_DEP)
|
1996-06-19 03:10:39 +08:00
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
all: config.h size.exe strings.exe objdump.exe nm.exe
|
1996-06-19 03:10:39 +08:00
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
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)
|
1996-06-19 03:10:39 +08:00
|
|
|
|
1996-08-09 00:29:04 +08:00
|
|
|
objdump.exe: $(OBJDUMPOBJS)
|
|
|
|
link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(BFDLIB),$(OPCODES),$(ADDL_LIBS)$(LIBS)
|
|
|
|
|
|
|
|
|
|
|
|
version.obj: version.c
|
1997-04-02 05:22:54 +08:00
|
|
|
$(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;
|