Cleanup and improve Makefile
This commit is contained in:
15
Makefile
15
Makefile
@@ -1,20 +1,11 @@
|
|||||||
CC=gcc
|
|
||||||
CFLAGS=-Wall -Werror -pthread -O3 -g0
|
CFLAGS=-Wall -Werror -pthread -O3 -g0
|
||||||
|
CFLAGS += -DGETRANDOM -DARG_REPLACE_GETOPT=0
|
||||||
LDFLAGS=-lm -s
|
LDFLAGS=-lm -s
|
||||||
|
|
||||||
default: inexact
|
default: inexact
|
||||||
|
|
||||||
windows: CC=x86_64-w64-mingw32-gcc
|
debug: CFLAGS=-Wall -Werror -pthread -O0 -g
|
||||||
windows: CFLAGS=-Wall -Werror -pthread -O3 -g0
|
debug: CFLAGS += -DGETRANDOM -DARG_REPLACE_GETOPT=0
|
||||||
windows: LDFLAGS=-lm -s
|
|
||||||
windows: inexact
|
|
||||||
|
|
||||||
windows-debug: CC=x86_64-w64-mingw32-gcc
|
|
||||||
windows-debug: CFLAGS=-Wall -Werror -pthread -O3 -g
|
|
||||||
windows-debug: LDFLAGS=-lm
|
|
||||||
windows-debug: inexact
|
|
||||||
|
|
||||||
debug: CFLAGS=-Wall -Werror -pthread -O3 -g
|
|
||||||
debug: LDFLAGS=-lm
|
debug: LDFLAGS=-lm
|
||||||
debug: inexact
|
debug: inexact
|
||||||
|
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -62,20 +62,13 @@ Schematic:
|
|||||||
|
|
||||||
## How to build
|
## How to build
|
||||||
|
|
||||||
For GNU/Linux and Mac OS X:
|
For GNU/Linux and macOS, you must have GCC or Clang installed. For Windows, w64-mingw32-gcc is required.
|
||||||
|
|
||||||
```
|
```
|
||||||
cd inexact
|
cd inexact
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
For Microsoft Windows using cross compilation on GNU/Linux:
|
|
||||||
|
|
||||||
```
|
|
||||||
cd inexact
|
|
||||||
make windows
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Asymmetric encryption:
|
Asymmetric encryption:
|
||||||
@@ -139,4 +132,3 @@ Inexact is released under CC0 licence, except for this externals libraries:
|
|||||||
- https://nachtimwald.com/2017/09/24/hex-encode-and-decode-in-c/
|
- https://nachtimwald.com/2017/09/24/hex-encode-and-decode-in-c/
|
||||||
- https://github.com/argtable/argtable3
|
- https://github.com/argtable/argtable3
|
||||||
- https://github.com/dsprenkels/randombytes
|
- https://github.com/dsprenkels/randombytes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user