Skip to content

Commit

Permalink
readme: tell about SRCDIR=build
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Jan 12, 2013
1 parent b5a3ce8 commit 7d31c22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,22 @@ Compiling
To build Cppcheck without rules (no dependencies):
make

If you have python it is recommended that you add "SRCDIR=build". When
that is used, the Makefile uses python to compile Cppcheck (but python
is not used at runtime). The advantage is that it makes Cppcheck faster.

g++ (for experts)
=================
If you just want to build Cppcheck without dependencies then you can use this command:
g++ -o cppcheck -Ilib cli/*.cpp lib/*.cpp

If you want to use --rule and --rule-file then dependencies are needed:
g++ -o cppcheck -lpcre -DHAVE_RULES -Ilib -Iexternals cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp

mingw
=====
make LDFLAGS=-lshlwapi
The "LDFLAGS=-lshlwapi" is needed when building with mingw
mingw32-make LDFLAGS=-lshlwapi

Cross compiling Win32 (CLI) version of Cppcheck in Linux

Expand Down

0 comments on commit 7d31c22

Please sign in to comment.