comparison 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
comparison
equal deleted inserted replaced
3148:ffa4b0273cc7 3149:afd0f7d9b514
1 include ../../../rules.mak
2
3 DEPENDS = ./makefile
4
5 AS = lwasm --6309 --format=os9 --pragma=forwardrefmax,pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal --includedir=. --includedir=$(DEFSDIR)
6
7 ALLOBJS = $(OBJS)
8
9 DSKSLEUTH3 = sleuth3.dsk
10
11 DSKS = $(DSKSLEUTH3)
12
13 OBJS = Sleuth3 XRefs3 ChgNam3
14
15 TXTS1 = genes.notes csshelps.txt
16
17 TXTS2 = csschgdf.txt csschge1.txt csschge2.txt \
18 csschge9.txt csschgf1.txt csschgf2.txt csschgf9.txt
19
20 SRCS = cssauxil3.asm cssconst3.asm cssdisas3.asm cssdkdsk3.asm cssdmptb3.asm \
21 cssgetcd3.asm cssiafcb3.asm cssinitz3.asm cssinput3.asm cssleuth3.asm \
22 cssmapdk3.asm cssmiscl3.asm cssnames3.asm cssoutcd3.asm cssparam3.asm \
23 cssshowc3.asm csstable3.asm cssvarbl3.asm cssxiort3.asm cssxrefs3.asm \
24 csszapcd3.asm sleuth3.asm
25
26 CMDS = $(OBJS)
27
28 all: banner $(ALLOBJS) $(DEPENDS)
29
30 banner:
31 @$(ECHO) "**************************************************"
32 @$(ECHO) "* *"
33 @$(ECHO) "* Sleuth3 Disassembler *"
34 @$(ECHO) "* *"
35 @$(ECHO) "**************************************************"
36
37 Sleuth3: sleuth3.asm
38 $(AS) $(ASOUT)$@ $< $(M6809)
39 XRefs3: cssxrefs3.asm
40 $(AS) $(ASOUT)$@ $< $(M6809)
41 ChgNam3: cssnames3.asm
42 $(AS) $(ASOUT)$@ $< $(M6809)
43
44 $(DSKSLEUTH3): $(CMDS)
45 $(RM) $@
46 $(OS9FORMAT_DS80) -q $@ -n"Sleuth3 Disassembler"
47 $(MAKDIR) $@,CMDS
48 $(MAKDIR) $@,HELP
49 $(MAKDIR) $@,EXAMPL
50 $(MAKDIR) $@,SRC
51 $(OS9COPY) $(CMDS) $@,CMDS
52 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
53 $(OS9COPY) $(TXTS1) $@,HELP
54 $(OS9ATTR_TEXT) $(foreach file,$(TXTS1),$@,HELP/$(file))
55 $(OS9COPY) $(TXTS2) $@,EXAMPL
56 $(OS9ATTR_TEXT) $(foreach file,$(TXTS2),$@,EXAMPL/$(file))
57 $(OS9COPY) $(SRCS) $@,SRC
58 $(OS9ATTR_TEXT) $(foreach file,$(SRCS),$@,SRC/$(file))
59
60 dsk: all $(DSKS)
61
62 dskcopy: dsk
63 $(CP) $(DSKS) $(DSKDIR)
64
65 dskclean:
66 $(RM) $(DSKS)
67
68 clean: dskclean
69 $(RM) $(ALLOBJS)
70
71 info:
72 @$(ECHO) "*** Sleuth3 OS9 Disassembler ***"
73 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)
74