mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
43 lines
868 B
Plaintext
43 lines
868 B
Plaintext
|
#
|
||
|
# Makefile for libopcodes under openVMS VAX and Alpha
|
||
|
#
|
||
|
# For use with gnu-make for vms
|
||
|
#
|
||
|
# Created by Klaus K"ampf, kkaempf@progis.de
|
||
|
#
|
||
|
#
|
||
|
ifeq ($(ARCH),alpha)
|
||
|
OBJS=alpha-dis.obj,alpha-opc.obj,dis-buf.obj,disassemble.obj
|
||
|
FORMAT=OBJ_EVAX
|
||
|
ARCHDEF="ARCH_alpha"
|
||
|
else
|
||
|
OBJS=vax-dis.obj,dis-buf.obj,disassemble.obj
|
||
|
FORMAT=OBJ_VAX
|
||
|
ARCHDEF="ARCH_vax"
|
||
|
endif
|
||
|
|
||
|
ifeq ($(CC),gcc)
|
||
|
DEFS=/define=($(FORMAT))
|
||
|
CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
|
||
|
else
|
||
|
DEFS=/define=($(FORMAT),"const=")
|
||
|
CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)\
|
||
|
/warnings=disable=(missingreturn,implicitfunc,longextern)
|
||
|
endif
|
||
|
|
||
|
libopcodes.olb: sysdep.h $(OBJS)
|
||
|
purge
|
||
|
lib/create libopcodes *.obj
|
||
|
|
||
|
disassemble.obj: disassemble.c
|
||
|
$(CC)$(CFLAGS)/define=($(ARCHDEF)) $<
|
||
|
|
||
|
sysdep.h: [-.bfd.hosts]$(ARCH)vms.h
|
||
|
$(CP) $< $@
|
||
|
|
||
|
clean:
|
||
|
$$ purge
|
||
|
$(RM) *.obj;
|
||
|
$(RM) sysdep.h;
|
||
|
$(RM) libopcodes.olb;
|