Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Andromeda1957 authored Jun 30, 2019
1 parent fe84fb3 commit 960534d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

usage() {
echo "LinPwn build script"
echo "--dev Compile with developer options enabled"
echo "--debug Compile with debug options enabled"
echo "--default Compile with defaut options."
echo "--dev Compile with developer options enabled."
echo "--debug Compile with debug optionstons enabled."
}


Expand All @@ -13,12 +14,15 @@ if [ $# -eq 0 ]; then
exit
fi

if [ $1 == "--dev" ]; then
if [ $1 == "--default" ]; then
g++ LinPwn.cc -o LinPwn;
echo "Done."
elif [ $1 == "--dev" ]; then
g++ -Wall -Wextra LinPwn.cc -o LinPwn;
cpplint LinPwn.cc;
echo "Done."
elif [ $1 == "--debug" ]; then
g++ --no-pie -ggdb -static LinPwn.cc -o LinPwn;
g++ --no-pie -ggdb -static -fPIC LinPwn.cc -o LinPwn;
echo "Done."
else
usage;
Expand Down

0 comments on commit 960534d

Please sign in to comment.