* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / dis88 / Makefile
blob91dba398f6adb013c3f818269118651acc180433
1 # Makefile for dis
3 # @(#) Makefile, Ver. 2.1 created 00:00:00 87/09/01
4 # Makefile for 8088 symbolic disassembler
6 # Copyright (C) 1987 G. M. Harding, all rights reserved.
7 # Permission to copy and redistribute is hereby granted,
8 # provided full source code, with all copyright notices,
9 # accompanies any redistribution.
11 # This Makefile automates the process of compiling and linking
12 # a symbolic object-file disassembler program for the Intel
13 # 8088 CPU. Relatively machine-independent code is contained in
14 # the file dismain.c; lookup tables and handler routines, which
15 # are by their nature machine-specific, are contained in two
16 # files named distabs.c and dishand.c, respectively. (A third
17 # machine-specific file, disfp.c, contains handler routines for
18 # floating-point coprocessor opcodes.) A header file, dis.h,
19 # attempts to mediate between the machine-specific and machine-
20 # independent portions of the code. An attempt has been made to
21 # isolate machine dependencies and to deal with them in fairly
22 # straightforward ways. Thus, it should be possible to target a
23 # different CPU by rewriting the handler routines and changing
24 # the initialization data in the lookup tables. It should not
25 # be necessary to alter the formats of the tables.
27 #CC=bcc
28 CFLAGS=-O
29 LDFLAGS=
30 PREFIX=/usr
32 OBJ = disrel.o dismain.o distabs.o dishand.o disfp.o
34 all: dis88
36 dis88: $(OBJ)
37 $(CC) $(LDFLAGS) -o dis88 $(OBJ)
39 install: dis88
40 install -m 755 -s dis88 $(DIST)$(PREFIX)/bin/dis86
41 install -m 644 dis88.1 $(DIST)$(PREFIX)/man/man1/dis86.1
43 $(OBJ): dis.h a.out.h
45 a.out.h:
46 ln -s ../libc/include/a.out.h .
48 clean realclean:
49 rm -f *.bak *.lst *.o core dis88 a.out.h