Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/utils/sleuth3/makefile @ 3149:afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Added new directory "3rdparty/utiles/sleuth3" and source files to build
"sleuth3" and its utilities. Also added "sleuth3" to the Directories
section of "3rdparty/utils/makefile" to faciliate the inclusion of the
sleuth3 build.
author | Bill Pierce <merlinious999@gmail.com> |
---|---|
date | Sat, 04 Feb 2017 18:55:39 +0100 |
parents | |
children | dd553bb32ebb |
rev | line source |
---|---|
3149
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
1 include ../../../rules.mak |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
2 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
3 DEPENDS = ./makefile |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
4 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
5 AS = lwasm --6309 --format=os9 --pragma=forwardrefmax,pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal --includedir=. --includedir=$(DEFSDIR) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
6 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
7 ALLOBJS = $(OBJS) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
8 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
9 DSKSLEUTH3 = sleuth3.dsk |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
10 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
11 DSKS = $(DSKSLEUTH3) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
12 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
13 OBJS = Sleuth3 XRefs3 ChgNam3 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
14 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
15 TXTS1 = genes.notes csshelps.txt |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
16 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
17 TXTS2 = csschgdf.txt csschge1.txt csschge2.txt \ |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
18 csschge9.txt csschgf1.txt csschgf2.txt csschgf9.txt |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
19 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
20 SRCS = cssauxil3.asm cssconst3.asm cssdisas3.asm cssdkdsk3.asm cssdmptb3.asm \ |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
21 cssgetcd3.asm cssiafcb3.asm cssinitz3.asm cssinput3.asm cssleuth3.asm \ |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
22 cssmapdk3.asm cssmiscl3.asm cssnames3.asm cssoutcd3.asm cssparam3.asm \ |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
23 cssshowc3.asm csstable3.asm cssvarbl3.asm cssxiort3.asm cssxrefs3.asm \ |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
24 csszapcd3.asm sleuth3.asm |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
25 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
26 CMDS = $(OBJS) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
27 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
28 all: banner $(ALLOBJS) $(DEPENDS) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
29 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
30 banner: |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
31 @$(ECHO) "**************************************************" |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
32 @$(ECHO) "* *" |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
33 @$(ECHO) "* Sleuth3 Disassembler *" |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
34 @$(ECHO) "* *" |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
35 @$(ECHO) "**************************************************" |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
36 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
37 Sleuth3: sleuth3.asm |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
38 $(AS) $(ASOUT)$@ $< $(M6809) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
39 XRefs3: cssxrefs3.asm |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
40 $(AS) $(ASOUT)$@ $< $(M6809) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
41 ChgNam3: cssnames3.asm |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
42 $(AS) $(ASOUT)$@ $< $(M6809) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
43 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
44 $(DSKSLEUTH3): $(CMDS) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
45 $(RM) $@ |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
46 $(OS9FORMAT_DS80) -q $@ -n"Sleuth3 Disassembler" |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
47 $(MAKDIR) $@,CMDS |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
48 $(MAKDIR) $@,HELP |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
49 $(MAKDIR) $@,EXAMPL |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
50 $(MAKDIR) $@,SRC |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
51 $(OS9COPY) $(CMDS) $@,CMDS |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
52 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
53 $(OS9COPY) $(TXTS1) $@,HELP |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
54 $(OS9ATTR_TEXT) $(foreach file,$(TXTS1),$@,HELP/$(file)) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
55 $(OS9COPY) $(TXTS2) $@,EXAMPL |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
56 $(OS9ATTR_TEXT) $(foreach file,$(TXTS2),$@,EXAMPL/$(file)) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
57 $(OS9COPY) $(SRCS) $@,SRC |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
58 $(OS9ATTR_TEXT) $(foreach file,$(SRCS),$@,SRC/$(file)) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
59 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
60 dsk: all $(DSKS) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
61 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
62 dskcopy: dsk |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
63 $(CP) $(DSKS) $(DSKDIR) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
64 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
65 dskclean: |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
66 $(RM) $(DSKS) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
67 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
68 clean: dskclean |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
69 $(RM) $(ALLOBJS) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
70 |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
71 info: |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
72 @$(ECHO) "*** Sleuth3 OS9 Disassembler ***" |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
73 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |
afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Bill Pierce <merlinious999@gmail.com>
parents:
diff
changeset
|
74 |