Mercurial > hg > Members > kono > nitros9-code
annotate level2/mc09l2/cmds/makefile @ 3267:024ad1d926fd
Get gfx2 to build from cmds folders
Now that gfx2.asm needs to include coco3vtio.d the latter needs to be
built first and be accessed from the port-specific defs folder.
OTOH the one built in 3rd-party/packages/basic09 is built only later
during a full build.
(All the different defs folders and .d files still puzzle me.)
Also updated coco3fpga/defs/makefile to be based on the coco3 one.
The mc09l2 port doesn't need gfx and gfx2.
Note for later:
This whole build of basic09 components from the 3rdparty folder
during the ports builds is not very nice. At a minimum we should
try to limit the extra --includedir to the few commands needing it.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Wed, 17 Jul 2019 01:14:55 +0200 |
parents | e1aadba01e81 |
children |
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 |
3267
024ad1d926fd
Get gfx2 to build from cmds folders
Tormod Volden <debian.tormod@gmail.com>
parents:
3131
diff
changeset
|
9 AFLAGS += --includedir=../defs |
3131
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
10 LFLAGS += -L$(NITROS9DIR)/lib |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
11 LFLAGS += -lmc09 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
12 LFLAGS += -lnet -lalib |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
13 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
14 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
|
15 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
|
16 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
|
17 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
|
18 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
|
19 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
|
20 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
|
21 |
3267
024ad1d926fd
Get gfx2 to build from cmds folders
Tormod Volden <debian.tormod@gmail.com>
parents:
3131
diff
changeset
|
22 CMDS_D2 = basic09 runb inkey syscall copy del echo format \ |
3131
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
23 merge os9gen prompt tmode |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
24 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
25 CMDS_DW = inetd dw telnet httpd |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
26 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
27 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
|
28 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
29 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
|
30 merge mfree procs rename tmode |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
31 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
32 # Files not compilable by os9asm: config |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
33 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
|
34 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
35 runb: runb.asm |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
36 $(AS) $(AFLAGS) $< $(ASOUT)$@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
37 $(MERGE) $@ $(SUBS)>$@.tmp |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
38 $(RM) $@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
39 $(MOVE) $@.tmp $@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
40 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
41 tmode: xmode.asm |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
42 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DTMODE=1 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
43 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
44 xmode: xmode.asm |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
45 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DXMODE=1 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
46 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
47 pwd: pd.asm |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
48 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPWD=1 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
49 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
50 pxd: pd.asm |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
51 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPXD=1 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
52 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
53 shell: $(SHELLMODS) $(DEPENDS) |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
54 $(MERGE) $(SHELLMODS) >$@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
55 @$(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
|
56 @ls -l $@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
57 @$(ECHO) "" |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
58 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
59 utilpak1: $(UTILPAK1) $(DEPENDS) |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
60 $(MERGE) $(UTILPAK1) >$@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
61 @$(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
|
62 @ls -l $@ |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
63 @$(ECHO) "" |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
64 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
65 clean: |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
66 $(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
|
67 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
68 # Only $(CMDS) are shown here |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
69 showobjs: |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
70 @$(ECHO) shell utilpak1 $(CMDS) |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
71 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
72 showobjs_dw: |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
73 @$(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
|
74 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
75 showobjs_d2: |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
76 @$(ECHO) $(CMDS_D2) |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
77 |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
78 identify: |
e1aadba01e81
Add new Level 2 port for Multicomp09 "mc09l2"
Neal Crook <foofoobedoo@gmail.com>
parents:
diff
changeset
|
79 $(IDENT_SHORT) $(ALLOBJS) |