summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1998-05-24 18:43:39 +0200
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:21:21 +0200
commit8b494f241f2abfc0f869ab42c1601ea5027d3477 (patch)
treeb45660ee4ef2c94fa1c8f27018b141ea9bf7266a /Makefile
downloaddev86-8b494f241f2abfc0f869ab42c1601ea5027d3477.tar.gz
Import dis88-pcix
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c1352f0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,45 @@
+# @(#) Makefile, Ver. 2.1 created 00:00:00 87/09/01
+# Makefile for 8088 symbolic disassembler
+
+# Copyright (C) 1987 G. M. Harding, all rights reserved.
+# Permission to copy and redistribute is hereby granted,
+# provided full source code, with all copyright notices,
+# accompanies any redistribution.
+
+# This Makefile automates the process of compiling and linking
+# a symbolic object-file disassembler program for the Intel
+# 8088 CPU. Relatively machine-independent code is contained in
+# the file dismain.c; lookup tables and handler routines, which
+# are by their nature machine-specific, are contained in two
+# files named distabs.c and dishand.c, respectively. (A third
+# machine-specific file, disfp.c, contains handler routines for
+# floating-point coprocessor opcodes.) A header file, dis.h,
+# attempts to mediate between the machine-specific and machine-
+# independent portions of the code. An attempt has been made to
+# isolate machine dependencies and to deal with them in fairly
+# straightforward ways. Thus, it should be possible to target a
+# different CPU by rewriting the handler routines and changing
+# the initialization data in the lookup tables. It should not
+# be necessary to alter the formats of the tables.
+
+OBJ = disrel.o dismain.o distabs.o dishand.o disfp.o
+
+dis88 : $(OBJ)
+ ld -i -s -o dis88 /lib/crt0.o $(OBJ) -lc
+ size dis88
+ @echo "\07Build of 'dis88' complete." > /dev/tty
+
+.c.o :
+ cc -O -c $<
+ chmod 600 $*.o
+
+disrel.o : disrel.c
+
+dismain.o : dismain.c dis.h
+
+distabs.o : distabs.c dis.h
+
+dishand.o : dishand.c dis.h
+
+disfp.o : disfp.c dis.h
+