forked from christoh/fdformat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAKEFILE
88 lines (65 loc) · 1.95 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
# To use this MAKEFIILE, you need:
#
# MS-DOS 5.0 or higher
# Turbo-Pascal 6.0
# Turbo-Assembler 2.00 or higher
# 4DOS Version 3.00 or higher (only needed if MS-DOS is 5.0)
# LZEXE Version 0.91
# Assembler-Options
AOPT = /w2 /jQuirks
# Delete garbage
DELMAP = $(COMSPEC) /C DEL *.obj *.map *.bak *.sik *.old
# Don't generate 286 Code
286 = /$G+
# English Language
LANG = 1
.pas.exe:
tpc /DL$(LANG) $(286) $*
lzexe $*
$(COMSPEC) /C del $*.old
.pas.tpu:
tpc /DL$(LANG) $(286) $*
all: fdform19
fdread.exe: fdread.asm cputest.asm
tasm fdread,fdread,fdread $(AOPT) /DCPU=/$G+
tlink fdread
lzexe fdread.exe
$(DELMAP)
fdr88.exe: fdread.asm
tasm fdread,fdread,fdr88 $(AOPT) /DCPU=/$G-
tlink fdread, fdr88.exe
lzexe fdr88.exe
$(DELMAP)
fdboot.049: fdboot.asm getboot.exe
tasm fdboot $(AOPT) /DLanguage=049
tlink /t fdboot,fdboot.sys
$(DELMAP)
getboot fdboot.sys fdboot.049
fdboot.001: fdboot.asm getboot.exe
tasm fdboot $(AOPT) /DLanguage=001
tlink /t fdboot,fdboot.sys
$(DELMAP)
getboot fdboot.sys fdboot.001
# German Language
german\xformat.exe: xformat.pas baseconv.tpu desqview.tpu fdboot.049 auxdos.tpu
tpc /DL49 $(286) $&
lzexe $&
$(COMSPEC) /C del $&.old
$(COMSPEC) /C mkdir german
$(COMSPEC) /C move xformat.exe german\xformat.exe
xformat.exe: xformat.pas baseconv.tpu desqview.tpu fdboot.001 auxdos.tpu
tpc /DL1 $(286) $*
lzexe $*
$(COMSPEC) /C del $*.old
baseconv.tpu: baseconv.pas
desqview.tpu: desqview.pas
auxdos.tpu: auxdos.pas
diskio.tpu: diskio.pas
tpc $(286) diskio
getboot.exe: getboot.pas
readboot.exe: readboot.pas diskio.tpu auxdos.tpu
wimage.exe: wimage.pas diskio.tpu auxdos.tpu
# Build All
fdform19: fdread.exe fdr88.exe german\xformat.exe xformat.exe getboot.exe readboot.exe fdboot.sys fdboot.049 fdboot.001 wimage.exe xformat.new readme.txt makefile
# Not run anymore, use PACK.bat
# pkzip -f -rp fdform19.zip