Mercurial > hg > Members > kono > nitros9-code
annotate level2/coco3/cmds/makefile @ 2242:2a889a511f0a
Adding Aaron Wolfe's DriveWire work
author | boisy |
---|---|
date | Thu, 24 Dec 2009 01:16:31 +0000 |
parents | f8dcc9cc7f51 |
children | cacf283930e6 |
rev | line source |
---|---|
2048 | 1 PORT = coco3 |
2 include $(NITROS9DIR)/rules.mak | |
3 | |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
4 vpath %.asm $(LEVEL2)/cmds:$(LEVEL1)/cmds:$(NITROS9DIR)/3rdparty/packages/basic09 |
2048 | 5 |
6 DEPENDS = ./makefile | |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
7 AFLAGS += -i=$(NITROS9DIR)/3rdparty/packages/basic09 |
2048 | 8 |
9 CMDS = asm attr backup binex build cmp cobbler copy cputype \ | |
10 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \ | |
11 display dmem dmode dsave dump echo edit error exbin \ | |
12 format free grfdrv help ident iniz irqs link list load login \ | |
13 makdir mdir megaread merge mfree mmap modpatch montype mpi os9gen padrom park \ | |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
14 pmap proc procs prompt pwd pxd reboot rename save setime \ |
2242 | 15 shell_21 sleep smap tee tmode touch tsmon tuneport unlink verify wcreate xmode \ |
16 dw wget ftp | |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
17 |
2159 | 18 CMDS_D2 = basic09 runb gfx2 gfx inkey syscall copy del echo format \ |
19 merge os9gen prompt tmode | |
2048 | 20 |
21 SHELLMODS = shellplus date deiniz echo iniz link load save unlink | |
22 UTILPAK1 = attr build copy del deldir dir display list makdir mdir \ | |
23 merge mfree procs rename tmode | |
24 | |
25 # Files not compilable by os9asm: config | |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
26 all: $(CMDS) $(CMDS_D2) shell utilpak1 $(DEPENDS) |
2048 | 27 |
28 runb: runb.asm | |
29 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1 | |
30 $(MERGE) $@ $(SUBS)>$@.tmp | |
31 $(RM) $@ | |
32 $(MOVE) $@.tmp $@ | |
33 | |
34 tmode: xmode.asm | |
35 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aTMODE=1 | |
36 | |
37 xmode: xmode.asm | |
38 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aXMODE=1 | |
39 | |
40 pwd: pd.asm | |
41 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1 | |
42 | |
43 pxd: pd.asm | |
44 $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPXD=1 | |
45 | |
46 shell: $(SHELLMODS) $(DEPENDS) | |
47 $(MERGE) $(SHELLMODS)>$@ | |
48 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" | |
49 @ls -l $@ | |
50 @$(ECHO) "" | |
51 | |
52 utilpak1: $(UTILPAK1) $(DEPENDS) | |
53 $(MERGE) $(UTILPAK1)>$@ | |
54 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" | |
55 @ls -l $@ | |
56 @$(ECHO) "" | |
57 | |
58 clean: | |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
59 $(RM) shell utilpak1 $(SUBS) $(SHELLMODS) $(CMDS) $(CMDS_D2) |
2048 | 60 |
61 # Only $(CMDS) are shown here | |
62 showobjs: | |
63 @$(ECHO) shell utilpak1 $(CMDS) | |
64 | |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
65 showobjs_d2: |
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
66 @$(ECHO) $(CMDS_D2) |
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
67 |
2048 | 68 identify: |
69 $(IDENT_SHORT) $(ALLOBJS) |