Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/basic09/makefile @ 3054:22ddd48b4ec2
level1 krn: Fix scheduler bug that only affected 6309
The original 6809 binary was correct, but it was disassembled
and interpreted wrongly, so that reassembly went wrong on 6309.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sun, 25 Jan 2015 22:36:02 +0100 |
parents | 13885d9433d5 |
children | dd553bb32ebb |
rev | line source |
---|---|
2054 | 1 include $(NITROS9DIR)/rules.mak |
477 | 2 |
2968
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
3 DSK = basic09v010100.dsk |
493 | 4 |
477 | 5 # NitrOS-9 |
2669
53c42701f680
More parameter fixups for lwasm
William Astle <lost@l-w.ca>
parents:
2509
diff
changeset
|
6 H6309 = $(AFLAGS) -DH6309=1 |
477 | 7 # Non-NitrOS-9 |
489
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
8 M6809 = $(AFLAGS) |
477 | 9 |
1363 | 10 DEPENDS = ./makefile |
493 | 11 |
2968
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
12 TEXTFILES = ReadMe install6809 install6309 |
668 | 13 OBJS = gfx gfx2 inkey syscall |
659
0e6a4a6486a0
I've learned now that syscall does NOT change for either 6809 or 6309
boisy
parents:
558
diff
changeset
|
14 OBJS6809 = basic09_6809 runb_6809 |
0e6a4a6486a0
I've learned now that syscall does NOT change for either 6809 or 6309
boisy
parents:
558
diff
changeset
|
15 OBJS6309 = basic09_6309 runb_6309 |
493 | 16 ALLOBJS = $(OBJS) $(OBJS6809) $(OBJS6309) |
477 | 17 |
1407 | 18 all: banner $(ALLOBJS) $(DEPENDS) |
19 | |
20 banner: | |
21 @$(ECHO) "**************************************************" | |
22 @$(ECHO) "* *" | |
23 @$(ECHO) "* Basic09 *" | |
24 @$(ECHO) "* *" | |
25 @$(ECHO) "**************************************************" | |
477 | 26 |
27 basic09_6309: basic09.asm | |
489
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
28 $(AS) $(ASOUT)$@ $< $(H6309) |
477 | 29 |
30 basic09_6809: basic09.asm | |
489
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
31 $(AS) $(ASOUT)$@ $< $(M6809) |
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
32 |
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
33 runb_6309: runb.asm |
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
34 $(AS) $(ASOUT)$@ $< $(H6309) |
477 | 35 |
489
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
36 runb_6809: runb.asm |
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
37 $(AS) $(ASOUT)$@ $< $(M6809) |
c9cad71c4605
runb.asm now incorporates both 6809 and 6309 versions, Makefile reflects change
boisy
parents:
478
diff
changeset
|
38 |
668 | 39 runbt_6809: basic09.asm |
40 $(AS) $(ASOUT)$@ $< $(M6809) -aRUNTIME=1 | |
41 | |
493 | 42 clean: dskclean |
477 | 43 $(RM) $(ALLOBJS) |
44 | |
2968
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
45 dsk: $(DSK) |
493 | 46 |
2968
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
47 $(DSK): all |
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
48 $(RM) $@ |
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
49 $(OS9FORMAT_SS35) $@ -n"Basic09" |
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
50 $(MAKDIR) $@,CMDS |
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
51 $(OS9COPY) $(ALLOBJS) $@,CMDS |
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
52 $(OS9ATTR_EXEC) $(foreach file,$(ALLOBJS),$@,CMDS/$(file)) |
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
53 $(CPL) $(TEXTFILES) $@,. |
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
54 $(OS9ATTR_TEXT) $(foreach file,$(TEXTFILES),$@,$(file)) |
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
55 |
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
56 dskcopy: $(DSK) |
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
57 $(CP) $(DSK) $(DSKDIR) |
2509 | 58 |
493 | 59 dskclean: |
2968
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
60 $(RM) $(DSK) |
2216 | 61 |
62 info: | |
63 @$(ECHO) "*** Basic09 ***" | |
2968
13885d9433d5
3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
64 @$(ECHO) $(DSK) |