Mercurial > hg > Members > kono > nitros9-code
annotate level2/coco3/cmds/makefile @ 3295:6b7a7b233925 default tip
makefile: Allow PORTS with level1/2 mix
https://sourceforge.net/p/nitros9/feature-requests/10/
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Tue, 19 Apr 2022 18:12:17 +0200 |
parents | 024ad1d926fd |
children |
rev | line source |
---|---|
3135
5095f2b3c81a
coco3: Use port.mak correctly in makefiles
Tormod Volden <debian.tormod@gmail.com>
parents:
3052
diff
changeset
|
1 include ../port.mak |
2890
1addfd8c9d5f
Revert e4a0f58a5f9b (set NITROS9DIR in makefiles)
Tormod Volden <debian.tormod@gmail.com>
parents:
2769
diff
changeset
|
2 |
2783
03f26e88b809
Renamed files and setup for lwasm/lwlink work
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2782
diff
changeset
|
3 vpath %.as $(LEVEL2)/cmds:$(LEVEL1)/cmds |
3039
66963ae41cb6
makefiles: Use 3RDPARTY variable consistently
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
4 vpath %.asm $(LEVEL2)/cmds:$(LEVEL1)/cmds:$(3RDPARTY)/packages/basic09 |
2048 | 5 |
6 DEPENDS = ./makefile | |
3039
66963ae41cb6
makefiles: Use 3RDPARTY variable consistently
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
7 AFLAGS += --includedir=$(3RDPARTY)/packages/basic09 |
3267
024ad1d926fd
Get gfx2 to build from cmds folders
Tormod Volden <debian.tormod@gmail.com>
parents:
3135
diff
changeset
|
8 AFLAGS += --includedir=../defs |
2801
9ffe2daeb011
Reworked libraries to adhere to lwlink's naming specifications
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2791
diff
changeset
|
9 LFLAGS += -L$(NITROS9DIR)/lib |
2791
0df4a4590bc6
Updated level2/coco3/cmds/makefile to set correct lib file based on H6309 tag.
drencor-xeen
parents:
2783
diff
changeset
|
10 ifdef H6309 |
2806
2eefe79fafe4
Fixed makefiles for new libs
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2801
diff
changeset
|
11 LFLAGS += -lcoco3_6309 |
2791
0df4a4590bc6
Updated level2/coco3/cmds/makefile to set correct lib file based on H6309 tag.
drencor-xeen
parents:
2783
diff
changeset
|
12 else |
2806
2eefe79fafe4
Fixed makefiles for new libs
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2801
diff
changeset
|
13 LFLAGS += -lcoco3 |
2791
0df4a4590bc6
Updated level2/coco3/cmds/makefile to set correct lib file based on H6309 tag.
drencor-xeen
parents:
2783
diff
changeset
|
14 endif |
2806
2eefe79fafe4
Fixed makefiles for new libs
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2801
diff
changeset
|
15 LFLAGS += -lnet -lalib |
2048 | 16 |
17 CMDS = asm attr backup binex build cmp cobbler copy cputype \ | |
18 date dcheck debug ded deiniz del deldir devs dir dirsort disasm \ | |
19 display dmem dmode dsave dump echo edit error exbin \ | |
20 format free grfdrv help ident iniz irqs link list load login \ | |
2832 | 21 makdir mdir megaread merge mfree minted 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
|
22 pmap proc procs prompt pwd pxd reboot rename save setime \ |
2880
0d9bbad2d398
coco3/makefile: Remove spurious space in CMDS list
Tormod Volden <debian.tormod@gmail.com>
parents:
2854
diff
changeset
|
23 shell_21 sleep smap tee tmode touch tsmon tuneport unlink verify wcreate xmode |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
24 |
2159 | 25 CMDS_D2 = basic09 runb gfx2 gfx inkey syscall copy del echo format \ |
2268 | 26 merge os9gen prompt tmode |
27 | |
2823
ad769d2a03e4
New httpd in assembly
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2812
diff
changeset
|
28 CMDS_DW = inetd dw telnet httpd |
2476 | 29 |
2048 | 30 SHELLMODS = shellplus date deiniz echo iniz link load save unlink |
2812
1f47bdb9f356
Added new utils section in 3rdparty and updated makefile(s)
David Ladd <drencor-xeen@users.sf.net>
parents:
2806
diff
changeset
|
31 |
2048 | 32 UTILPAK1 = attr build copy del deldir dir display list makdir mdir \ |
33 merge mfree procs rename tmode | |
34 | |
35 # Files not compilable by os9asm: config | |
2476 | 36 all: $(CMDS) $(CMDS_D2) $(CMDS_DW) shell utilpak1 $(DEPENDS) |
2048 | 37 |
38 runb: runb.asm | |
3052
39bca9937f7b
level2/3 makefile: Remove unused PWD flag from runb target
Tormod Volden <debian.tormod@gmail.com>
parents:
3039
diff
changeset
|
39 $(AS) $(AFLAGS) $< $(ASOUT)$@ |
2048 | 40 $(MERGE) $@ $(SUBS)>$@.tmp |
41 $(RM) $@ | |
42 $(MOVE) $@.tmp $@ | |
43 | |
44 tmode: xmode.asm | |
2667
9da050947330
Additional modifications to build with lwasm
William Astle <lost@l-w.ca>
parents:
2483
diff
changeset
|
45 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DTMODE=1 |
2048 | 46 |
47 xmode: xmode.asm | |
2667
9da050947330
Additional modifications to build with lwasm
William Astle <lost@l-w.ca>
parents:
2483
diff
changeset
|
48 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DXMODE=1 |
2048 | 49 |
50 pwd: pd.asm | |
2667
9da050947330
Additional modifications to build with lwasm
William Astle <lost@l-w.ca>
parents:
2483
diff
changeset
|
51 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPWD=1 |
2048 | 52 |
53 pxd: pd.asm | |
2667
9da050947330
Additional modifications to build with lwasm
William Astle <lost@l-w.ca>
parents:
2483
diff
changeset
|
54 $(AS) $(AFLAGS) $< $(ASOUT)$@ -DPXD=1 |
2048 | 55 |
56 shell: $(SHELLMODS) $(DEPENDS) | |
2812
1f47bdb9f356
Added new utils section in 3rdparty and updated makefile(s)
David Ladd <drencor-xeen@users.sf.net>
parents:
2806
diff
changeset
|
57 $(MERGE) $(SHELLMODS) >$@ |
2048 | 58 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" |
59 @ls -l $@ | |
60 @$(ECHO) "" | |
61 | |
62 utilpak1: $(UTILPAK1) $(DEPENDS) | |
2812
1f47bdb9f356
Added new utils section in 3rdparty and updated makefile(s)
David Ladd <drencor-xeen@users.sf.net>
parents:
2806
diff
changeset
|
63 $(MERGE) $(UTILPAK1) >$@ |
2048 | 64 @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" |
65 @ls -l $@ | |
66 @$(ECHO) "" | |
67 | |
68 clean: | |
2480 | 69 $(RM) shell utilpak1 $(SUBS) $(SHELLMODS) $(CMDS) $(CMDS_D2) $(CMDS_DW) |
2048 | 70 |
71 # Only $(CMDS) are shown here | |
72 showobjs: | |
73 @$(ECHO) shell utilpak1 $(CMDS) | |
74 | |
2483 | 75 showobjs_dw: |
2854
87130746d4d9
Makefiles: Avoid duplicates in command sets to copy
Tormod Volden <debian.tormod@gmail.com>
parents:
2832
diff
changeset
|
76 @$(ECHO) shell utilpak1 $(sort $(CMDS) $(CMDS_D2) $(CMDS_DW)) |
2483 | 77 |
2105
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
78 showobjs_d2: |
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
79 @$(ECHO) $(CMDS_D2) |
d5824ed9c767
Makefile now makes basic09/runb stuff, copies to disk 2 for 40TDS
boisy
parents:
2050
diff
changeset
|
80 |
2048 | 81 identify: |
82 $(IDENT_SHORT) $(ALLOBJS) |