Browse Source

makefile and consts

vampirefrog 1 year ago
parent
commit
3029d4eaae
2 changed files with 130 additions and 90 deletions
  1. 29
    6
      Makefile
  2. 101
    84
      const.sed

+ 29
- 6
Makefile View File

@@ -7,15 +7,38 @@ DIS_DEBUG=
7 7
 endif
8 8
 COLUMNS=120
9 9
 
10
-all: iplrom30.s iplromxv.s human.s commando.s cmd.s process.s bind.s opmdrv3.s mopmdrv.s mxdrv17.s mxdrv16.s pcm8.s mxp.s mdxp.s
10
+all: \
11
+	iplrom30.s \
12
+	iplromxv.s \
13
+	human.s \
14
+	commando.s \
15
+	cmd.s \
16
+	process.s \
17
+	bind.s \
18
+	opmdrv3.s \
19
+	mopmdrv.s \
20
+	pcm8.s \
21
+	mxp.s \
22
+	mdxp.s \
23
+	mxdrv/2.06+16_Rel2++/mxdrvpp.s \
24
+	mxdrv/2.06+16_Rel.3/mxdrv30.s \
25
+	mxdrv/2.06+16_Rel.3/mxdrv16.s \
26
+	mxdrv/2.06+162_03/mxdrv16x.s \
27
+	mxdrv/2.06+17_Rel.X5-S/mxdrv17.s \
28
+	mxdrv/2.06+16_Rel.1/mxdrv16.s \
29
+	mxdrv/2.06+16_Rel.2/mxdrv16.s
11 30
 
12 31
 translations: mxdrv17.en.s
13 32
 
33
+mxdrv/%.s: mxdrv/%.x mxdrv/%.lab
34
+	dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -h -k -m68030 -q1 -B -M -w16 -o120 -g"$(patsubst %.s,%.lab,$@)" --overwrite "$<" "$@"
35
+	sed -i -e 's/;  Code Generate date .\+/;/' "$@"
36
+
14 37
 iplrom30.s: iplrom30.dat iplrom30.lab iplrom30.tab
15
-	dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -i -m68030 -m68882 -zfe0000,ff0038 -q1 -B -M --exclude-fefunc-mac -Tiplrom30.tab -giplrom30.lab --overwrite $< $@
38
+	dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -i -m68030 -m68882 -zfe0000,ff0038 -q1 -B -M -w16 --exclude-fefunc-mac -Tiplrom30.tab -giplrom30.lab --overwrite $< $@
16 39
 	sed -i -e 's/;  Code Generate date .\+/;/' $@
17 40
 iplromxv.s: iplromxv.dat iplromxv.lab iplromxv.tab
18
-	dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -i -m68030 -m68882 -zfe0000,ff0010 -q1 -B -M --exclude-fefunc-mac -Tiplromxv.tab -giplromxv.lab --overwrite $< $@
41
+	dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -i -m68030 -m68882 -zfe0000,ff0010 -q1 -B -M -w16 --exclude-fefunc-mac -Tiplromxv.tab -giplromxv.lab --overwrite $< $@
19 42
 	sed -i -e 's/;  Code Generate date .\+/;/' $@
20 43
 
21 44
 %.en.s: %.s %.en.sed
@@ -36,14 +59,14 @@ mdxp.s: mdxp.r mdxp.lab
36 59
 	sed -i -e 's/;  Code Generate date .\+/;/' $@
37 60
 
38 61
 human.s: human.sys human.lab
39
-	dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68030 --sp -s2 -q1 -B -M -o$(COLUMNS) -g$(patsubst %.s,%.lab,$@) --overwrite $< $@
62
+	dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68030 --sp -q1 -B -M -o$(COLUMNS) -g$(patsubst %.s,%.lab,$@) --overwrite $< $@
40 63
 	sed -i -f const.sed $@
41 64
 	sed -i -e 's/;  Code Generate date .\+/;/' $@
42 65
 
