@@ -10,35 +10,37 @@ and analyze PE (Portable Executables) binaries.
1010## How to build on Linux
1111
1212 cd readpe
13- make
13+ cmake -B build
14+ cmake --build build
1415
15- ** NOTE** : You may need to install OpenSSL using your package manager. Examples:
16+ ** NOTE** : You may need to install CMake, and OpenSSL using your package manager. Examples:
1617
17- apt install libssl-dev
18- yum install openssl-devel
18+ apt install cmake libssl-dev
19+ yum install cmake3 openssl-devel
1920
2021## How to install on Linux
2122
2223 cd readpe
23- sudo make install
24+ sudo cmake -- install build
2425 echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/libpe.conf
2526 sudo ldconfig
2627
2728## How to build on macOS
2829
2930 cd readpe
30- CFLAGS="-I/usr/local/opt/openssl/include/" LDFLAGS="-L/usr/local/opt/openssl/lib/" make
31+ CFLAGS="-I/usr/local/opt/openssl/include/" LDFLAGS="-L/usr/local/opt/openssl/lib/" cmake -B build
32+ cmake --build build
3133
32- ** NOTE** : You may need to install OpenSSL and PCRE via [ Homebrew] ( https://brew.sh ) :
34+ ** NOTE** : You may need to install CMake, OpenSSL and PCRE via [ Homebrew] ( https://brew.sh ) :
3335
3436 brew update
35- brew install openssl
37+ brew install cmake openssl
3638
37- ## How to build on Windows (via [ Cygwin] ( https://cygwin.com ) )
39+ ## How to build on Windows using [ Cygwin] ( https://cygwin.com ) )
3840
3941 cd readpe
40- make
41- make zip
42+ cmake -B build
43+ cmake --build build
4244
4345** NOTE** : The following packages must be installed along with your Cygwin:
4446
@@ -48,9 +50,15 @@ and analyze PE (Portable Executables) binaries.
4850| Devel | binutils |
4951| Devel | gcc-core |
5052| Devel | git |
51- | Devel | make |
53+ | Devel | cmake |
5254| Net | libssl-devel |
5355
56+ ## How to build on Windows using Visual Studio [ EXPERIMENTAL]
57+
58+ Open CMakeLists.txt in Visual Studio.
59+
60+ This is still highly experimental and bug reports are highly appriciated.
61+
5462## FAQ
5563
5664### Is this pev? / What happened to pev?
@@ -84,4 +92,69 @@ This project is licensed under the GNU General Public License version 2
8492with the exception of the contents of lib/libpe which are licensed under the
8593GNU Lesser General Public License version 3.
8694
87- A copy of these licenses can be found respectively in the project root and lib/libpe.
95+ A copy of these licenses can be found respectively
96+ in the project root and lib/libpe folders.
97+
98+ ### Acknowledgments
99+
100+ Sources are given as acknowledgement for the original authors
101+ and do not represent an endorsement of this project by said authors.
102+
103+ #### lib/compat/asprintf.c
104+
105+ Code written by [ Thomas Gamper] ( https://github.com/eiszapfen2000/asprintf )
106+ Licensed under [ BSD-3-Clause License] ( https://opensource.org/license/bsd-3-clause )
107+
108+ #### lib/compat/strlcat.c
109+
110+ Code from the [ OpenBSD Project] ( https://www.openbsd.org/ )
111+ Licensed under [ ISC License] ( https://opensource.org/license/isc )
112+
113+ #### lib/compat/getopt.c lib/compat/include/getopt.h
114+
115+ Code from the [ GNU C Library] ( https://sourceware.org/glibc )
116+ Licensed under [ LGPL-2.1+] ( https://opensource.org/license/lgpl-2-1 )
117+
118+ #### lib/compat/include/unistd.h
119+
120+ Code from [ win32ports/unistd_h] ( https://github.com/win32ports/unistd_h )
121+ Licensed under the [ MIT License] ( https://opensource.org/license/mit )
122+
123+ #### lib/compat/include/sys/queue.h
124+
125+ Code from the [ FreeBSD Project] ( https://www.freebsd.org/ )
126+ Licensed under [ BSD-3-Clause License] ( https://opensource.org/license/bsd-3-clause )
127+
128+ #### lib/fuzzy
129+
130+ Code from [ SSDeep Project] ( https://ssdeep-project.github.io/ssdeep/index.html )
131+ Licensed under [ GPL-2.0+] ( https://opensource.org/license/gpl-2.0 )
132+
133+ #### lib/udis86 include/udis86.h
134+
135+ Code from [ Udis86 library] ( https://sourceforge.net/projects/udis86/ )
136+ Licensed under [ BSD-2-Clause License] ( https://opensource.org/license/bsd-2-clause )
137+
138+ #### src/dylib.c src/dylib.h src/stack.h
139+
140+ Code written by Jardel Weyrich
141+ Licensed under [ MIT License] ( https://opensource.org/license/mit )
142+
143+ ### Static linked libraries
144+
145+ #### uthash
146+
147+ Project can be found [ here] ( https://troydhanson.github.io/uthash/ )
148+ Source code can be found [ here] ( https://github.com/troydhanson/uthash )
149+ Licensed under [ BSD-1-Clause] ( https://opensource.org/license/bsd-1-clause )
150+
151+ #### dirent
152+
153+ Project can be found [ here] ( https://github.com/tronkko/dirent )
154+ Licensed under [ MIT License] ( https://opensource.org/license/mit )
155+
156+ #### dlfcn-win32
157+
158+ Project can be found [ here] ( https://github.com/dlfcn-win32/dlfcn-win32 )
159+ Licensed under [ MIT License] ( https://opensource.org/license/mit )
160+
0 commit comments