Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
Use Markdown syntax in the code places
  • Loading branch information
XhmikosR authored and danmar committed Feb 23, 2013
1 parent 87abab3 commit 653d524
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -63,39 +63,39 @@ 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
```

### g++ (for experts)

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
Expand Down

0 comments on commit 653d524

Please sign in to comment.