annotate level1/d64/makefile @ 2889:0edac6dc70ed

arcadepak/makefile: Fixup the OS9COPY factorization These do the job: sed -i 's#\$(foreach file, \$(\(.*\)), \$(OS9COPY) \(.*\$(file)\) \(.*\)/\$(file);)$#$(OS9COPY) $(foreach file,$(\1),\2) \3#' 3rdparty/packages/arcadepak/makefile sed -i 's#\$(foreach file, \$(\(.*\)), \$(OS9COPY) \(.*\$(file)\) \(.*\)\$(file);)$#$(OS9COPY) $(foreach file,$(\1),\2) \3#' 3rdparty/packages/arcadepak/makefile
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 24 Nov 2013 17:43:47 +0100
parents 46c80d4b0de1
children 1addfd8c9d5f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
1 #
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
2 #level1/d64/makefile
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
3 #
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
4 # 2005-04-24, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
5 # Brought into line with CoCo makefile, for generating disk
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
6 # names baded on CPU/Level/Release number.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
7 #
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
8 #
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
9 # 2005-05-31, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
10 # Added options to specify the step rate of the created
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
11 # floppy devices.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
12 #
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
13 # 2006-01-08, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
14 # Added option to compile for a Dragon 32 that has been upgraded
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
15 # to 64K, this is almost the same as the 64, except that it lacks
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
16 # a serial port.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
17 #
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
18 # 2006-01-08, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
19 # Determined experementally the correct step rate for Dragon Data
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
20 # 5.25" drives, which is 12ms, this is over half the time of the
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
21 # value determined by using dmode under Dragon OS9. It seems that
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
22 # the Dragon OS9 dis driver ignored the value set for stp, and always
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
23 # used 12ms !!!!
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
24 #
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
25 # 2006-01-18, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
26 # Updates to support Tano Dragon 64, using RS-DOS controler.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
27 #
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
28 # 2006-07-06, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
29 # Updated to use new build system, for multiple supported platforms.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
30 #
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
31
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
32 PORT = d64
2758
e4a0f58a5f9b Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents: 2346
diff changeset
33 ifndef NITROS9DIR
e4a0f58a5f9b Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents: 2346
diff changeset
34 NITROS9DIR = $(HOME)/nitros9
e4a0f58a5f9b Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents: 2346
diff changeset
35 endif
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
36 include $(NITROS9DIR)/rules.mak
27b36e424a4d More updates
boisy
parents:
diff changeset
37
27b36e424a4d More updates
boisy
parents:
diff changeset
38 CPU = 6809
27b36e424a4d More updates
boisy
parents:
diff changeset
39 LEVEL = 1
27b36e424a4d More updates
boisy
parents:
diff changeset
40
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
41 # TERMWIDTH can be either VDG or HR, for 32x16 or 51x24 respectivly
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
42 #NOTE must be lower case.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
43 TERMWIDTH = hr
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
44
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
45
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
46 #Default step rate for floppy drives
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
47 #Step can be one of : 0=30ms, 1=20ms, 2=12ms, 3=6ms
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
48 #Note old drives often require 30ms
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
49 #After experimenting with a real Dragon Data 5.25" drive I
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
50 #have determined that the drive will cope with 12ms step.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
51 #Therefore setting this as the default for 32/64 also.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
52 STEP = 2
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
53
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
54 #Is this machine a real 64, or a 32, upgraded to 64K.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
55 #Set to 1 for upgraded machine.
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
56 UPGRADED32 = 0
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
57
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
58 # Level 1 - Specify which shell should be used
27b36e424a4d More updates
boisy
parents:
diff changeset
59 #WHICHSHELL = shellplus
27b36e424a4d More updates
boisy
parents:
diff changeset
60 WHICHSHELL = shell_21
27b36e424a4d More updates
boisy
parents:
diff changeset
61
27b36e424a4d More updates
boisy
parents:
diff changeset
62 DISTRO = $(CPU)L$(LEVEL)
27b36e424a4d More updates
boisy
parents:
diff changeset
63 DISTRONAME = nos9$(CPU)l$(LEVEL)
27b36e424a4d More updates
boisy
parents:
diff changeset
64 DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT)
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
65
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
66 BOOTFILE_COVDG = bootfiles/bootfile_covdg_ds40
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
67 BOOTFILE_COHR = bootfiles/bootfile_cohr_ds40
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
68 BOOTFILE_COVDG_DS80 = bootfiles/bootfile_covdg_ds80
27b36e424a4d More updates
boisy
parents:
diff changeset
69 BOOTFILE_COHR_DS80 = bootfiles/bootfile_cohr_ds80
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
70 BOOTFILE_COVDG_SS40 = bootfiles/bootfile_covdg_ss40
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
71 BOOTFILE_COHR_SS40 = bootfiles/bootfile_cohr_ss40
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
72
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
73 BOOTFILE_DS40 = bootfiles/bootfile_co$(TERMWIDTH)_ds40
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
74 BOOTFILE_DS80 = bootfiles/bootfile_co$(TERMWIDTH)_ds80
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
75 BOOTFILE_SS40 = bootfiles/bootfile_co$(TERMWIDTH)_ss40
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
76
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
77 KERNELFILE = bootfiles/kernel
27b36e424a4d More updates
boisy
parents:
diff changeset
78 DIRS = cmds modules defs sys bootfiles
27b36e424a4d More updates
boisy
parents:
diff changeset
79
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
80 #DIRS = cmds sys
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
81 #modules bootfiles
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
82 #DDIRS = modules bootfiles defs
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
83
2346
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
84 CMDS = $(shell $(CD) cmds; make --no-print-directory showcocoobjs)
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
85 CMDS525 = $(shell $(CD) cmds; make --no-print-directory showdragon525objs)
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
86 CMDS525_2 = $(shell $(CD) cmds; make --no-print-directory showdragon525objs2)
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
87 BOOTTRACK = $(shell $(CD) modules; make --no-print-directory showboottrack)
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
88 KERNEL = $(shell $(CD) modules; make --no-print-directory showkernel)
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
89 SYSMODS = $(shell $(CD) modules; make --no-print-directory showsysmods)
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
90 CLOCKS = $(shell $(CD) modules; make --no-print-directory showclocks)
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
91 RBF = $(shell $(CD) modules; make --no-print-directory showrbf)
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
92 SCF = $(shell $(CD) modules; make --no-print-directory showscf)
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
93 PIPE = $(shell $(CD) modules; make --no-print-directory showpipe)
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
94 MODULECMDS = $(WHICHSHELL) del echo format makdir merge os9gen prompt tmode
27b36e424a4d More updates
boisy
parents:
diff changeset
95
2346
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
96 SYS = $(shell $(CD) sys; make --no-print-directory showobjs)
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
97 DEFS = $(shell $(CD) defs; make --no-print-directory showobjs)
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
98 ROOTFILES = startup
27b36e424a4d More updates
boisy
parents:
diff changeset
99
27b36e424a4d More updates
boisy
parents:
diff changeset
100 PACKAGENAME = $(DISTROVER).zip
27b36e424a4d More updates
boisy
parents:
diff changeset
101 DSK360K_1 = $(DISTROVER)_40d_1.dsk
27b36e424a4d More updates
boisy
parents:
diff changeset
102 LDSK360K_1 = $(DISTRONAME)_40d_1.dsk
27b36e424a4d More updates
boisy
parents:
diff changeset
103 DSK360K_2 = $(DISTROVER)_40d_2.dsk
27b36e424a4d More updates
boisy
parents:
diff changeset
104 LDSK360K_2 = $(DISTRONAME)_40d_2.dsk
27b36e424a4d More updates
boisy
parents:
diff changeset
105 DSK720K = $(DISTROVER)_80d.dsk
27b36e424a4d More updates
boisy
parents:
diff changeset
106 LDSK720K = $(DISTRONAME)_80d.dsk
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
107 #These are for the original SS40 Dragon drives, which still seem to be the most comon :(
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
108 DSK180K_1 = $(DISTROVER)_40s_1.dsk
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
109 DSK180K_2 = $(DISTROVER)_40s_2.dsk
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
110
2217
0e1b2536b299 Updated macro names
boisy
parents: 2216
diff changeset
111 DSKS = $(DSK360K_1) $(DSK360K_2) $(DSK720K) $(DSK180K_1) $(DSK180K_2)
0e1b2536b299 Updated macro names
boisy
parents: 2216
diff changeset
112 LDSKS = $(LDSK360K_1) $(LDSK360K_2) $(LDSK720K) $(LDSK180K_1) $(LDSK180K_2)
0e1b2536b299 Updated macro names
boisy
parents: 2216
diff changeset
113
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
114 # Make all components
27b36e424a4d More updates
boisy
parents:
diff changeset
115 all:
27b36e424a4d More updates
boisy
parents:
diff changeset
116 @$(ECHO) "**************************************************"
27b36e424a4d More updates
boisy
parents:
diff changeset
117 @$(ECHO) "* *"
27b36e424a4d More updates
boisy
parents:
diff changeset
118 @$(ECHO) "* NitrOS-9/6809 Level 1 Dragon 64 Port *"
27b36e424a4d More updates
boisy
parents:
diff changeset
119 @$(ECHO) "* *"
27b36e424a4d More updates
boisy
parents:
diff changeset
120 @$(ECHO) "**************************************************"
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
121 $(foreach dir, $(DIRS), ($(CD) $(dir); make STEP=$(STEP) UPGRADED32=$(UPGRADED32));)
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
122
27b36e424a4d More updates
boisy
parents:
diff changeset
123 # Clean all components
27b36e424a4d More updates
boisy
parents:
diff changeset
124 clean: dskclean
27b36e424a4d More updates
boisy
parents:
diff changeset
125 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);)
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
126
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
127 dskclean:
2217
0e1b2536b299 Updated macro names
boisy
parents: 2216
diff changeset
128 -$(RM) $(PACKAGENAME) $(DSKS) $(LDSKS)
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
129
27b36e424a4d More updates
boisy
parents:
diff changeset
130 dsk: all $(PACKAGENAME)
27b36e424a4d More updates
boisy
parents:
diff changeset
131
27b36e424a4d More updates
boisy
parents:
diff changeset
132 dskcopy: dsk
2217
0e1b2536b299 Updated macro names
boisy
parents: 2216
diff changeset
133 $(CP) $(DSKS) $(DSKDIR)
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
134
27b36e424a4d More updates
boisy
parents:
diff changeset
135 scp: dsk
27b36e424a4d More updates
boisy
parents:
diff changeset
136 scp $(PACKAGENAME) boisy@cvs.nitros9.org:/home/nitros9/public_html
27b36e424a4d More updates
boisy
parents:
diff changeset
137
2217
0e1b2536b299 Updated macro names
boisy
parents: 2216
diff changeset
138 $(PACKAGENAME): $(DSKS) ../../ReadMe ../../ChangeLog
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
139 $(ARCHIVE) $@ $^
27b36e424a4d More updates
boisy
parents:
diff changeset
140
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
141 #Dragon 64/32+
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
142
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
143 $(DSK360K_1):
27b36e424a4d More updates
boisy
parents:
diff changeset
144 $(RM) $@
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
145 $(OS9FORMAT_DS40) -q -dr $@ -n"NitrOS-9/6809 Dragon Level 1 Disk 1"
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
146 $(OS9GEN) $@ -d -b=$(BOOTFILE_DS40) -t=$(KERNELFILE)
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
147 $(MAKDIR) $@,CMDS
27b36e424a4d More updates
boisy
parents:
diff changeset
148 $(MAKDIR) $@,SYS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
149 $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
150 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
151 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
27b36e424a4d More updates
boisy
parents:
diff changeset
152 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
153 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
154 $(MAKDIR) $@,DEFS
27b36e424a4d More updates
boisy
parents:
diff changeset
155 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
156 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
157 $(CPL) $(ROOTFILES) $@,.
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
158 $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
159 $(RM) $(LDSK360K_1)
27b36e424a4d More updates
boisy
parents:
diff changeset
160 $(SOFTLINK) $@ $(LDSK360K_1)
27b36e424a4d More updates
boisy
parents:
diff changeset
161
27b36e424a4d More updates
boisy
parents:
diff changeset
162 $(DSK360K_2):
27b36e424a4d More updates
boisy
parents:
diff changeset
163 $(RM) $@
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
164 $(OS9FORMAT_DS40) -q -dr $@ -n"NitrOS-9/6809 Dragon Level 1 Disk 2"
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
165 $(MAKDIR) $@,NITROS9
27b36e424a4d More updates
boisy
parents:
diff changeset
166 $(MAKDIR) $@,NITROS9/6809L1
27b36e424a4d More updates
boisy
parents:
diff changeset
167 $(MAKDIR) $@,NITROS9/6809L1/CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
168 $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
169 $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/6809L1/CMDS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
170 $(OS9RENAME) $@,NITROS9/6809L1/CMDS//$(WHICHSHELL) shell
27b36e424a4d More updates
boisy
parents:
diff changeset
171 $(MAKDIR) $@,NITROS9/6809L1/MODULES
27b36e424a4d More updates
boisy
parents:
diff changeset
172 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
173 $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
174 $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
175 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
176 $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
177 $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/6809L1/MODULES/KERNEL/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
178 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
179 $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
180 $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/6809L1/MODULES/SYSMODS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
181 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
182 $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
183 $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/6809L1/MODULES/CLOCKS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
184 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
185 $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
186 $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/6809L1/MODULES/RBF/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
187 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
188 $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
189 $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/6809L1/MODULES/SCF/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
190 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
191 $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
192 $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/6809L1/MODULES/PIPE/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
193 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS
27b36e424a4d More updates
boisy
parents:
diff changeset
194 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS
27b36e424a4d More updates
boisy
parents:
diff changeset
195 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS
27b36e424a4d More updates
boisy
parents:
diff changeset
196 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS
27b36e424a4d More updates
boisy
parents:
diff changeset
197 $(RM) $(LDSK360K_2)
27b36e424a4d More updates
boisy
parents:
diff changeset
198 $(SOFTLINK) $@ $(LDSK360K_2)
27b36e424a4d More updates
boisy
parents:
diff changeset
199
27b36e424a4d More updates
boisy
parents:
diff changeset
200 $(DSK720K):
27b36e424a4d More updates
boisy
parents:
diff changeset
201 $(RM) $@
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
202 $(OS9FORMAT_DS80) -q -dr -c2 $@ -n"NitrOS-9/6809 Dragon Level 1"
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
203 $(OS9GEN) $@ -d -b=$(BOOTFILE_DS80) -t=$(KERNELFILE)
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
204 $(MAKDIR) $@,CMDS
27b36e424a4d More updates
boisy
parents:
diff changeset
205 $(MAKDIR) $@,SYS
27b36e424a4d More updates
boisy
parents:
diff changeset
206 $(MAKDIR) $@,DEFS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
207 $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
208 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
209 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
27b36e424a4d More updates
boisy
parents:
diff changeset
210 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
211 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
212 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
213 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
214 $(CPL) $(ROOTFILES) $@,.
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
215 $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
216 $(MAKDIR) $@,NITROS9
27b36e424a4d More updates
boisy
parents:
diff changeset
217 $(MAKDIR) $@,NITROS9/6809L1
27b36e424a4d More updates
boisy
parents:
diff changeset
218 $(MAKDIR) $@,NITROS9/6809L1/CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
219 $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
220 $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/6809L1/CMDS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
221 $(OS9RENAME) $@,NITROS9/6809L1/CMDS/$(WHICHSHELL) shell
27b36e424a4d More updates
boisy
parents:
diff changeset
222 $(MAKDIR) $@,NITROS9/6809L1/MODULES
27b36e424a4d More updates
boisy
parents:
diff changeset
223 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
224 $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
225 $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
226 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
227 $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
228 $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/6809L1/MODULES/KERNEL/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
229 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
230 $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
231 $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/6809L1/MODULES/SYSMODS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
232 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
233 $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
234 $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/6809L1/MODULES/CLOCKS/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
235 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
236 $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
237 $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/6809L1/MODULES/RBF/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
238 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
239 $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
240 $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/6809L1/MODULES/SCF/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
241 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
242 $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
243 $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/6809L1/MODULES/PIPE/$(file))
2058
27b36e424a4d More updates
boisy
parents:
diff changeset
244 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS
27b36e424a4d More updates
boisy
parents:
diff changeset
245 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS
27b36e424a4d More updates
boisy
parents:
diff changeset
246 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS
27b36e424a4d More updates
boisy
parents:
diff changeset
247 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS
27b36e424a4d More updates
boisy
parents:
diff changeset
248 $(RM) $(LDSK720K)
27b36e424a4d More updates
boisy
parents:
diff changeset
249 $(SOFTLINK) $@ $(LDSK720K)
27b36e424a4d More updates
boisy
parents:
diff changeset
250
27b36e424a4d More updates
boisy
parents:
diff changeset
251
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
252 $(DSK180K_1):
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
253 $(RM) $@
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
254 $(OS9FORMAT_SS40) -e -dr -q $@ -n"NitrOS-9/6809/Dragon Level 1 Disk 1"
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
255 $(OS9GEN) $@ -d -b=$(BOOTFILE_SS40) -t=$(KERNELFILE)
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
256 $(MAKDIR) $@,CMDS
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
257 $(MAKDIR) $@,SYS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
258 $(CD) cmds; $(OS9COPY) $(CMDS525) ../$@,CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
259 $(OS9ATTR_EXEC) $(foreach file,$(CMDS525),$@,CMDS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
260 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
261 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
262 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
263 $(MAKDIR) $@,DEFS
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
264 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
265 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
266 $(CPL) $(ROOTFILES) $@,.
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
267 $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file))
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
268 $(CPL) $(STARTUP) $@,startup
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
269 $(OS9ATTR_TEXT) $@,startup
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
270
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
271 $(DSK180K_2):
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
272 $(RM) $@
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
273 $(OS9FORMAT_SS40) -e -dr -q $@ -n"NitrOS-9/6809/Dragon Level 1 Disk 2"
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
274 $(MAKDIR) $@,CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
275 $(CD) cmds; $(OS9COPY) $(CMDS525_2) ../$@,CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
276 $(OS9ATTR_EXEC) $(foreach file,$(CMDS525_2),$@,CMDS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents: 2058
diff changeset
277
2216
d096a278e068 Added info targets
boisy
parents: 2199
diff changeset
278 info:
d096a278e068 Added info targets
boisy
parents: 2199
diff changeset
279 @$(ECHO) "*** NitrOS-9/6809 Level 1 for the Dragon 64 ***"
2217
0e1b2536b299 Updated macro names
boisy
parents: 2216
diff changeset
280 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)