Home | History | Annotate | Line # | Download | only in opcodes
      1       1.1     skrll #
      2   1.1.1.2  christos # Makefile for libopcodes under openVMS
      3       1.1     skrll #
      4       1.1     skrll # For use with gnu-make for vms
      5       1.1     skrll #
      6       1.1     skrll # Created by Klaus K"ampf, kkaempf (at] progis.de
      7       1.1     skrll #
      8  1.1.1.10  christos #   Copyright (C) 2012-2026 Free Software Foundation, Inc.
      9   1.1.1.3  christos #
     10   1.1.1.3  christos # This file is free software; you can redistribute it and/or modify
     11   1.1.1.3  christos # it under the terms of the GNU General Public License as published by
     12   1.1.1.3  christos # the Free Software Foundation; either version 3 of the License, or
     13   1.1.1.3  christos # (at your option) any later version.
     14   1.1.1.3  christos #
     15   1.1.1.3  christos # This program is distributed in the hope that it will be useful,
     16   1.1.1.3  christos # but WITHOUT ANY WARRANTY; without even the implied warranty of
     17   1.1.1.3  christos # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     18   1.1.1.3  christos # GNU General Public License for more details.
     19   1.1.1.3  christos #
     20   1.1.1.3  christos # You should have received a copy of the GNU General Public License
     21   1.1.1.3  christos # along with this program; see the file COPYING3.  If not see
     22   1.1.1.3  christos # <http://www.gnu.org/licenses/>.
     23       1.1     skrll #
     24   1.1.1.2  christos 
     25   1.1.1.2  christos ifeq ($(ARCH),IA64)
     26   1.1.1.2  christos OBJS=ia64-dis.obj,ia64-opc.obj
     27   1.1.1.2  christos ARCHDEF="ARCH_ia64"
     28   1.1.1.2  christos endif
     29   1.1.1.2  christos ifeq ($(ARCH),ALPHA)
     30   1.1.1.2  christos OBJS=alpha-dis.obj,alpha-opc.obj
     31       1.1     skrll ARCHDEF="ARCH_alpha"
     32   1.1.1.2  christos endif
     33   1.1.1.2  christos ifeq ($(ARCH),VAX)
     34   1.1.1.2  christos OBJS=vax-dis.obj
     35       1.1     skrll ARCHDEF="ARCH_vax"
     36       1.1     skrll endif
     37       1.1     skrll 
     38   1.1.1.2  christos OBJS:=$(OBJS),dis-init.obj,dis-buf.obj,disassemble.obj
     39   1.1.1.2  christos 
     40       1.1     skrll ifeq ($(CC),gcc)
     41   1.1.1.2  christos DEFS=/define=($(ARCHDEF))
     42       1.1     skrll CFLAGS=/include=([],[-.include],[-.bfd])$(DEFS)
     43       1.1     skrll else
     44   1.1.1.2  christos DEFS=/define=($(ARCHDEF))
     45   1.1.1.2  christos OPT=/noopt/debug
     46   1.1.1.2  christos CFLAGS=$(OPT)/include=([],"../include",[-.bfd])$(DEFS)\
     47   1.1.1.2  christos  /name=(as_is,shortened)
     48       1.1     skrll endif
     49       1.1     skrll 
     50   1.1.1.2  christos libopcodes.olb: $(OBJS)
     51       1.1     skrll 	purge
     52       1.1     skrll 	lib/create libopcodes *.obj
     53       1.1     skrll 
     54       1.1     skrll clean:
     55       1.1     skrll 	$$ purge
     56       1.1     skrll 	$(RM) *.obj;
     57       1.1     skrll 	$(RM) libopcodes.olb;
     58