annotate level1/makefile.cust @ 1746:5469aad825d7

*** empty log message ***
author robert
date Fri, 28 Jan 2005 00:22:49 +0000
parents 872af387c477
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1545
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
1 include ../rules.mak
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
2
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
3 RELEASE = nos96809l1cust
1577
872af387c477 Slight changes
boisy
parents: 1545
diff changeset
4 BOOTFILE = bootfiles/bootfile_cust
1545
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
5 KERNELFILE = bootfiles/kernel_drivewire
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
6 DIRS = cmds modules defs sys bootfiles
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
7
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
8 # Specify which shell should be used
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
9 #WHICHSHELL = shellplus
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
10 WHICHSHELL = shell_21
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
11
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
12 CMDS = $(shell $(CD) cmds; make showcocoobjs)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
13 BOOTTRACK = $(shell $(CD) modules; make showboottrack)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
14 KERNEL = $(shell $(CD) modules; make showkernel)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
15 SYSMODS = $(shell $(CD) modules; make showsysmods)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
16 CLOCKS = $(shell $(CD) modules; make showclocks)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
17 RBF = $(shell $(CD) modules; make showrbf)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
18 SCF = $(shell $(CD) modules; make showscf)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
19 PIPE = $(shell $(CD) modules; make showpipe)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
20 MODULECMDS = shell del echo format makdir merge os9gen prompt
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
21
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
22 SYS = $(shell $(CD) sys; make showobjs)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
23 DEFS = $(shell $(CD) defs; make showobjs)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
24 ROOTFILES = startup
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
25
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
26 PACKAGENAME = $(RELEASE).zip
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
27 DSK720K = $(RELEASE).dsk
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
28
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
29
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
30 # Make all components
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
31 all:
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
32 @$(ECHO) "**************************************************"
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
33 @$(ECHO) "* *"
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
34 @$(ECHO) "* NitrOS-9/6809 Level 1 Distribution *"
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
35 @$(ECHO) "* *"
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
36 @$(ECHO) "**************************************************"
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
37 $(foreach dir, $(DIRS), ($(CD) $(dir); make);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
38
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
39 # Clean all components
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
40 clean: dskclean
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
41 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
42
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
43 dskclean:
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
44 -$(RM) $(DSK720K)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
45
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
46 dsk: all $(DSK720K)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
47
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
48 $(DSK720K):
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
49 $(RM) $@
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
50 $(OS9FORMAT) -l32768 -q $@ -n"NitrOS-9/6809 Level 1"
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
51 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
52 $(MAKDIR) $@,CMDS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
53 $(MAKDIR) $@,SYS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
54 $(MAKDIR) $@,DEFS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
55 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
56 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
57 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
58 $(CD) sys; $(CPL) $(SYS) ../$@,SYS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
59 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
60 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
61 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
62 $(CPL) $(ROOTFILES) $@,.
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
63 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
64 $(MAKDIR) $@,NITROS9
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
65 $(MAKDIR) $@,NITROS9/6809L1
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
66 $(MAKDIR) $@,NITROS9/6809L1/CMDS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
67 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
68 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
69 $(MAKDIR) $@,NITROS9/6809L1/MODULES
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
70 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
71 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
72 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
73 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
74 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
75 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
76 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
77 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
78 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
79 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
80 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
81 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
82 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
83 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
84 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
85 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
86 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
87 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
88 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
89 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
90 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);)
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
91 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
92 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
93 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
94 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS
cede3ed866bb Added custom makefile
boisy
parents:
diff changeset
95