Subversion Repositories SvarDOS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2019 mateusz.vi 1
@echo off
2
echo This will create a version of Tree that can run under
3
echo Windows or DOS (in a single executable).
4
echo This batch file expects to be run in the tree directory.
5
echo It also expects the compilers to be in the path env variable.
6
echo If your compilers are not in your path, please set the path and 
7
echo rerun make.
8
 
9
if %1'==' goto badArgument
10
if %2'==' goto badArgument
11
if %3'==' goto badArgument
12
 
13
pause
14
 
15
:compileDOS
16
call makedos.bat %1 %2 %3
17
REM ren tree.exe treed.exe
18
REM compress so is smaller, apack seems better but only tested with upx
19
if %4'==UPX' upx --best --8086 -v tree.exe
20
REM important, must update so relocation table is moved to at least 0x40.
21
extra\fixstub tree.exe treed.exe
22
del tree.exe
23
REM fall through to vc, if you want bcc uncomment goto
24
REM goto compileWin32BCC
25
 
26
:compileWin32VC
27
call makwinvc.bat %1 treed.exe
28
del treed.exe
29
REM compress so is smaller, only tested with upx
30
if %4'==UPX' upx --best -v tree.exe
31
goto done
32
 
33
:compileWin32BCC
34
call makwinbc.bat %1 treed.exe
35
del treed.exe
36
REM compress so is smaller, only tested with upx
37
REM upx --best -v tree.exe
38
goto done
39
 
40
:badArgument
41
echo Usage: make CATS/NOCATS -ml/-ms/other large/small/other
42
echo where CATS/NOCATS determines if cats supported is compiled in
43
echo and -ml/-ms/other specifies memory model, with large/small/other
44
echo specifying the subdirectory under w32fDOS to copy w32fDOS.cpp
45
echo from (it should match the memory model specified).
46
echo The result of this batch file is a win32 console mode version
47
echo of tree with the DOS stub being a DOS version of tree.
48
echo The resulting executable should properly run under DOS or Win32.
49
echo Please try again.
50
 
51
:done
52
@echo Done.