1996-06-18 21:10:39 +02:00
|
|
|
#
|
1998-07-02 21:02:27 +02:00
|
|
|
# Makefile for binutils under openVMS (Alpha and Vax)
|
1996-06-18 21:10:39 +02:00
|
|
|
#
|
|
|
|
# For use with gnu-make for vms
|
|
|
|
#
|
1998-07-02 21:02:27 +02:00
|
|
|
# Created by Klaus K"ampf, kkaempf@rmi.de
|
1996-06-18 21:10:39 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
1997-04-01 23:22:54 +02:00
|
|
|
# Distribution version, filled in by configure.com
|
1998-07-02 21:02:27 +02:00
|
|
|
VERSION=@VERSION@
|
1997-04-01 23:22:54 +02:00
|
|
|
|
1998-07-02 21:02:27 +02:00
|
|
|
ifeq ($(ARCH),ALPHA)
|
|
|
|
TARGET=""vms-alpha""
|
|
|
|
else
|
|
|
|
TARGET=""vms-vax""
|
|
|
|
endif
|
1997-04-01 23:22:54 +02:00
|
|
|
|
1996-06-18 21:10:39 +02:00
|
|
|
ifeq ($(CC),gcc)
|
1997-04-01 23:22:54 +02:00
|
|
|
CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
|
|
|
|
DEFS=/define=("TARGET=$(TARGET)")
|
1998-05-06 21:29:52 +02:00
|
|
|
LIBS=,gnu_cc_library:libgcc/lib,sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0.obj
|
1996-06-18 21:10:39 +02:00
|
|
|
else
|
1998-07-02 21:02:27 +02:00
|
|
|
CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)\
|
|
|
|
/warnings=disable=(missingreturn,implicitfunc,longextern)
|
|
|
|
DEFS=/define=("TARGET=$(TARGET)","const=","unlink=remove")
|
1996-08-08 18:29:04 +02:00
|
|
|
LIBS=,sys$$library:vaxcrtl.olb/lib
|
1996-06-18 21:10:39 +02:00
|
|
|
endif
|
|
|
|
|
1996-08-08 18:29:04 +02: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-18 21:10:39 +02:00
|
|
|
|
1996-08-08 18:29:04 +02:00
|
|
|
DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj
|
1996-06-18 21:10:39 +02:00
|
|
|
|
1996-08-08 18:29:04 +02:00
|
|
|
WRITE_DEBUG_OBJS = $(DEBUG_OBJS),wrstabs.obj
|
1996-06-18 21:10:39 +02:00
|
|
|
|
1996-08-08 18:29:04 +02:00
|
|
|
BULIBS = []bucomm.obj,version.obj,filemode.obj
|
1996-06-18 21:10:39 +02:00
|
|
|
|
1996-08-08 18:29:04 +02:00
|
|
|
ADDL_DEPS = $(BULIBS),$(BFDLIB_DEP),$(LIBIBERTY_DEP)
|
|
|
|
ADDL_LIBS = $(BULIBS),$(BFDLIB),$(LIBIBERTY)
|
1996-06-18 21:10:39 +02:00
|
|
|
|
1996-08-08 18:29:04 +02:00
|
|
|
SIZEOBJS = $(ADDL_DEPS),size.obj
|
1996-06-18 21:10:39 +02:00
|
|
|
|
1996-08-08 18:29:04 +02:00
|
|
|
STRINGSOBJS = $(ADDL_DEPS),strings.obj
|
1996-06-18 21:10:39 +02:00
|
|
|
|
1996-08-08 18:29:04 +02:00
|
|
|
NMOBJS = $(ADDL_DEPS),nm.obj
|
1996-06-18 21:10:39 +02:00
|
|
|
|
1996-08-08 18:29:04 +02:00
|
|
|
OBJDUMPOBJS = $(ADDL_DEPS),objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(OPCODES_DEP)
|
1996-06-18 21:10:39 +02:00
|
|
|
|
1996-08-08 18:29:04 +02:00
|
|
|
all: config.h size.exe strings.exe objdump.exe nm.exe
|
1996-06-18 21:10:39 +02:00
|
|
|
|
1996-08-08 18:29:04 +02: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-18 21:10:39 +02:00
|
|
|
|
1996-08-08 18:29:04 +02:00
|
|
|
objdump.exe: $(OBJDUMPOBJS)
|
|
|
|
link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(BFDLIB),$(OPCODES),$(ADDL_LIBS)$(LIBS)
|
|
|
|
|
|
|
|
|
|
|
|
version.obj: version.c
|
1997-04-01 23:22:54 +02:00
|
|
|
$(CC) $(CFLAGS)/define=(VERSION="""$(VERSION)""") $<
|
|
|
|
|
|
|
|
config.h:
|
|
|
|
$$ @configure
|
1998-05-06 21:29:52 +02:00
|
|
|
$(MAKE) -f makefile.vms "CC=$(CC)"
|
1997-04-01 23:22:54 +02:00
|
|
|
|
|
|
|
[-.bfd]libbfd.olb:
|
|
|
|
$(CD) [-.bfd]
|
1998-05-06 21:29:52 +02:00
|
|
|
$(MAKE) -f makefile.vms "CC=$(CC)"
|
1997-04-01 23:22:54 +02:00
|
|
|
$(CD) [-.binutils]
|
|
|
|
|
|
|
|
[-.libiberty]libiberty.olb:
|
|
|
|
$(CD) [-.libiberty]
|
1998-05-06 21:29:52 +02:00
|
|
|
$(MAKE) -f makefile.vms "CC=$(CC)"
|
1997-04-01 23:22:54 +02:00
|
|
|
$(CD) [-.binutils]
|
|
|
|
|
|
|
|
[-.opcodes]libopcodes.olb:
|
|
|
|
$(CD) [-.opcodes]
|
1998-05-06 21:29:52 +02:00
|
|
|
$(MAKE) -f makefile.vms "CC=$(CC)"
|
1997-04-01 23:22:54 +02:00
|
|
|
$(CD) [-.binutils]
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$$ purge
|
|
|
|
$(RM) *.obj;
|
|
|
|
$(RM) *.exe;
|
1998-07-02 21:02:27 +02:00
|
|
|
|
|
|
|
distclean: clean
|
1997-04-01 23:22:54 +02:00
|
|
|
$(RM) config.h;
|
1998-07-02 21:02:27 +02:00
|
|
|
$(RM) makefile.vms;
|