cnotes/BUILD.BAT
2026-01-30 14:56:03 +00:00

49 lines
1.1 KiB
Batchfile

@ECHO OFF
REM Build script for cnotes - Turbo C++ 3.0 on DOS/Win32
REM Run this if you don't have MAKE available
REM
REM Assumes TCC.EXE is in your PATH
ECHO Building cnotes with Turbo C++ 3.0...
ECHO.
REM Create build directory if it doesn't exist
IF NOT EXIST build MKDIR build
ECHO Compiling cnadd.exe...
TCC -A -w -ml -I.\include -ebuild\cnadd.exe src\cnadd.c
IF ERRORLEVEL 1 GOTO ERROR
ECHO Compiling cndump.exe...
TCC -A -w -ml -I.\include -ebuild\cndump.exe src\cndump.c
IF ERRORLEVEL 1 GOTO ERROR
ECHO Compiling cncount.exe...
TCC -A -w -ml -I.\include -ebuild\cncount.exe src\cncount.c
IF ERRORLEVEL 1 GOTO ERROR
ECHO Compiling cndel.exe...
TCC -A -w -ml -I.\include -ebuild\cndel.exe src\cndel.c
IF ERRORLEVEL 1 GOTO ERROR
ECHO Compiling cnfind.exe...
TCC -A -w -ml -I.\include -ebuild\cnfind.exe src\cnfind.c
IF ERRORLEVEL 1 GOTO ERROR
ECHO Compiling cnhelp.exe...
TCC -A -w -ml -I.\include -ebuild\cnhelp.exe src\cnhelp.c
IF ERRORLEVEL 1 GOTO ERROR
ECHO.
ECHO Build successful!
ECHO.
DIR build\*.EXE
GOTO END
:ERROR
ECHO.
ECHO Build failed!
GOTO END
:END