annotate level1/dalpha/makefile @ 3040:3f25a36416a3

Dragon makefiles: Small cleanups
author Tormod Volden <debian.tormod@gmail.com>
date Fri, 23 Jan 2015 22:04:12 +0100
parents 542da7896526
children c2030762022b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
1 #
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
2 #level1/dalpha/makefile
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
3 #
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
4 # 2005-04-24, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
5 # Brought into line with CoCo makefile, for generating disk
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
6 # names baded on CPU/Level/Release number.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
7 #
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
8 #
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
9 # 2005-05-31, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
10 # Added options to specify the step rate of the created
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
11 # floppy devices.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
12 #
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
13 # 2006-01-08, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
14 # Added option to compile for a Dragon 32 that has been upgraded
56f966b82dc4 Update for new build system
afra
parents:
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:
diff changeset
16 # a serial port.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
17 #
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
18 # 2006-01-08, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
19 # Determined experementally the correct step rate for Dragon Data
56f966b82dc4 Update for new build system
afra
parents:
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:
diff changeset
21 # value determined by using dmode under Dragon OS9. It seems that
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
22 # the Dragon OS9 dis driver ignored the value set for stp, and always
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
23 # used 12ms !!!!
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
24 #
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
25 # 2006-01-18, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
26 # Updates to support Tano Dragon 64, using RS-DOS controler.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
27 #
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
28 # 2006-07-06, P.Harvey-Smith.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
29 # Updated to use new build system, for multiple supported platforms.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
30 #
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
31
2905
bd215b95cd59 Makefiles: Do not set PORT since port.mak does it
Tormod Volden <debian.tormod@gmail.com>
parents: 2904
diff changeset
32 include port.mak
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
33
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
34 # TERMWIDTH can be either VDG or HR, for 32x16 or 51x24 respectivly
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
35 #NOTE must be lower case.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
36 TERMWIDTH = hr
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
37
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
38
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
39 #Default step rate for floppy drives
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
40 #Step can be one of : 0=30ms, 1=20ms, 2=12ms, 3=6ms
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
41 #Note old drives often require 30ms
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
42 #After experimenting with a real Dragon Data 5.25" drive I
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
43 #have determined that the drive will cope with 12ms step.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
44 #Therefore setting this as the default for 32/64 also.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
45 STEP = 2
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
46
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
47 #Is this machine a real 64, or a 32, upgraded to 64K.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
48 #Set to 1 for upgraded machine.
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
49 UPGRADED32 = 0
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
50
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
51 # Level 1 - Specify which shell should be used
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
52 #WHICHSHELL = shellplus
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
53 WHICHSHELL = shell_21
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
54
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
55 DISTRO = $(CPU)L$(LEVEL)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
56 DISTRONAME = nos9$(CPU)l$(LEVEL)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
57 DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
58
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
59 BOOTFILE_COVDG = bootfiles/bootfile_covdg_ss80
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
60 BOOTFILE_COHR = bootfiles/bootfile_cohr_ss80
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
61 BOOTFILE_COVDG_DS80 = bootfiles/bootfile_covdg_ds80
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
62 BOOTFILE_COHR_DS80 = bootfiles/bootfile_cohr_ds80
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
63
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
64 BOOTFILE_SS80 = bootfiles/bootfile_co$(TERMWIDTH)_ss80
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
65 BOOTFILE_DS80 = bootfiles/bootfile_co$(TERMWIDTH)_ds80
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
66
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
67 KERNELFILE = bootfiles/kernel
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
68 DIRS = cmds modules defs sys bootfiles
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
69
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
70 #DIRS = cmds sys
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
71 #modules bootfiles
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
72 #DDIRS = modules bootfiles defs
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
73
2346
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
74 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
75 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
76 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
77 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
78 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
79 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
80 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
81 PIPE = $(shell $(CD) modules; make --no-print-directory showpipe)
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
82 MODULECMDS = $(WHICHSHELL) del echo format makdir merge os9gen prompt tmode
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
83
2346
fb1c0a45f28e Fix for /bin/sh: command substitution: line 0: unexpected EOF
chawks4
parents: 2217
diff changeset
84 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
85 DEFS = $(shell $(CD) defs; make --no-print-directory showobjs)
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
86 ROOTFILES = startup
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
87
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
88 PACKAGENAME = $(DISTROVER).zip
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
89 DSK360K_1 = $(DISTROVER)_80s_1.dsk
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
90 LDSK360K_1 = $(DISTRONAME)_80s_1.dsk
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
91 DSK360K_2 = $(DISTROVER)_80s_2.dsk
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
92 LDSK360K_2 = $(DISTRONAME)_80s_2.dsk
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
93 DSK720K = $(DISTROVER)_80d.dsk
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
94 LDSK720K = $(DISTRONAME)_80d.dsk
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
95
2217
0e1b2536b299 Updated macro names
boisy
parents: 2216
diff changeset
96 DSKS = $(DSK360K_1) $(DSK360K_2) $(DSK720K)
2742
f9a8ae065f80 Found LDSKS label was missing from level1/dalpha/makefile and was causing a problem with the disk images not being removed on a "make clean".
drencor-xeen
parents: 2346
diff changeset
97 LDSKS = $(LDSK360K_1) $(LDSK360K_2) $(LDSK720K)
2216
d096a278e068 Added info targets
boisy
parents: 2199
diff changeset
98
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
99 # Make all components
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
100 all:
2904
62c91ac49d72 Make the banners print what we are compiling for
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
101 @$(ECHO) "************************************************************"
62c91ac49d72 Make the banners print what we are compiling for
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
102 @$(ECHO) "*"
62c91ac49d72 Make the banners print what we are compiling for
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
103 @$(ECHO) "* NitrOS-9/$(CPU) Level $(LEVEL) $(MACHINE) ($(PORT))"
62c91ac49d72 Make the banners print what we are compiling for
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
104 @$(ECHO) "*"
62c91ac49d72 Make the banners print what we are compiling for
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
105 @$(ECHO) "************************************************************"
3040
3f25a36416a3 Dragon makefiles: Small cleanups
Tormod Volden <debian.tormod@gmail.com>
parents: 2919
diff changeset
106 $(foreach dir,$(DIRS),$(MAKE) -C $(dir) STEP=$(STEP) UPGRADED32=$(UPGRADED32) &&) :
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
107
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
108 # Clean all components
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
109 clean: dskclean
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
110 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
111
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
112 dskclean:
2835
c1892376e7a7 Makefiles: Do not let $(RM) silently fail
Tormod Volden <debian.tormod@gmail.com>
parents: 2742
diff changeset
113 $(RM) $(PACKAGENAME) $(DSKS) $(LDSKS)
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
114
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
115 dsk: all $(PACKAGENAME)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
116
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
117 dskcopy: dsk
2217
0e1b2536b299 Updated macro names
boisy
parents: 2216
diff changeset
118 $(CP) $(DSKS) $(DSKDIR)
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
119
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
120 scp: dsk
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
121 scp $(PACKAGENAME) boisy@cvs.nitros9.org:/home/nitros9/public_html
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
122
2217
0e1b2536b299 Updated macro names
boisy
parents: 2216
diff changeset
123 $(PACKAGENAME): $(DSKS) ../../ReadMe ../../ChangeLog
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
124 $(ARCHIVE) $@ $^
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
125
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
126 #Dragon Alpha internal drives are Single sided 80 track
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
127
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
128 $(DSK360K_1):
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
129 $(RM) $@
2919
542da7896526 d64/dalpha: Use variables from ports.mak in makefile
Tormod Volden <debian.tormod@gmail.com>
parents: 2905
diff changeset
130 $(OS9FORMAT_SS80) -q -dr $@ -n"NitrOS-9/$(CPU) $(MACHINE) #1"
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
131 $(OS9GEN) $@ -d -b=$(BOOTFILE_SS80) -t=$(KERNELFILE)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
132 $(MAKDIR) $@,CMDS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
133 $(MAKDIR) $@,SYS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
134 $(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
135 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
136 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
137 $(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
138 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
139 $(MAKDIR) $@,DEFS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
140 $(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
141 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
142 $(CPL) $(ROOTFILES) $@,.
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
143 $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
144 $(RM) $(LDSK360K_1)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
145 $(SOFTLINK) $@ $(LDSK360K_1)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
146
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
147 $(DSK360K_2):
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
148 $(RM) $@
2919
542da7896526 d64/dalpha: Use variables from ports.mak in makefile
Tormod Volden <debian.tormod@gmail.com>
parents: 2905
diff changeset
149 $(OS9FORMAT_SS80) -q -dr $@ -n"NitrOS-9/$(CPU) $(MACHINE) #2"
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
150 $(MAKDIR) $@,NITROS9
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
151 $(MAKDIR) $@,NITROS9/6809L1
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
152 $(MAKDIR) $@,NITROS9/6809L1/CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
153 $(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
154 $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/6809L1/CMDS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
155 $(OS9RENAME) $@,NITROS9/6809L1/CMDS//$(WHICHSHELL) shell
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
156 $(MAKDIR) $@,NITROS9/6809L1/MODULES
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
157 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
158 $(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
159 $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
160 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
161 $(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
162 $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/6809L1/MODULES/KERNEL/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
163 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
164 $(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
165 $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/6809L1/MODULES/SYSMODS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
166 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
167 $(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
168 $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/6809L1/MODULES/CLOCKS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
169 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
170 $(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
171 $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/6809L1/MODULES/RBF/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
172 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
173 $(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
174 $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/6809L1/MODULES/SCF/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
175 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
176 $(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
177 $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/6809L1/MODULES/PIPE/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
178 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
179 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
180 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
181 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
182 $(RM) $(LDSK360K_2)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
183 $(SOFTLINK) $@ $(LDSK360K_2)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
184
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
185 $(DSK720K):
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
186 $(RM) $@
2919
542da7896526 d64/dalpha: Use variables from ports.mak in makefile
Tormod Volden <debian.tormod@gmail.com>
parents: 2905
diff changeset
187 $(OS9FORMAT_DS80) -q -dr -c2 $@ -n"NitrOS-9/$(CPU) $(MACHINE)"
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
188 $(OS9GEN) $@ -d -b=$(BOOTFILE_DS80) -t=$(KERNELFILE)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
189 $(MAKDIR) $@,CMDS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
190 $(MAKDIR) $@,SYS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
191 $(MAKDIR) $@,DEFS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
192 $(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
193 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
194 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
195 $(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
196 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
197 $(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
198 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
199 $(CPL) $(ROOTFILES) $@,.
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
200 $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
201 $(MAKDIR) $@,NITROS9
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
202 $(MAKDIR) $@,NITROS9/6809L1
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
203 $(MAKDIR) $@,NITROS9/6809L1/CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
204 $(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
205 $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/6809L1/CMDS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
206 $(OS9RENAME) $@,NITROS9/6809L1/CMDS/$(WHICHSHELL) shell
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
207 $(MAKDIR) $@,NITROS9/6809L1/MODULES
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
208 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
209 $(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
210 $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
211 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
212 $(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
213 $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/6809L1/MODULES/KERNEL/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
214 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
215 $(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
216 $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/6809L1/MODULES/SYSMODS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
217 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
218 $(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
219 $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/6809L1/MODULES/CLOCKS/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
220 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
221 $(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
222 $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/6809L1/MODULES/RBF/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
223 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
224 $(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
225 $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/6809L1/MODULES/SCF/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
226 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
227 $(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
228 $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/6809L1/MODULES/PIPE/$(file))
2101
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
229 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
230 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
231 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
232 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
233 $(RM) $(LDSK720K)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
234 $(SOFTLINK) $@ $(LDSK720K)
56f966b82dc4 Update for new build system
afra
parents:
diff changeset
235
2216
d096a278e068 Added info targets
boisy
parents: 2199
diff changeset
236 info:
2919
542da7896526 d64/dalpha: Use variables from ports.mak in makefile
Tormod Volden <debian.tormod@gmail.com>
parents: 2905
diff changeset
237 @$(ECHO) "*** NitrOS-9/$(CPU) Level $(LEVEL) for the $(MACHINE) ***"
2217
0e1b2536b299 Updated macro names
boisy
parents: 2216
diff changeset
238 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)