/
makefile
109 lines (84 loc) · 2.16 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
all: ..\current\watcom\read.me ..\current\watcom\cwsystem.lnk
all: ..\current\watcom\cwstub.exe cwdstub.exe
all: ..\current\watcom\cw.trp cwhelp.exe
all: vesa.obj ..\current\watcom\cwhelp.cfg
all: dllstrts.obj dllstrtr.obj dllfunc.obj dlltest.exe dlls.dll dllr.dll
#
# Update the read.me file
#
..\current\watcom\read.me: read.me
copy read.me ..\current\watcom
#
# Update the linker script file
#
..\current\watcom\cwsystem.lnk: cwsystem.lnk
copy cwsystem.lnk ..\current\watcom
copy cwsystem.lnk d:\watcom\binb\cwsystem.lnk
#
# Update the EXE stub file
#
..\current\watcom\cwstub.exe: cwstub.exe
copy cwstub.exe ..\current\watcom\cwstub.exe
copy cwstub.exe d:\watcom\binb\cwstub.exe
#
# Update the DLL stub file
#
cwdstub.exe: cwdstub.asm
ml cwdstub.asm
copy cwdstub.exe ..\current\watcom\cwdstub.exe
copy cwdstub.exe d:\watcom\binb\cwdstub.exe
#
# Update the trap file
#
..\current\watcom\cw.trp: cw.trp
copy cw.trp ..\current\watcom
copy cw.trp d:\watcom\bin
cw.trp:
cd trap\lcl\dos\dosx\rsi\dos.trp
wmake w
cd..
cd..
cd..
cd..
cd..
cd..
copy trap\bin\rsi.trp cw.trp
#
# Update the trap file helper
#
cwhelp.exe: cwhelp.asm
ml -c /Fl cwhelp.asm
cwl /nostub /flat /map cwhelp c2asm,cwhelp.cw,,system
cwc /m2 /l255 cwhelp.cw
copy /b cwdstub.exe + cwhelp.cw cwhelp.exe
del cwhelp.cw
copy cwhelp.exe ..\current\watcom
copy cwhelp.exe d:\watcom\bin
#
# Update the trap file config file.
#
..\current\watcom\cwhelp.cfg: cwhelp.cfg
copy cwhelp.cfg ..\current\watcom
#
#Update the VESA patch
#
vesa.obj: vesa.asm
ml -c vesa.asm
copy vesa.obj ..\current\watcom
copy vesa.txt ..\current\watcom
dllstrts.obj : dllstart.asm
wasm -bt=DOS -ms -3s_ dllstart.asm -fo=dllstrts.obj
copy dllstrts.obj ..\current\watcom
copy dllstrts.obj d:\watcom\lib386\dos
dllstrtr.obj : dllstart.asm
wasm -bt=DOS -ms -3r_ dllstart.asm -fo=dllstrtr.obj
copy dllstrtr.obj ..\current\watcom
copy dllstrtr.obj d:\watcom\lib386\dos
cwapi.obj : d:\cw\cwapi.obj
copy d:\cw\cwapi.obj
copy cwapi.obj ..\current\watcom
copy cwapi.obj d:\watcom\lib386\dos
dllfunc.obj : dllfunc.asm
wasm -bt=DOS -ms -3s_ dllfunc.asm
copy dllfunc.obj ..\current\watcom
copy dllfunc.obj d:\watcom\lib386\dos