aboutsummaryrefslogblamecommitdiffstats
path: root/optimised.mk
blob: 3891e856e7de95ed01d048943e118b8ab6bd9fe8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                                              
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man

# These have not been extensively tested but appear to:
#     * Produce false warnings
#     * Slowdown the library's performance
#   -flto -flto-compression-level -flto-partition={1to1,balanced,mix,none} -flto-report -flto-report-wpa -fwpa
CCOPTIMISE = -falign-functions=0 -fkeep-inline-functions -fmerge-all-constants -Ofast
LDOPTIMISE = -s

CFLAGS   = -std=c99 -Wall -Wextra $(CCOPTIMISE)
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
LDFLAGS  = $(LDOPTIMISE)