43 66
 opmdrv3.s: opmdrv3.x opmdrv3.lab opmdrv3.tab
44
-	dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68000 --sp -q1 -B -M -o$(COLUMNS) -w16  -g$(patsubst %.s,%.lab,$@) -T$(patsubst %.s,%.tab,$@) --overwrite $< $@
67
+	dis_include=$(DIS_INCLUDE) $(DIS) $(DIS_DEBUG) -b2 -h -m68000 --sp -q1 -B -M -o$(COLUMNS) -w16 -g$(patsubst %.s,%.lab,$@) -T$(patsubst %.s,%.tab,$@) --overwrite $< $@
45 68
 	sed -i -f const.sed $@
46 69
 	sed -i -e 's/;  Code Generate date .\+/;/' $@
47 70
 
48 71
 clean:
49
-	rm -f *.s
72
+	rm -f *.s mxdrv/*/*.s

+ 101
- 84
const.sed View File

@@ -1,84 +1,101 @@
1
-s/($0008)/(BusErrVecAddr)/g
2
-s/($0010)/(ImproperOrderVecAddr)/g
3
-s/($0020)/(PrivilegeViolationVecAddr)/g
4
-s/($002c)/(LineFVec)/g
5
-s/($007c)/(Level7IntVecAddr)/g
6
-s/($00a8)/(Trap10VecAddr)/g
7
-s/($00ac)/(Trap11VecAddr)/g
8
-s/($00b8)/(Trap14VecAddr)/g
9
-s/($0160)/(SCCTxBufferEmptyVecAddr)/g
10
-s/($07fc)/(IOCSAbortFuncAddr)/g
11
-s/($0c90)/(FD0ResultStatusRxBuf)/g
12
-s/($0cbc)/(IOCSWorkMPUType)/g
13
-s/($1800)/(DOSCallVecTable)/g
14
-s/($1bc0)/(DOSCallAddr_EXITVC)/g
15
-s/($1bc4)/(DOSCallAddr_CTRLVC)/g
16
-s/($1bc8)/(DOSCallAddr_ERRJVC)/g
17
-s/($1be0)/(DOSCallAddr_OPEN_PR)/g
18
-s/($1be4)/(DOSCallAddr_KILL_PR)/g
19
-s/($1bfc)/(DOSCallAddr_CHANGE_PR)/g
20
-s/($1c00)/(DOSWorkCurProcEndAddr)/g
21
-s/($1c04)/(DOSWorkCurProcStartAddr)/g
22
-s/($1c08)/(DOSWorkRecursionCount)/g
23
-s/($1c0a)/(DOSWorkCurrentCallNum)/g
24
-s/($1c0b)/(DOSWorkNewfatSetting)/g
25
-s/($1c0c)/(DOSWork_IOCTRLArg1_Retries)/g
26
-s/($1c0e)/(DOSWork_IOCTRLArg2_WaitTime)/g
27
-s/($1c10)/(DOSWorkVerifyMode)/g
28
-s/($1c12)/(DOSWorkBreakMode)/g
29
-s/($1c13)/(DOSWorkCTRLPFlag)/g
30
-s/($1c14)/(DOSWorkThreadSwitchReqFlag)/g
31
-s/($1c15)/(DOSWorkCurDriveNum)/g
32
-s/($1c16)/(DOSWorkStopKeyFlag)/g
33
-s/($1c17)/(DOSWorkTrap10ExecFlag)/g
34
-s/($1c18)/(DOSWorkTrap10d0)/g
35
-s/($1c1c)/(DOSWorkLastDeviceDrvHeaderAddr)/g
36
-s/($1c20)/(DOSWorkHuman68kPDB)/g
37
-s/($1c24)/(DOSWorkHuman68kEndAddr)/g
38
-s/($1c28)/(DOSWorkCurProcPtrAddr)/g
39
-s/($1c2c)/(DOSWorkFCBIdxTblAddr)/g
40
-s/($1c30)/(DOSWorkFCBTblAddr)/g
41
-s/($1c34)/(DOSWorkDiskIOBufAddr)/g
42
-s/($1c38)/(DOSWorkCurDirTblAddr)/g
43
-s/($1c3c)/(DOSWorkDPBTblAddr)/g
44
-s/($1c40)/(DOSWorkShareManStructAddr)/g
45
-s/($1c44)/(DOSWorkCommonAreaAddr)/g
46
-s/($1c48)/(DOSWorkCommonAreaEndAddr)/g
47
-s/($1c4c)/(DOSWorkCommonAddrEndAddr)/g
48
-s/($1c50)/(DOSWorkThreadManStructTblddr)/g
49
-s/($1c54)/(DOSWorkCurThreadManStructAddr)/g
50
-s/($1c58)/(DOSWorkMaxThreads)/g
51
-s/($1c5a)/(DOSWorkCurGeneratedThreadsNum)/g
52
-s/($1c5c)/(DOSWorkPrevSSPVal)/g
53
-s/($1c60)/(DOSWorkAbortSR)/g
54
-s/($1c62)/(DOSWorkAbortSSP)/g
55
-s/($1c66)/(DOSWorkTrap11PreviousAddr)/g
56
-s/($1c6a)/(DOSWorkTrap10PreviousAddr)/g
57
-s/($1c6e)/(DOSWorkMaxFileHandle)/g
58
-s/($1c70)/(DOSWorkBuffersArg2)/g
59
-s/($1c72)/(DOSWorkBuffersArg2)/g
60
-s/($1c73)/(DOSWorkLastdriveSetting)/g
61
-s/($1c74)/(DOSWorkMaxDries)/g
62
-s/($1c75)/(DOSWorkConnectedDrivesNum)/g
63
-s/($1c76)/(DOSWorkShareArg2)/g
64
-s/($1c78)/(DOSWorkShareArg1)/g
65
-s/($1c7a)/(DOSWorkShareBytesPerStruct)/g
66
-s/($1c7e)/(DOSWorkDrvReplacementTbl)/g
67
-s/($1c98)/(DOSWorkFCBOpened)/g
68
-s/($1c9c)/(DOSWorkFCBFileHandle)/g
69
-s/($1ca0)/(DOSWork_EXECState)/g
70
-s/($1ca1)/(DOSWork_EXECModuleNum)/g
71
-s/($1ca2)/(DOSWorkInsKeyMode)/g
72
-s/($1ca3)/(DOSWorkErrExecFlag)/g
73
-s/($1ca4)/(DOSWorkReadRow)/g
74
-s/($1ca8)/(DOSWorkReadRemainingBytes)/g
75
-s/($1caa)/(DOSWork_EXECCurPDBAddr)/g
76
-s/($1cae)/(DOSWorkProcessExitCode)/g
77
-s/($1cb2)/(DOSWork_EXECCmdlineAddr)/g
78
-s/($1cb6)/(DOSWorkClockDeviceHeader)/g
79
-s/($1cba)/(DOSWorkFflushMode)/g
80
-s/($1cbc)/(DOSWorkBreakKeyCode)/g
81
-s/($1cbe)/(DOSWorkDisablePrnCode)/g
82
-s/($1cc0)/(DOSWorkEnablePrnCode)/g
83
-s/($1cc2)/(DOSWorkResumeScroll)/g
84
-s/($1cc4)/(DOSWorkStopScroll)/g
1
+s/\\($0008\\)/(BusErrVecAddr)/g
2
+s/\\($0010\\)/(ImproperOrderVecAddr)/g
3
+s/\\($0020\\)/(PrivilegeViolationVecAddr)/g
4
+s/\\($002c\\)/(LineFVec)/g
5
+s/\\($007c\\)/(Level7IntVecAddr)/g
6
+s/\\($00a8\\)/(Trap10VecAddr)/g
7
+s/\\($00ac\\)/(Trap11VecAddr)/g
8
+s/\\($00b8\\)/(Trap14VecAddr)/g
9
+s/\\($00e80029\\)/CRTMemoryModeLSB/g
10
+s/\\($00e82200\\)/VideoPalette/g
11
+s/\\($00e840c0\\)/DMACChan3CSR/g
12
+s/\\($00e840c5\\)/DMACChan3OCR/g
13
+s/\\($00e840c7\\)/DMACChan3CCR/g
14
+s/\\($00e840ca\\)/DMACChan3MTC/g
15
+s/\\($00e840cc\\)/DMACChan3MAR/g
16
+s/\\($00e86001\\)/AreaSetReg/g
17
+s/\\($00e88001\\)/MFPGPIP/g
18
+s/\\($00e8e001\\)/SysPort1/g
19
+s/\\($00e8e007\\)/SysPort4/g
20
+s/\\($00e90001\\)/OPMReg/g
21
+s/\\($00e90003\\)/OPMData/g
22
+s/\\($00e92001\\)/ADPCMStatus/g
23
+s/\\($00e92003\\)/ADPCMData/g
24
+s/\\($00e94005\\)/FDCStatusOption/g
25
+s/\\($00e9a005\\)/I8255PortC/g
26
+s/\\($0160\\)/(SCCTxBufferEmptyVecAddr)/g
27
+s/\\($07fc\\)/(IOCSAbortFuncAddr)/g
28
+s/\\($0c90\\)/(FD0ResultStatusRxBuf)/g
29
+s/\\($0cbc\\)/(IOCSWorkMPUType)/g
30
+s/\\($1800\\)/(DOSCallVecTable)/g
31
+s/\\($1bc0\\)/(DOSCallAddr_EXITVC)/g
32
+s/\\($1bc4\\)/(DOSCallAddr_CTRLVC)/g
33
+s/\\($1bc8\\)/(DOSCallAddr_ERRJVC)/g
34
+s/\\($1be0\\)/(DOSCallAddr_OPEN_PR)/g
35
+s/\\($1be4\\)/(DOSCallAddr_KILL_PR)/g
36
+s/\\($1bfc\\)/(DOSCallAddr_CHANGE_PR)/g
37
+s/\\($1c00\\)/(DOSWorkCurProcEndAddr)/g
38
+s/\\($1c04\\)/(DOSWorkCurProcStartAddr)/g
39
+s/\\($1c08\\)/(DOSWorkRecursionCount)/g
40
+s/\\($1c0a\\)/(DOSWorkCurrentCallNum)/g
41
+s/\\($1c0b\\)/(DOSWorkNewfatSetting)/g
42
+s/\\($1c0c\\)/(DOSWork_IOCTRLArg1_Retries)/g
43
+s/\\($1c0e\\)/(DOSWork_IOCTRLArg2_WaitTime)/g
44
+s/\\($1c10\\)/(DOSWorkVerifyMode)/g
45
+s/\\($1c12\\)/(DOSWorkBreakMode)/g
46
+s/\\($1c13\\)/(DOSWorkCTRLPFlag)/g
47
+s/\\($1c14\\)/(DOSWorkThreadSwitchReqFlag)/g
48
+s/\\($1c15\\)/(DOSWorkCurDriveNum)/g
49
+s/\\($1c16\\)/(DOSWorkStopKeyFlag)/g
50
+s/\\($1c17\\)/(DOSWorkTrap10ExecFlag)/g
51
+s/\\($1c18\\)/(DOSWorkTrap10d0)/g
52
+s/\\($1c1c\\)/(DOSWorkLastDeviceDrvHeaderAddr)/g
53
+s/\\($1c20\\)/(DOSWorkHuman68kPDB)/g
54
+s/\\($1c24\\)/(DOSWorkHuman68kEndAddr)/g
55
+s/\\($1c28\\)/(DOSWorkCurProcPtrAddr)/g
56
+s/\\($1c2c\\)/(DOSWorkFCBIdxTblAddr)/g
57
+s/\\($1c30\\)/(DOSWorkFCBTblAddr)/g
58
+s/\\($1c34\\)/(DOSWorkDiskIOBufAddr)/g
59
+s/\\($1c38\\)/(DOSWorkCurDirTblAddr)/g
60
+s/\\($1c3c\\)/(DOSWorkDPBTblAddr)/g
61
+s/\\($1c40\\)/(DOSWorkShareManStructAddr)/g
62
+s/\\($1c44\\)/(DOSWorkCommonAreaAddr)/g
63
+s/\\($1c48\\)/(DOSWorkCommonAreaEndAddr)/g
64
+s/\\($1c4c\\)/(DOSWorkCommonAddrEndAddr)/g
65
+s/\\($1c50\\)/(DOSWorkThreadManStructTblddr)/g
66
+s/\\($1c54\\)/(DOSWorkCurThreadManStructAddr)/g
67
+s/\\($1c58\\)/(DOSWorkMaxThreads)/g
68
+s/\\($1c5a\\)/(DOSWorkCurGeneratedThreadsNum)/g
69
+s/\\($1c5c\\)/(DOSWorkPrevSSPVal)/g
70
+s/\\($1c60\\)/(DOSWorkAbortSR)/g
71
+s/\\($1c62\\)/(DOSWorkAbortSSP)/g
72
+s/\\($1c66\\)/(DOSWorkTrap11PreviousAddr)/g
73
+s/\\($1c6a\\)/(DOSWorkTrap10PreviousAddr)/g
74
+s/\\($1c6e\\)/(DOSWorkMaxFileHandle)/g
75
+s/\\($1c70\\)/(DOSWorkBuffersArg2)/g
76
+s/\\($1c72\\)/(DOSWorkBuffersArg2)/g
77
+s/\\($1c73\\)/(DOSWorkLastdriveSetting)/g
78
+s/\\($1c74\\)/(DOSWorkMaxDries)/g
79
+s/\\($1c75\\)/(DOSWorkConnectedDrivesNum)/g
80
+s/\\($1c76\\)/(DOSWorkShareArg2)/g
81
+s/\\($1c78\\)/(DOSWorkShareArg1)/g
82
+s/\\($1c7a\\)/(DOSWorkShareBytesPerStruct)/g
83
+s/\\($1c7e\\)/(DOSWorkDrvReplacementTbl)/g
84
+s/\\($1c98\\)/(DOSWorkFCBOpened)/g
85
+s/\\($1c9c\\)/(DOSWorkFCBFileHandle)/g
86
+s/\\($1ca0\\)/(DOSWork_EXECState)/g
87
+s/\\($1ca1\\)/(DOSWork_EXECModuleNum)/g
88
+s/\\($1ca2\\)/(DOSWorkInsKeyMode)/g
89
+s/\\($1ca3\\)/(DOSWorkErrExecFlag)/g
90
+s/\\($1ca4\\)/(DOSWorkReadRow)/g
91
+s/\\($1ca8\\)/(DOSWorkReadRemainingBytes)/g
92
+s/\\($1caa\\)/(DOSWork_EXECCurPDBAddr)/g
93
+s/\\($1cae\\)/(DOSWorkProcessExitCode)/g
94
+s/\\($1cb2\\)/(DOSWork_EXECCmdlineAddr)/g
95
+s/\\($1cb6\\)/(DOSWorkClockDeviceHeader)/g
96
+s/\\($1cba\\)/(DOSWorkFflushMode)/g
97
+s/\\($1cbc\\)/(DOSWorkBreakKeyCode)/g
98
+s/\\($1cbe\\)/(DOSWorkDisablePrnCode)/g
99
+s/\\($1cc0\\)/(DOSWorkEnablePrnCode)/g
100
+s/\\($1cc2\\)/(DOSWorkResumeScroll)/g
101
+s/\\($1cc4\\)/(DOSWorkStopScroll)/g

Loading…
Cancel
Save