OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [binutils/] [makefile.vms] - Blame information for rev 53

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 khays
#
2
# Makefile for binutils under openVMS (Alpha and Vax)
3
#
4
# For use with gnu-make for vms
5
#
6
# Created by Klaus K"ampf, kkaempf@rmi.de
7
#
8
#
9
 
10
ifeq ($(CC),gcc)
11
DEFS=
12
CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
13
LIBS=,gnu_cc_library:libgcc/lib,sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0.obj
14
else
15
DEFS=
16
OPT=/noopt/debug
17
CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
18
 /name=(as_is,shortened)\
19
 /prefix=(all,except=("getopt","optarg","optopt","optind","opterr"))\
20
 /warns=(info=(ptrmismatch,shiftcount))
21
endif
22
 
23
LIBBFD = [-.bfd]libbfd.olb/lib
24
LIBBFD_DEP = [-.bfd]libbfd.olb
25
LIBIBERTY_DEP = [-.libiberty]libiberty.olb
26
LIBIBERTY = [-.libiberty]libiberty.olb/lib
27
OPCODES_DEP = [-.opcodes]libopcodes.olb
28
OPCODES = [-.opcodes]libopcodes.olb/lib
29
 
30
DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj,\
31
  elfcomm.obj
32
 
33
BULIBS = bucomm.obj,version.obj,filemode.obj
34
 
35
ADDL_DEPS = $(BULIBS),$(LIBBFD_DEP),$(LIBIBERTY_DEP)
36
ADDL_LIBS = $(BULIBS),$(LIBBFD),$(LIBIBERTY)
37
 
38
SIZEOBJS = $(ADDL_DEPS),size.obj
39
 
40
STRINGSOBJS = $(ADDL_DEPS),strings.obj
41
 
42
NMOBJS = $(ADDL_DEPS),nm.obj
43
 
44
ADDR2LINEOBJS = $(ADDL_DEPS),addr2line.obj
45
 
46
OBJDUMPOBJS = objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_DEPS),$(OPCODES_DEP)
47
 
48
READELFOBJS = readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_DEPS)
49
 
50
all: config.h size.exe strings.exe objdump.exe nm.exe addr2line.exe
51
 
52
size.exe: $(SIZEOBJS)
53
        link/exe=$@ size.obj,$(ADDL_LIBS)
54
 
55
strings.exe: $(STRINGSOBJS)
56
        link/exe=$@ strings.obj,$(ADDL_LIBS)
57
 
58
nm.exe: $(NMOBJS)
59
        link/exe=$@ nm.obj,$(ADDL_LIBS)
60
 
61
addr2line.exe: $(ADDR2LINEOBJS)
62
        link/exe=$@ addr2line.obj,$(ADDL_LIBS)
63
 
64
objdump.exe: $(OBJDUMPOBJS)
65
        link/exe=$@ objdump.obj,prdbg.obj,$(DEBUG_OBJS),$(ADDL_LIBS),$(OPCODES)
66
 
67
readelf.exe: $(READELFOBJS)
68
        link/exe=$@ readelf.obj,dwarf.obj,unwind-ia64.obj,$(ADDL_LIBS)
69
 
70
config.h:
71
        $$ @configure
72
        $(MAKE) -f makefile.vms "CC=$(CC)"
73
 
74
clean:
75
        $$ purge
76
        $(RM) *.obj;
77
        $(RM) *.exe;
78
 
79
distclean: clean
80
        $(RM) config.h;
81
        $(RM) makefile.vms;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.