1999-05-03 09:29:11 +02:00
|
|
|
#
|
|
|
|
# Makefile for binutils under openVMS (Alpha and Vax)
|
|
|
|
#
|
|
|
|
# For use with gnu-make for vms
|
|
|
|
#
|
|
|
|
# Created by Klaus K"ampf, kkaempf@rmi.de
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
ifeq ($(CC),gcc)
|
2009-05-25 15:03:24 +02:00
|
|
|
DEFS=
|
1999-05-03 09:29:11 +02:00
|
|
|
CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
|
|
|
|
LIBS=,gnu_cc_library:libgcc/lib,sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0.obj
|
|
|
|
else
|
2009-05-25 15:03:24 +02:00
|
|
|
DEFS=
|
|
|
|
OPT=/noopt/debug
|
2009-09-01 15:16:53 +02:00
|
|
|
CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
|
2009-05-25 15:03:24 +02:00
|
|
|
/name=(as_is,shortened)\
|
|
|
|
/prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))
|
1999-05-03 09:29:11 +02:00
|
|
|
endif
|
|
|
|
|
2009-09-01 15:16:53 +02:00
|
|
|
LIBBFD = [-.bfd]libbfd.olb/lib
|
|
|
|
LIBBFD_DEP = [-.bfd]libbfd.olb
|
1999-05-03 09:29:11 +02:00
|
|
|
LIBIBERTY_DEP = [-.libiberty]libiberty.olb
|
|
|
|
LIBIBERTY = [-.libiberty]libiberty.olb/lib
|
|
|
|
OPCODES_DEP = [-.opcodes]libopcodes.olb
|
|
|
|
OPCODES = [-.opcodes]libopcodes.olb/lib
|
|
|
|
|
2008-11-14 10:57:35 +01:00
|
|
|
DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2009-09-01 15:16:53 +02:00
|
|
|
BULIBS = bucomm.obj,version.obj,filemode.obj
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2009-09-01 15:16:53 +02:00
|
|
|
ADDL_DEPS = $(BULIBS),$(LIBBFD_DEP),$(LIBIBERTY_DEP)
|
|
|
|
ADDL_LIBS = $(BULIBS),$(LIBBFD),$(LIBIBERTY)
|
1999-05-03 09:29:11 +02:00
|
|
|
|
|
|
|
SIZEOBJS = $(ADDL_DEPS),size.obj
|
|
|
|
|
|
|
|
STRINGSOBJS = $(ADDL_DEPS),strings.obj
|
|
|
|
|
|
|
|
NMOBJS = $(ADDL_DEPS),nm.obj
|
|
|
|
|
2009-05-25 15:03:24 +02:00
|
|
|
ADDR2LINEOBJS = $(ADDL_DEPS),addr2line.obj
|
|
|
|
|
2009-09-02 16:14:49 +02:00
|
|
|
OBJDUMPOBJS = objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_DEPS),$(OPCODES_DEP)
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2009-05-25 15:03:24 +02:00
|
|
|
all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe
|
1999-05-03 09:29:11 +02:00
|
|
|
|
|
|
|
size.exe: $(SIZEOBJS)
|
2009-09-01 15:16:53 +02:00
|
|
|
link/exe=$@ size.obj,$(ADDL_LIBS)
|
1999-05-03 09:29:11 +02:00
|
|
|
|
|
|
|
strings.exe: $(STRINGSOBJS)
|
2009-09-01 15:16:53 +02:00
|
|
|
link/exe=$@ strings.obj,$(ADDL_LIBS)
|
1999-05-03 09:29:11 +02:00
|
|
|
|
|
|
|
nm.exe: $(NMOBJS)
|
2009-09-01 15:16:53 +02:00
|
|
|
link/exe=$@ nm.obj,$(ADDL_LIBS)
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2009-05-25 15:03:24 +02:00
|
|
|
addr2line.exe: $(ADDR2LINEOBJS)
|
2009-09-01 15:16:53 +02:00
|
|
|
link/exe=$@ addr2line.obj,$(ADDL_LIBS)
|
2009-05-25 15:03:24 +02:00
|
|
|
|
1999-05-03 09:29:11 +02:00
|
|
|
objdump.exe: $(OBJDUMPOBJS)
|
2009-09-02 16:14:49 +02:00
|
|
|
link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_LIBS),$(LIBBFD),$(OPCODES)
|
1999-05-03 09:29:11 +02:00
|
|
|
|
|
|
|
config.h:
|
|
|
|
$$ @configure
|
|
|
|
$(MAKE) -f makefile.vms "CC=$(CC)"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$$ purge
|
|
|
|
$(RM) *.obj;
|
|
|
|
$(RM) *.exe;
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
$(RM) config.h;
|
|
|
|
$(RM) makefile.vms;
|