[9] | 1 | # Makefile for dis
|
---|
| 2 |
|
---|
| 3 | # @(#) Makefile, Ver. 2.1 created 00:00:00 87/09/01
|
---|
| 4 | # Makefile for 8088 symbolic disassembler
|
---|
| 5 |
|
---|
| 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.
|
---|
| 10 |
|
---|
| 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.
|
---|
| 26 |
|
---|
| 27 | CFLAGS =-O -wo
|
---|
| 28 | OBJ = disrel.o dismain.o distabs.o dishand.o disfp.o
|
---|
| 29 | CC=exec cc
|
---|
| 30 |
|
---|
| 31 | all: dis88
|
---|
| 32 |
|
---|
| 33 | dis88: $(OBJ)
|
---|
| 34 | cc -i -o dis88 $(OBJ)
|
---|
| 35 | install -S 5kw dis88
|
---|
| 36 |
|
---|
| 37 | install: /usr/bin/dis88
|
---|
| 38 |
|
---|
| 39 | /usr/bin/dis88: dis88
|
---|
| 40 | install -cs -o bin dis88 $@
|
---|
| 41 |
|
---|
| 42 | disrel.o: disrel.c
|
---|
| 43 | dismain.o: dismain.c dis.h
|
---|
| 44 | distabs.o: distabs.c dis.h
|
---|
| 45 | dishand.o: dishand.c dis.h
|
---|
| 46 | disfp.o: disfp.c dis.h
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 | clean:
|
---|
| 50 | rm -f *.bak *.o core dis88
|
---|