2417
|
1 # NitrOS-9/6809 Level 2 bootfile for a 128K CoCo 3 with a Motorla 6809
|
2372
|
2 # For Boisy's thesis work
|
|
3
|
2297
|
4 include $(NITROS9DIR)/rules.mak
|
|
5
|
2368
|
6 vpath %.asm ../../../utils/boisy:..:$(LEVEL2)/cmds:$(LEVEL1)/cmds:$(LEVEL1)/modules:$(NITROS9DIR)/3rdparty/packages/basic09
|
|
7
|
|
8 AFLAGS += -aNoTerm=1 -acoco3=1
|
|
9
|
2417
|
10 LFLAGS += -y -l=$(NITROS9DIR)/3rdparty/packages/drivewire/netlib/netlib.l -l=$(NITROS9DIR)/3rdparty/libs/alib/alib.l -l=../netlib/netlib.l -l=$(NITROS9DIR)/lib/sys6809l2.l
|
|
11 3PDW68 = $(3RDPARTY)/packages/drivewire/6809l2
|
2376
|
12 3PBOISY = $(3RDPARTY)/utils/boisy
|
2297
|
13
|
|
14 DEPENDS = ./makefile
|
|
15
|
2417
|
16 #AFLAGS += -e -aH6309=1
|
2368
|
17
|
|
18 DSK = thesis.dsk
|
2417
|
19 CD = $(LEVEL2)/coco3/cmds
|
|
20 MD = $(LEVEL2)/coco3/modules
|
2418
|
21 SYSTEXT = motd password inetd.conf
|
2297
|
22 DSKS = $(DSK)
|
|
23
|
2368
|
24 CMDS = $(CD)/attr $(CD)/build $(CD)/cmp $(CD)/copy $(CD)/cputype $(CD)/date \
|
|
25 $(CD)/deiniz $(CD)/del $(CD)/deldir $(CD)/devs $(CD)/dir $(CD)/display \
|
|
26 $(CD)/dmem $(CD)/dmode $(CD)/dump $(CD)/echo $(CD)/edit $(CD)/error \
|
|
27 $(CD)/free $(CD)/grfdrv $(CD)/help $(CD)/ident $(CD)/iniz $(CD)/link \
|
|
28 $(CD)/list $(CD)/load $(CD)/login $(CD)/makdir $(CD)/mdir $(CD)/merge \
|
|
29 $(CD)/mfree $(CD)/mmap $(CD)/mpi $(CD)/pmap $(CD)/proc $(CD)/procs \
|
|
30 $(CD)/prompt $(CD)/pwd $(CD)/pxd $(CD)/rename $(CD)/save $(CD)/shell \
|
|
31 $(CD)/sleep $(CD)/smap $(CD)/tee $(CD)/tmode $(CD)/touch $(CD)/tsmon \
|
|
32 $(CD)/unlink $(CD)/verify $(CD)/xmode $(CD)/utilpak1 $(CD)/basic09 $(CD)/syscall
|
|
33
|
2417
|
34 CMDS_DW = $(3PDW68)/inetd $(3PDW68)/dw \
|
|
35 $(3PDW68)/telnet $(3PBOISY)/send
|
2368
|
36
|
2378
|
37 CMDS_THESIS = testmul testtfr testexg testadd testcwai
|
2423
|
38 SRC_THESIS = testmul.asm testtfr.asm testexg.asm testadd.asm testcwai.asm
|
2297
|
39
|
|
40 # We make our own bootfile and kernel track
|
2309
|
41 KERNEL = $(MD)/rel_80 $(MD)/boot_dw3 $(MD)/krn
|
2423
|
42 BOOTFILE_DWTERM = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
|
2368
|
43 $(MD)/rbf.mn \
|
|
44 $(MD)/rbdw3.dr $(MD)/dw3.sb \
|
|
45 $(MD)/rammer.dr $(MD)/r0_128k.dd \
|
|
46 $(MD)/ddx0.dd $(MD)/x1.dd $(MD)/x2.dd $(MD)/x3.dd \
|
2297
|
47 $(MD)/scf.mn \
|
2378
|
48 $(MD)/sc6551.dr $(MD)/t2_sc6551.dd $(MD)/t3_sc6551.dd \
|
2368
|
49 $(MD)/scdwn.dr $(MD)/term_scdwn.dt \
|
2417
|
50 $(MD)/n_scdwn.dd \
|
2368
|
51 $(MD)/n1_scdwn.dd $(MD)/n2_scdwn.dd $(MD)/n3_scdwn.dd \
|
|
52 $(MD)/n4_scdwn.dd $(MD)/n5_scdwn.dd $(MD)/n6_scdwn.dd \
|
|
53 $(MD)/n7_scdwn.dd $(MD)/n8_scdwn.dd $(MD)/n9_scdwn.dd \
|
|
54 $(MD)/n10_scdwn.dd $(MD)/n11_scdwn.dd $(MD)/n12_scdwn.dd \
|
|
55 $(MD)/n13_scdwn.dd $(MD)/n14_scdwn.dd \
|
|
56 $(MD)/scdwp.dr $(MD)/p_scdwp.dd \
|
|
57 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
2300
|
58 $(MD)/clock_60hz $(MD)/clock2_dw3 \
|
2419
|
59 $(MD)/sysgo_dd
|
2423
|
60
|
|
61 BOOTFILE_WINTERM = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
|
|
62 $(MD)/rbf.mn \
|
|
63 $(MD)/rbdw3.dr $(MD)/dw3.sb \
|
|
64 $(MD)/ddx0.dd $(MD)/x1.dd $(MD)/x2.dd $(MD)/x3.dd \
|
|
65 $(MD)/scf.mn \
|
|
66 $(MD)/vtio.dr \
|
|
67 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
|
|
68 $(MD)/cowin.io $(MD)/covdg.io \
|
|
69 $(MD)/term_win80.dt $(MD)/w1.dw $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw \
|
|
70 $(MD)/w5.dw $(MD)/w6.dw $(MD)/w7.dw \
|
|
71 $(MD)/scdwn.dr \
|
|
72 $(MD)/n_scdwn.dd \
|
|
73 $(MD)/n1_scdwn.dd $(MD)/n2_scdwn.dd $(MD)/n3_scdwn.dd \
|
|
74 $(MD)/n4_scdwn.dd $(MD)/n5_scdwn.dd $(MD)/n6_scdwn.dd \
|
|
75 $(MD)/n7_scdwn.dd $(MD)/n8_scdwn.dd $(MD)/n9_scdwn.dd \
|
|
76 $(MD)/n10_scdwn.dd $(MD)/n11_scdwn.dd $(MD)/n12_scdwn.dd \
|
|
77 $(MD)/n13_scdwn.dd $(MD)/n14_scdwn.dd \
|
|
78 $(MD)/scdwp.dr $(MD)/p_scdwp.dd \
|
|
79 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
80 $(MD)/clock_60hz $(MD)/clock2_dw3 \
|
|
81 $(MD)/sysgo_dd
|
2297
|
82
|
|
83 SUPPORTFILES = startup
|
2423
|
84 BOOTFILE = $(BOOTFILE_DWTERM)
|
2297
|
85
|
2368
|
86 ALLOBJS = $(CMDS) $(CMDS_DW) $(CMDS_THESIS)
|
2297
|
87
|
2376
|
88 all: makedepends $(ALLOBJS)
|
|
89
|
|
90 makedepends:
|
2417
|
91 cd $(LEVEL2)/coco3; make
|
2376
|
92 cd $(3RDPARTY)/packages/drivewire; make
|
|
93 cd $(3PBOISY); make
|
2297
|
94
|
|
95 clean: dskclean
|
2378
|
96 -$(RM) $(CMDS_THESIS)
|
2297
|
97
|
|
98 dsk: all $(DSKS)
|
|
99
|
|
100 $(DSK):
|
2368
|
101 cd $(3RDPARTY)/utils/supercomm; make
|
2297
|
102 $(RM) $@
|
2417
|
103 $(CD) $(LEVEL2)/coco3; make
|
2297
|
104 $(OS9FORMAT_SS80) -q $@ -n"NitrOS-9 Level 2 DriveWire Server"
|
|
105 $(MERGE) $(BOOTFILE)>os9boot
|
|
106 $(MERGE) $(KERNEL)>kernel
|
|
107 $(OS9GEN) $@ -b=os9boot -t=kernel
|
|
108 $(RM) os9boot kernel
|
|
109 $(MAKDIR) $@,CMDS
|
2368
|
110 $(MAKDIR) $@,SYS
|
|
111 $(CP) $(CMDS) $(CMDS_DW) $(CMDS_THESIS) $@,CMDS
|
|
112 $(foreach file, $(CMDS) $(CMDS_DW) $(CMDS_THESIS), $(OS9ATTR_EXEC) $@,CMDS/$(notdir $(file));)
|
2423
|
113 $(MAKDIR) $@,SRC
|
|
114 $(CPL) $(SRC_THESIS) $@,SRC
|
2368
|
115 $(CP) $(3RDPARTY)/utils/supercomm/supercomm $@,CMDS
|
|
116 $(OS9ATTR_EXEC) $@,CMDS/supercomm
|
|
117 $(CPL) $(SYSTEXT) $@,SYS
|
|
118 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);)
|
2297
|
119 $(CPL) $(SUPPORTFILES) $@,.
|
|
120 $(foreach file, $(SUPPORTFILES), $(OS9ATTR_TEXT) $@,$(file);)
|
|
121
|
|
122 dskcopy: dsk
|
|
123 $(CP) $(DSKS) $(DSKDIR)
|
|
124
|
|
125 dskclean:
|
2378
|
126 -$(RM) $(DSKS)
|
2297
|
127
|
|
128 info:
|
2417
|
129 @$(ECHO) "*** NitrOS-9/6809 Level 2 DriveWire Server ***"
|
2297
|
130 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)
|