Mercurial > hg > Members > kono > nitros9-code
annotate level2/mc09l2/cmds/makefile @ 3131:e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Add infrastructure (directories, makefiles etc).
Target name is mc09l2 to distinguish it from the Level 1
port (target name mc09).
In the code, the name mc09 is used for platform-dependent
code, whether for Level 1 or Level 2.
author | Neal Crook <foofoobedoo@gmail.com> |
---|---|
date | Mon, 05 Dec 2016 17:39:03 +0000 |
parents | |
children | 024ad1d926fd |
rev | line source |
---|---|
3131
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
1 PORT = mc09 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
2 include $(NITROS9DIR)/rules.mak |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
3 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
4 vpath %.as $(LEVEL2)/cmds:$(LEVEL1)/cmds |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
5 vpath %.asm $(LEVEL2)/cmds:$(LEVEL1)/cmds:$(3RDPARTY)/packages/basic09 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
6 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
7 DEPENDS = ./makefile |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
8 AFLAGS += --includedir=$(3RDPARTY)/packages/basic09 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
9 LFLAGS += -L$(NITROS9DIR)/lib |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
10 LFLAGS += -lmc09 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
11 LFLAGS += -lnet -lalib |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
12 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
13 CMDS = asm attr backup binex build cmp cobbler copy cputype \ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
14 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
15 display dmem dmode dsave dump echo edit error exbin \ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
16 format free grfdrv help ident iniz irqs link list load login \ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
17 makdir mc09rtc mdir megaread merge mfree minted mmap modpatch montype mpi os9gen padrom park \ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
18 pmap proc procs prompt pwd pxd reboot rename save setime \ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
19 shell_21 sleep smap tee tmode touch tsmon tuneport unlink verify wcreate xmode |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
20 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
21 CMDS_D2 = basic09 runb gfx2 gfx inkey syscall copy del echo format \ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
22 merge os9gen prompt tmode |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
23 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
24 CMDS_DW = inetd dw telnet httpd |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
25 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
26 SHELLMODS = shellplus date deiniz echo iniz link load save unlink |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
27 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
28 UTILPAK1 = attr build copy del deldir dir display list makdir mdir \ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
29 merge mfree procs rename tmode |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
30 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
31 # Files not compilable by os9asm: config |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
32 all: $(CMDS) $(CMDS_D2) $(CMDS_DW) shell utilpak1 $(DEPENDS) |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
33 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
34 runb: runb.asm |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
35 $(AS) $(AFLAGS) $< $(ASOUT)$@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
36 $(MERGE) $@ $(SUBS)>$@.tmp |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
37 $(RM) $@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
38 $(MOVE) $@.tmp $@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
39 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
40 tmode: xmode.asm |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
41 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DTMODE=1 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
42 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
43 xmode: xmode.asm |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
44 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DXMODE=1 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
45 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
46 pwd: pd.asm |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
47 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPWD=1 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
48 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
49 pxd: pd.asm |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
50 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPXD=1 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
51 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
52 shell: $(SHELLMODS) $(DEPENDS) |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
53 $(MERGE) $(SHELLMODS) >$@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
54 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
55 @ls -l $@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
56 @$(ECHO) "" |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
57 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
58 utilpak1: $(UTILPAK1) $(DEPENDS) |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
59 $(MERGE) $(UTILPAK1) >$@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
60 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
61 @ls -l $@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
62 @$(ECHO) "" |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
63 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
64 clean: |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
65 $(RM) shell utilpak1 $(SUBS) $(SHELLMODS) $(CMDS) $(CMDS_D2) $(CMDS_DW) |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
66 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
67 # Only $(CMDS) are shown here |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
68 showobjs: |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
69 @$(ECHO) shell utilpak1 $(CMDS) |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
70 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
71 showobjs_dw: |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
72 @$(ECHO) shell utilpak1 $(sort $(CMDS) $(CMDS_D2) $(CMDS_DW)) |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
73 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
74 showobjs_d2: |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
75 @$(ECHO) $(CMDS_D2) |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
76 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
77 identify: |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
78 $(IDENT_SHORT) $(ALLOBJS) |