Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/basic09/makefile @ 2849:84d9d5765057 lwtools-port
Makefiles: Call OS9ATTR with multiple files (part 2/2)
These were all done with a sed -i line, but have been
manually verified.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Fri, 12 Jul 2013 01:01:17 +0200 |
parents | c1892376e7a7 |
children | 84d284e812cd |
rev | line source |
---|---|
2054 | 1 include $(NITROS9DIR)/rules.mak |
477 | 2 |
524 | 3 DISK = 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 |
12 TXTFILES = 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 | |
493 | 45 dsk: all |
46 $(RM) $(DISK) | |
960
ea69ed12af12
Added OS9FORMAT macros which inherently specify the disk format, so that
boisy
parents:
895
diff
changeset
|
47 $(OS9FORMAT_SS35) $(DISK) -n"Basic09" |
558 | 48 $(MAKDIR) $(DISK),CMDS |
49 $(CP) $(ALLOBJS) $(DISK),CMDS | |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2835
diff
changeset
|
50 $(OS9ATTR_EXEC) $(foreach file,$(ALLOBJS),$(DISK),CMDS/$(file)) |
895 | 51 $(CPL) $(TXTFILES) $(DISK),. |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2835
diff
changeset
|
52 $(OS9ATTR_TEXT) $(foreach file,$(TXTFILES),$(DISK),$(file)) |
493 | 53 |
2509 | 54 dskcopy: dsk |
55 $(CP) $(DISK) $(DSKDIR) | |
56 | |
493 | 57 dskclean: |
2835
c1892376e7a7
Makefiles: Do not let $(RM) silently fail
Tormod Volden <debian.tormod@gmail.com>
parents:
2669
diff
changeset
|
58 $(RM) $(DISK) |
2216 | 59 |
60 info: | |
61 @$(ECHO) "*** Basic09 ***" | |
62 @$(ECHO) $(DISK) |