Skip to content

Commit 7aa91bb

Browse files
authored
Merge pull request #3 from mentebinaria/code-clean-up
Code clean up
2 parents 9e7d081 + 629a19e commit 7aa91bb

21 files changed

Lines changed: 382 additions & 360 deletions

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
cmake_minimum_required(VERSION 3.0)
22

33
# Options
4-
option(test "Build all tests." ON)
5-
option(debug "Build with debug flags." ON)
6-
option(qt "Build with QT GUI." ON)
4+
option(test "Build all tests." OFF)
5+
option(debug "Build with debug flags." OFF)
6+
option(qt "Build with QT GUI." OFF)
77
option(windows "Enabled windows build." OFF)
88

99
#define project
@@ -26,10 +26,10 @@ set(PROJECT_DOMAIN "${PROJECT_DOMAIN_FIRST}.${PROJECT_DOMAIN_SECOND}")
2626

2727
# compiler flags
2828
if (debug)
29-
set(CMAKE_CXX_FLAGS "-g -Wall -Werror")
29+
set(CMAKE_CXX_FLAGS "-g -Wall -Werror -fno-stack-protector -march=native")
3030
else()
3131
if (APPLE)
32-
set(CMAKE_CXX_FLAGS "-O2 -Wall -Werror")
32+
set(CMAKE_CXX_FLAGS "-O2 -Wall -Werror -fno-stack-protector -march=native")
3333
else()
3434
if(windows)
3535
if (tests)
@@ -38,7 +38,7 @@ else()
3838
set(CMAKE_CXX_FLAGS "-O2 /EHsc")
3939
endif()
4040
else()
41-
set(CMAKE_CXX_FLAGS "-O2 -Werror -Wall")
41+
set(CMAKE_CXX_FLAGS "-O2 -Werror -Wall -fno-stack-protector -march=native")
4242
endif()
4343
endif()
4444
endif()

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ELF Parser
22
Multiplatform CLI and GUI tool to show information about ELF files
3-
This project is a tentative to keep [elfparser](https://github.com/mentebinaria/elfparser-ng) alive. Plans include update it and add new features.
3+
This project is a tentative to keep [elfparser](https://github.com/jacob-baines/elfparser) alive. Plans include update it and add new features.
44

55
> [License](LICENSE)
66
@@ -16,7 +16,8 @@ ELF Parser can be compiled on Windows, OS X, or Linux (demangling and unit tests
1616

1717

1818
>To compile windows, just go to [CMakeFiles](CMakeLists.txt), change `windows` to `on`
19-
![Windows](assets/compiler_windows.png) Open Visual Studio 2019 command `ctrl+f5`
19+
![Windows](assets/compiler_windows.png) install `cmake` create archive `build` enter archive
20+
execute command `cmake ..`, Open Visual Studio 2019 command `ctrl+f5`
2021

2122
## Compile Targets
2223
ELF Parser has a number of compilation targets that can be configured by CMakeLists.txt. The targets are:
@@ -28,7 +29,8 @@ ELF Parser has a number of compilation targets that can be configured by CMakeLi
2829

2930
[boost C++](http://robots.uc3m.es/installation-guides/install-boost.html#install-boost-windows)
3031
```
31-
sudo apt-get install boost
32+
sudo apt-get install libboost-all-dev
33+
3234
```
3335

3436
[Qt5](https://www.qt.io/download-open-source)

lib/hash-lib/md5.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
// see http://create.stephan-brumme.com/disclaimer.html
55
//
66

7-
#include "md5.h"
7+
#include "md5.hpp"
88

99
#ifndef _MSC_VER
10-
#include "../../src/endian.h"
10+
#include "../../src/endian.hpp"
1111
#endif
1212

1313

File renamed without changes.

lib/hash-lib/sha1.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
// see http://create.stephan-brumme.com/disclaimer.html
55
//
66

7-
#include "sha1.h"
7+
#include "sha1.hpp"
88

99
// big endian architectures need #define __BYTE_ORDER __BIG_ENDIAN
1010
#ifndef _MSC_VER
11-
#include "../../src/endian.h"
11+
#include "../../src/endian.hpp"
1212
#endif
1313

1414

lib/hash-lib/sha256.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
// see http://create.stephan-brumme.com/disclaimer.html
55
//
66

7-
#include "sha256.h"
7+
#include "sha256.hpp"
88

99
// big endian architectures need #define __BYTE_ORDER __BIG_ENDIAN
1010
#ifndef _MSC_VER
11-
#include "../../src/endian.h"
11+
#include "../../src/endian.hpp"
1212
#endif
1313

1414

0 commit comments

Comments
 (0)