source: vendor/binutils/current/opcodes/makefile.vms

Last change on this file was 10, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 868 bytes
Line 
1#
2# Makefile for libopcodes under openVMS VAX and Alpha
3#
4# For use with gnu-make for vms
5#
6# Created by Klaus K"ampf, kkaempf@progis.de
7#
8#
9ifeq ($(ARCH),alpha)
10OBJS=alpha-dis.obj,alpha-opc.obj,dis-buf.obj,disassemble.obj
11FORMAT=OBJ_EVAX
12ARCHDEF="ARCH_alpha"
13else
14OBJS=vax-dis.obj,dis-buf.obj,disassemble.obj
15FORMAT=OBJ_VAX
16ARCHDEF="ARCH_vax"
17endif
18
19ifeq ($(CC),gcc)
20DEFS=/define=($(FORMAT))
21CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
22else
23DEFS=/define=($(FORMAT),"const=")
24CFLAGS=/noopt/debug/include=([],[-.include],[-.bfd])$(DEFS)\
25/warnings=disable=(missingreturn,implicitfunc,longextern)
26endif
27
28libopcodes.olb: sysdep.h $(OBJS)
29 purge
30 lib/create libopcodes *.obj
31
32disassemble.obj: disassemble.c
33 $(CC)$(CFLAGS)/define=($(ARCHDEF)) $<
34
35sysdep.h: [-.bfd.hosts]$(ARCH)vms.h
36 $(CP) $< $@
37
38clean:
39 $$ purge
40 $(RM) *.obj;
41 $(RM) sysdep.h;
42 $(RM) libopcodes.olb;
Note: See TracBrowser for help on using the repository browser.