Update readme.md

Use Markdown syntax in the code places
This commit is contained in:
XhmikosR 2013-02-23 08:53:20 +02:00 committed by Daniel Marjamäki
parent 87abab3765
commit 653d5242d9
1 changed files with 7 additions and 7 deletions

View File

@ -37,7 +37,7 @@ There are multiple compilation choices:
You can use the gui/gui.pro file to build the GUI.
```
```shell
cd gui
qmake
make
@ -63,13 +63,13 @@ http://software-download.name/pcre-library-windows/
To build Cppcheck with rules (PCRE dependency):
```
```shell
make HAVE_RULES=yes
```
To build Cppcheck without rules (no dependencies):
```
```shell
make
```
@ -77,25 +77,25 @@ make
If you just want to build Cppcheck without dependencies then you can use this command:
```
```shell
g++ -o cppcheck -Ilib cli/*.cpp lib/*.cpp
```
If you want to use `--rule` and `--rule-file` then dependencies are needed:
```
```shell
g++ -o cppcheck -lpcre -DHAVE_RULES -Ilib -Iexternals cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp
```
### MinGW
```
```shell
make LDFLAGS=-lshlwapi
```
### Cross compiling Win32 (CLI) version of Cppcheck in Linux
```
```shell
sudo apt-get install mingw32
make CXX=i586-mingw32msvc-g++ LDFLAGS="-lshlwapi"
mv cppcheck cppcheck.exe