-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMAKE.BAT
More file actions
90 lines (74 loc) · 1.81 KB
/
Copy pathMAKE.BAT
File metadata and controls
90 lines (74 loc) · 1.81 KB
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
@echo off
if not exist z:\command.com goto nodosbox
set compiler=tpc6.exe
del errors.log > nul
del modules.log > nul
if not exist %compiler% goto nocompiler
if "%1"=="all" goto makeall
if "%1"=="player" goto makeplay
if "%1"=="editors" goto makeedit
echo.
echo MAKE all - compile all modules
echo MAKE player - compile only the play engine
echo MAKE editors - compile only the editing modules
echo.
goto end
echo Compiling play engine modules
:makeplay
call make2 ack02 playerengine
goto donecompiling
:makeedit
echo Compiling editor modules
echo.
call make1 ack00 mainmenu
call make1 ack01 filefinder/configedit
call make1 ack03 miniloader
call make1 ack04 importexport/macroedit
call make1 ack05 fontedit/tileedit
call make1 ack06 winlaunchernewgame
call make1 ack07 objecteditor
call make1 ack08 messageeditor
call make1 ack09 mapeditor
call make1 ack10 creatureeditor
goto donecompiling
:makeall
echo Compiling all modules
echo.
call make1 ack00 mainmenu
call make1 ack01 filefinder/configedit
call make2 ack02 playerengine
call make1 ack03 miniloader
call make1 ack04 importexport/macroedit
call make1 ack05 fontedit/tileedit
call make1 ack06 winlaunchernewgame
call make1 ack07 objecteditor
call make1 ack08 messageeditor
call make1 ack09 mapeditor
call make1 ack10 creatureeditor
goto donecompiling
:donecompiling
if exist errors.log goto errors
echo Modules compiled successfully.
echo.
echo You may now copy the compiled modules to your ACK folder.
goto end
:errors
echo.
echo There were compile errors in the following modules:
echo.
type modules.log
echo.
pause
echo.
echo ERRORS.LOG:
echo.
type errors.log
goto end
:nocompiler
echo MAKE cannot find the Turbo Pascal compiler.
goto end
:nodosbox
echo Turbo Pascal for DOS requires DOSBOX to compile all
echo modules properly. Run MAKE from a DOSBOX session.
pause
:end