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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [opcodes/] [makefile.vms] - Diff between revs 157 and 225

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 1... Line 1...
#
#
# Makefile for libopcodes under openVMS VAX and Alpha
# Makefile for libopcodes under openVMS
#
#
# For use with gnu-make for vms
# For use with gnu-make for vms
#
#
# Created by Klaus K"ampf, kkaempf@progis.de
# Created by Klaus K"ampf, kkaempf@progis.de
#
#
#
#
ifeq ($(ARCH),alpha)
 
OBJS=alpha-dis.obj,alpha-opc.obj,dis-buf.obj,disassemble.obj
ifeq ($(ARCH),IA64)
FORMAT=OBJ_EVAX
OBJS=ia64-dis.obj,ia64-opc.obj
 
ARCHDEF="ARCH_ia64"
 
endif
 
ifeq ($(ARCH),ALPHA)
 
OBJS=alpha-dis.obj,alpha-opc.obj
ARCHDEF="ARCH_alpha"
ARCHDEF="ARCH_alpha"
else
endif
OBJS=vax-dis.obj,dis-buf.obj,disassemble.obj
ifeq ($(ARCH),VAX)
FORMAT=OBJ_VAX
OBJS=vax-dis.obj
ARCHDEF="ARCH_vax"
ARCHDEF="ARCH_vax"
endif
endif
 
 
 
OBJS:=$(OBJS),dis-init.obj,dis-buf.obj,disassemble.obj
 
 
ifeq ($(CC),gcc)
ifeq ($(CC),gcc)
DEFS=/define=($(FORMAT))
DEFS=/define=($(ARCHDEF))
CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
else
else
DEFS=/define=($(FORMAT),"const=")
DEFS=/define=($(ARCHDEF))
CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)\
OPT=/noopt/debug
/warnings=disable=(missingreturn,implicitfunc,longextern)
CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
 
 /name=(as_is,shortened)
endif
endif
 
 
libopcodes.olb: sysdep.h $(OBJS)
libopcodes.olb: $(OBJS)
        purge
        purge
        lib/create libopcodes *.obj
        lib/create libopcodes *.obj
 
 
disassemble.obj: disassemble.c
 
        $(CC)$(CFLAGS)/define=($(ARCHDEF)) $<
 
 
 
sysdep.h: [-.bfd.hosts]$(ARCH)vms.h
 
        $(CP) $< $@
 
 
 
clean:
clean:
        $$ purge
        $$ purge
        $(RM) *.obj;
        $(RM) *.obj;
        $(RM) sysdep.h;
 
        $(RM) libopcodes.olb;
        $(RM) libopcodes.olb;

powered by: WebSVN 2.1.0

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