Mercurial > hg > Members > kono > nitros9-code
annotate level1/corsham/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 | 4393a2b5b9a0 |
children |
rev | line source |
---|---|
3182
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
1 include port.mak |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
2 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
3 # Level 1 - Specify which shell should be used |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
4 #WHICHSHELL = shellplus |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
5 WHICHSHELL = shell_21 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
6 |
3251
4393a2b5b9a0
Revert introduction of underscore in DISTRO folders on disks.
Tormod Volden <debian.tormod@gmail.com>
parents:
3205
diff
changeset
|
7 DISTRO = $(CPU)L$(LEVEL) |
3185
4d6cfe82ac3c
Add an underscore between each section of disk image names
Bill Pierce <merlinious999@gmail.com>
parents:
3183
diff
changeset
|
8 DISTRONAME = NOS9_$(CPU)_L$(LEVEL) |
4d6cfe82ac3c
Add an underscore between each section of disk image names
Bill Pierce <merlinious999@gmail.com>
parents:
3183
diff
changeset
|
9 DISTROVER = $(DISTRONAME)_$(NITROS9VER)_$(PORT) |
3182
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
10 BOOTFILE = bootfiles/bootfile |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
11 DIRS = cmds modules defs sys bootfiles |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
12 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
13 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
14 CMDS = $(shell $(CD) cmds; make --no-print-directory showobjs) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
15 CMDS_DEMO = $(shell $(CD) cmds; make --no-print-directory showobjs_demo) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
16 SYS = $(shell $(CD) sys; make --no-print-directory showobjs) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
17 DEFS = $(shell $(CD) defs; make --no-print-directory showobjs) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
18 STARTUP = startup |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
19 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
20 DSK = $(DISTROVER).dsk |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
21 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
22 DSKS = $(DSK) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
23 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
24 # Make all components |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
25 all: |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
26 @$(ECHO) "************************************************************" |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
27 @$(ECHO) "*" |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
28 @$(ECHO) "* NitrOS-9/$(CPU) Level $(LEVEL) $(MACHINE) ($(PORT))" |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
29 @$(ECHO) "*" |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
30 @$(ECHO) "************************************************************" |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
31 $(foreach dir,$(DIRS),$(MAKE) -C $(dir) &&) : |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
32 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
33 # Clean all components |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
34 clean: dskclean |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
35 $(foreach dir,$(DIRS),$(MAKE) -C $(dir) clean &&) : |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
36 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
37 dskclean: |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
38 $(RM) $(DSKS) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
39 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
40 dsk: all $(DSKS) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
41 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
42 copyToSDAndEject: $(DSK) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
43 $(CP) $(DSK) /Volumes/CORSHAM/NOS9.DSK |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
44 diskutil eject /Volumes/CORSHAM |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
45 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
46 dskcopy: $(DSKS) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
47 $(CP) $(DSKS) $(DSKDIR) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
48 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
49 $(DSK): |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
50 $(RM) $@ |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
51 $(OS9FORMAT_DW) -e -q $@ -n"NitrOS-9/$(CPU) Level 1" |
3205
e85fdf0e52ae
corsham,atari: Include OS9GEN in disk image creation
Tormod Volden <debian.tormod@gmail.com>
parents:
3185
diff
changeset
|
52 $(OS9GEN) $@ -b=$(BOOTFILE) |
3182
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
53 $(MAKDIR) $@,CMDS |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
54 $(MAKDIR) $@,SYS |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
55 $(MAKDIR) $@,DEFS |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
56 $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
57 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
58 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
59 $(CD) sys; $(CPL) $(SYS) ../$@,SYS |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
60 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file)) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
61 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
62 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
63 $(CPL) $(STARTUP) $@,startup |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
64 $(OS9ATTR_TEXT) $@,startup |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
65 |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
66 info: |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
67 @$(ECHO) "*** NitrOS-9/6809 Level 1 for the Corsham 6809 SS-50 ***" |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
68 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |
185c31229f22
Add level1 corsham port for the Corsham 6809 System
Boisy Pitre <coco@toughmac.com>
parents:
diff
changeset
|
69 |