annotate 3rdparty/customboots/boisy/makefile @ 2958:77500452de1c

bootman: Rename assembler files to .as
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 09 Feb 2014 22:53:29 +0100
parents 28ed72477814
children 66963ae41cb6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2847
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
1 # NitrOS-9/6809 Level 2 bootfile for a 128K CoCo 3 with a Motorola 6809
2372
bfb8eefc19e1 Renamed S$Peer to S$HUP
boisy
parents: 2369
diff changeset
2 # For Boisy's thesis work
bfb8eefc19e1 Renamed S$Peer to S$HUP
boisy
parents: 2369
diff changeset
3
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
4 include $(NITROS9DIR)/rules.mak
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
5
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
6 vpath %.asm ../../../utils/boisy:..:$(LEVEL2)/cmds:$(LEVEL1)/cmds:$(LEVEL1)/modules:$(NITROS9DIR)/3rdparty/packages/basic09
51975fad5123 New work
boisy
parents: 2309
diff changeset
7
51975fad5123 New work
boisy
parents: 2309
diff changeset
8 AFLAGS += -aNoTerm=1 -acoco3=1
51975fad5123 New work
boisy
parents: 2309
diff changeset
9
2426
5ade5dd9c3cb Updated
boisy
parents: 2425
diff changeset
10 LFLAGS += -y -l=$(NITROS9DIR)/3rdparty/libs/alib/alib.l -l=$(NITROS9DIR)/lib/sys6809l2.l
2417
53caf24c6e10 Updated
boisy
parents: 2378
diff changeset
11 3PDW68 = $(3RDPARTY)/packages/drivewire/6809l2
2376
514dd39968e0 Updates
boisy
parents: 2372
diff changeset
12 3PBOISY = $(3RDPARTY)/utils/boisy
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
13
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
14 DEPENDS = ./makefile
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
15
2417
53caf24c6e10 Updated
boisy
parents: 2378
diff changeset
16 #AFLAGS += -e -aH6309=1
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
17
51975fad5123 New work
boisy
parents: 2309
diff changeset
18 DSK = thesis.dsk
2847
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
19 CMDSDIR = $(LEVEL2)/coco3/cmds
2417
53caf24c6e10 Updated
boisy
parents: 2378
diff changeset
20 MD = $(LEVEL2)/coco3/modules
2418
306d85fb6576 Updated
boisy
parents: 2417
diff changeset
21 SYSTEXT = motd password inetd.conf
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
22 DSKS = $(DSK)
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
23
2847
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
24 CMDS = $(addprefix $(CMDSDIR)/,\
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
25 attr build cmp copy cputype date debug \
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
26 deiniz del deldir devs dir display \
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
27 dmem dmode dump echo edit error \
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
28 free grfdrv help ident iniz link \
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
29 list load login makdir mdir merge \
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
30 mfree mmap mpi pmap proc procs \
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
31 prompt pwd pxd rename save shell \
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
32 sleep smap tee tmode touch tsmon \
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
33 unlink verify xmode utilpak1 basic09 syscall \
d9cf60ca6dc3 Makefiles: Avoid double use of CD variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2835
diff changeset
34 )
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
35
2417
53caf24c6e10 Updated
boisy
parents: 2378
diff changeset
36 CMDS_DW = $(3PDW68)/inetd $(3PDW68)/dw \
53caf24c6e10 Updated
boisy
parents: 2378
diff changeset
37 $(3PDW68)/telnet $(3PBOISY)/send
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
38
2426
5ade5dd9c3cb Updated
boisy
parents: 2425
diff changeset
39 CMDS_THESIS = testmul testtfr testexg testadd testnop
5ade5dd9c3cb Updated
boisy
parents: 2425
diff changeset
40 SRC_THESIS = testmul.a testtfr.a testexg.a testadd.a testnop.a
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
41
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
42 # We make our own bootfile and kernel track
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
43 KERNEL = $(MD)/rel_80 $(MD)/boot_dw $(MD)/krn
2423
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
44 BOOTFILE_DWTERM = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
45 $(MD)/rbf.mn \
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
46 $(MD)/rbdw.dr $(MD)/dwio.sb \
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
47 $(MD)/rammer.dr $(MD)/r0_128k.dd \
51975fad5123 New work
boisy
parents: 2309
diff changeset
48 $(MD)/ddx0.dd $(MD)/x1.dd $(MD)/x2.dd $(MD)/x3.dd \
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
49 $(MD)/scf.mn \
2378
2f771d5be5d3 Added thesis test programs
boisy
parents: 2376
diff changeset
50 $(MD)/sc6551.dr $(MD)/t2_sc6551.dd $(MD)/t3_sc6551.dd \
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
51 $(MD)/scdwn.dr $(MD)/term_scdwn.dt \
2417
53caf24c6e10 Updated
boisy
parents: 2378
diff changeset
52 $(MD)/n_scdwn.dd \
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
53 $(MD)/n1_scdwn.dd $(MD)/n2_scdwn.dd $(MD)/n3_scdwn.dd \
51975fad5123 New work
boisy
parents: 2309
diff changeset
54 $(MD)/n4_scdwn.dd $(MD)/n5_scdwn.dd $(MD)/n6_scdwn.dd \
51975fad5123 New work
boisy
parents: 2309
diff changeset
55 $(MD)/n7_scdwn.dd $(MD)/n8_scdwn.dd $(MD)/n9_scdwn.dd \
51975fad5123 New work
boisy
parents: 2309
diff changeset
56 $(MD)/n10_scdwn.dd $(MD)/n11_scdwn.dd $(MD)/n12_scdwn.dd \
51975fad5123 New work
boisy
parents: 2309
diff changeset
57 $(MD)/n13_scdwn.dd $(MD)/n14_scdwn.dd \
51975fad5123 New work
boisy
parents: 2309
diff changeset
58 $(MD)/scdwp.dr $(MD)/p_scdwp.dd \
51975fad5123 New work
boisy
parents: 2309
diff changeset
59 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
60 $(MD)/clock_60hz $(MD)/clock2_dw \
2419
6735ed1656bc Took out other mods
boisy
parents: 2418
diff changeset
61 $(MD)/sysgo_dd
2423
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
62
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
63 BOOTFILE_WINTERM = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
64 $(MD)/rbf.mn \
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
65 $(MD)/rbdw.dr $(MD)/dwio.sb \
2423
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
66 $(MD)/ddx0.dd $(MD)/x1.dd $(MD)/x2.dd $(MD)/x3.dd \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
67 $(MD)/scf.mn \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
68 $(MD)/vtio.dr \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
69 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
70 $(MD)/cowin.io $(MD)/covdg.io \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
71 $(MD)/term_win80.dt $(MD)/w1.dw $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
72 $(MD)/w5.dw $(MD)/w6.dw $(MD)/w7.dw \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
73 $(MD)/scdwn.dr \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
74 $(MD)/n_scdwn.dd \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
75 $(MD)/n1_scdwn.dd $(MD)/n2_scdwn.dd $(MD)/n3_scdwn.dd \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
76 $(MD)/n4_scdwn.dd $(MD)/n5_scdwn.dd $(MD)/n6_scdwn.dd \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
77 $(MD)/n7_scdwn.dd $(MD)/n8_scdwn.dd $(MD)/n9_scdwn.dd \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
78 $(MD)/n10_scdwn.dd $(MD)/n11_scdwn.dd $(MD)/n12_scdwn.dd \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
79 $(MD)/n13_scdwn.dd $(MD)/n14_scdwn.dd \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
80 $(MD)/scdwp.dr $(MD)/p_scdwp.dd \
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
81 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
82 $(MD)/clock_60hz $(MD)/clock2_dw \
2423
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
83 $(MD)/sysgo_dd
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
84
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
85 SUPPORTFILES = startup
2480
bdc39414cf50 Fixed issues in makefiles
boisy
parents: 2471
diff changeset
86 BOOTFILE = $(BOOTFILE_WINTERM)
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
87
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
88 ALLOBJS = $(CMDS) $(CMDS_DW) $(CMDS_THESIS)
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
89
2376
514dd39968e0 Updates
boisy
parents: 2372
diff changeset
90 all: makedepends $(ALLOBJS)
514dd39968e0 Updates
boisy
parents: 2372
diff changeset
91
514dd39968e0 Updates
boisy
parents: 2372
diff changeset
92 makedepends:
2417
53caf24c6e10 Updated
boisy
parents: 2378
diff changeset
93 cd $(LEVEL2)/coco3; make
2376
514dd39968e0 Updates
boisy
parents: 2372
diff changeset
94 cd $(3RDPARTY)/packages/drivewire; make
514dd39968e0 Updates
boisy
parents: 2372
diff changeset
95 cd $(3PBOISY); make
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
96
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
97 clean: dskclean
2835
c1892376e7a7 Makefiles: Do not let $(RM) silently fail
Tormod Volden <debian.tormod@gmail.com>
parents: 2724
diff changeset
98 $(RM) $(CMDS_THESIS)
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
99
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
100 dsk: all $(DSKS)
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
101
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
102 $(DSK):
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
103 cd $(3RDPARTY)/utils/supercomm; make
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
104 $(RM) $@
2417
53caf24c6e10 Updated
boisy
parents: 2378
diff changeset
105 $(CD) $(LEVEL2)/coco3; make
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
106 $(OS9FORMAT_SS80) -q $@ -n"NitrOS-9 Level 2 DriveWire Server"
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
107 $(MERGE) $(BOOTFILE)>os9boot
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
108 $(MERGE) $(KERNEL)>kernel
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
109 $(OS9GEN) $@ -b=os9boot -t=kernel
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
110 $(RM) os9boot kernel
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
111 $(MAKDIR) $@,CMDS
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
112 $(MAKDIR) $@,SYS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
113 $(OS9COPY) $(CMDS) $(CMDS_DW) $(CMDS_THESIS) $@,CMDS
2848
94197db917c9 Makefiles: Call OS9ATTR with multiple files (part 1)
Tormod Volden <debian.tormod@gmail.com>
parents: 2847
diff changeset
114 $(OS9ATTR_EXEC) $(foreach file, $(notdir $(CMDS) $(CMDS_DW) $(CMDS_THESIS)),$@,CMDS/$(file);)
2423
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
115 $(MAKDIR) $@,SRC
8194ea2e9906 Updated
boisy
parents: 2419
diff changeset
116 $(CPL) $(SRC_THESIS) $@,SRC
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
117 $(OS9COPY) $(3RDPARTY)/utils/supercomm/supercomm $@,CMDS
2368
51975fad5123 New work
boisy
parents: 2309
diff changeset
118 $(OS9ATTR_EXEC) $@,CMDS/supercomm
51975fad5123 New work
boisy
parents: 2309
diff changeset
119 $(CPL) $(SYSTEXT) $@,SYS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
120 $(OS9ATTR_TEXT) $(foreach file,$(SYSTEXT),$@,SYS/$(file))
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
121 $(CPL) $(SUPPORTFILES) $@,.
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
122 $(OS9ATTR_TEXT) $(foreach file,$(SUPPORTFILES),$@,$(file))
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
123
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
124 dskcopy: dsk
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
125 $(CP) $(DSKS) $(DSKDIR)
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
126
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
127 dskclean:
2835
c1892376e7a7 Makefiles: Do not let $(RM) silently fail
Tormod Volden <debian.tormod@gmail.com>
parents: 2724
diff changeset
128 $(RM) $(DSKS)
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
129
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
130 info:
2417
53caf24c6e10 Updated
boisy
parents: 2378
diff changeset
131 @$(ECHO) "*** NitrOS-9/6809 Level 2 DriveWire Server ***"
2297
525698e271ed Added customboots for testing
boisy
parents:
diff changeset
132 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)