source: trunk/minix/commands/dis88/Makefile@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.6 KB
Line 
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
27CFLAGS =-O -wo
28OBJ = disrel.o dismain.o distabs.o dishand.o disfp.o
29CC=exec cc
30
31all: dis88
32
33dis88: $(OBJ)
34 cc -i -o dis88 $(OBJ)
35 install -S 5kw dis88
36
37install: /usr/bin/dis88
38
39/usr/bin/dis88: dis88
40 install -cs -o bin dis88 $@
41
42disrel.o: disrel.c
43dismain.o: dismain.c dis.h
44distabs.o: distabs.c dis.h
45dishand.o: dishand.c dis.h
46disfp.o: disfp.c dis.h
47
48
49clean:
50 rm -f *.bak *.o core dis88
Note: See TracBrowser for help on using the repository browser.