@echo off :: =========================================================================== :: Batch script for linting QP/C with PC-Lint-Plus2 :: Copyright (C) 2005 Quantum Leaps, LLC. All rights reserved. :: :: SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial :: :: This software is dual-licensed under the terms of the open source GNU :: General Public License version 3 (or any later version), or alternatively, :: under the terms of one of the closed source Quantum Leaps commercial :: licenses. :: :: The terms of the open source GNU General Public License version 3 :: can be found at: :: :: The terms of the closed source Quantum Leaps commercial licenses :: can be found at: :: :: Redistributions in source code must retain this top-level comment block. :: Plagiarizing this software to sidestep the license obligations is illegal. :: :: Contact information: :: :: :: =========================================================================== @setlocal :: usage of make.bat @echo Usage: make [16bit] [-d...] @echo examples: @echo make -uQ_SPY -uQ_UTEST : use 32bit CPU (default) and undefine Q_SPY/Q_UTEST @echo make 16bit -uQ_SPY : use 16bit CPU includes and undefine Q_SPY @echo. :: NOTE: adjust to for your installation directory of PC-Lint-Plus @set PCLP=C:\tools\lint-plus2\windows\pclp64.exe if NOT exist "%PCLP%" ( @echo The PC-Lint-Plus toolset not found. Please adjust make.bat @goto end ) :: set the QP/C++ directory set QPCPP=..\.. if "%1"=="16bit" ( set LINTFLAGS=-i16bit options.lnt %2 %3 %4 @echo 16bit CPU ) else ( set LINTFLAGS=-i32bit options.lnt %1 %2 %3 %4 @echo 32bit CPU default ) :: cleanup @del *.log :: linting ------------------------------------------------------------------- %PCLP% -os(lint_qf.log) std.lnt %LINTFLAGS% -iqv ..\..\src\qf\*.cpp %PCLP% -os(lint_qv.log) std.lnt %LINTFLAGS% -iqv ..\..\src\qv\*.cpp %PCLP% -os(lint_qk.log) std.lnt %LINTFLAGS% -iqk ..\..\src\qk\*.cpp %PCLP% -os(lint_qxk.log) std.lnt %LINTFLAGS% -iqxk ..\..\src\qxk\*.cpp %PCLP% -os(lint_qs.log) std.lnt %LINTFLAGS% -iqv ..\..\src\qs\*.cpp :end @endlocal