-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mr181] add linux project setup script
- Loading branch information
1 parent
2fc4dd6
commit 77a3d8f
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
PREFIX=${PWD}/bin | ||
CONF_OPTS="-DPCH=1 -DDEBUG=1" | ||
FLAGS="-march=native -O2 -pipe -DNDEBUG" | ||
|
||
rm -Rf build && | ||
mkdir build && | ||
cd build && | ||
cmake .. -DPREFIX="${PREFIX}" ${CONF_OPTS} -DCMAKE_C_FLAGS="${FLAGS}" -DCMAKE_CXX_FLAGS="${FLAGS}" -DCMAKE_C_COMPILER="gcc" -DCMAKE_CXX_COMPILER="g++" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#ifndef __REVISION_R2_H__ | ||
#define __REVISION_R2_H__ | ||
#define REVISION_R2 "180" | ||
#define REVISION_R2 "181" | ||
#endif // __REVISION_R2_H__ |