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 += -DGETRANDOM -DARG_REPLACE_GETOPT=0
|
||||
LDFLAGS=-lm -s
|
||||
|
||||
default: inexact
|
||||
|
||||
windows: CC=x86_64-w64-mingw32-gcc
|
||||
windows: CFLAGS=-Wall -Werror -pthread -O3 -g0
|
||||
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: CFLAGS=-Wall -Werror -pthread -O0 -g
|
||||
debug: CFLAGS += -DGETRANDOM -DARG_REPLACE_GETOPT=0
|
||||
debug: LDFLAGS=-lm
|
||||
debug: inexact
|
||||
|
||||
|
||||
Reference in New Issue
Block a user