14361b62eSniklas# 2*f7cc78ecSespie# Makefile for libopcodes under openVMS VAX and Alpha 34361b62eSniklas# 44361b62eSniklas# For use with gnu-make for vms 54361b62eSniklas# 6fddef416Sniklas# Created by Klaus K"ampf, kkaempf@progis.de 74361b62eSniklas# 84361b62eSniklas# 9*f7cc78ecSespieifeq ($(ARCH),alpha) 104361b62eSniklasOBJS=alpha-dis.obj,alpha-opc.obj,dis-buf.obj,disassemble.obj 11*f7cc78ecSespieFORMAT=OBJ_EVAX 12*f7cc78ecSespieARCHDEF="ARCH_alpha" 13*f7cc78ecSespieelse 14*f7cc78ecSespieOBJS=vax-dis.obj,dis-buf.obj,disassemble.obj 15*f7cc78ecSespieFORMAT=OBJ_VAX 16*f7cc78ecSespieARCHDEF="ARCH_vax" 17*f7cc78ecSespieendif 184361b62eSniklas 194361b62eSniklasifeq ($(CC),gcc) 20*f7cc78ecSespieDEFS=/define=($(FORMAT)) 214361b62eSniklasCFLAGS=/include=([],[-.include],[-.bfd])$(DEFS) 224361b62eSniklaselse 23*f7cc78ecSespieDEFS=/define=($(FORMAT),"const=") 24*f7cc78ecSespieCFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)\ 25*f7cc78ecSespie/warnings=disable=(missingreturn,implicitfunc,longextern) 264361b62eSniklasendif 274361b62eSniklas 284361b62eSniklaslibopcodes.olb: sysdep.h $(OBJS) 294361b62eSniklas purge 304361b62eSniklas lib/create libopcodes *.obj 314361b62eSniklas 324361b62eSniklasdisassemble.obj: disassemble.c 33*f7cc78ecSespie $(CC)$(CFLAGS)/define=($(ARCHDEF)) $< 344361b62eSniklas 35*f7cc78ecSespiesysdep.h: [-.bfd.hosts]$(ARCH)vms.h 364361b62eSniklas $(CP) $< $@ 37fddef416Sniklas 38fddef416Sniklasclean: 39fddef416Sniklas $$ purge 40fddef416Sniklas $(RM) *.obj; 41fddef416Sniklas $(RM) sysdep.h; 42fddef416Sniklas $(RM) libopcodes.olb; 43