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.
32 OBJ
= disrel.o dismain.o distabs.o dishand.o disfp.o
37 $(CC
) $(LDFLAGS
) -o dis88
$(OBJ
)
40 install -m
755 -s dis88
$(DIST
)$(PREFIX
)/bin
/dis86
41 install -m
644 dis88.1
$(DIST
)$(PREFIX
)/man
/man1
/dis86.1
46 ln
-s ..
/libc
/include/a.out.h .
49 rm -f
*.bak
*.lst
*.o core dis88 a.out.h