mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
Make life easier for package maintainers by not forcing architecture or compiler optimizations by default. E.g., Gentoo QA refuses to accept both "-march=native" and "-O3". These are usually provided by the package tooling. Instead, we provide easily accessible templates in "makeflags". Signed-off-by: Kai Krakow <kai@kaishome.de>
12 lines
376 B
Plaintext
12 lines
376 B
Plaintext
# Default:
|
|
CCFLAGS = -Wall -Wextra -Werror -I../include -fpic -D_FILE_OFFSET_BITS=64
|
|
|
|
# Optimized:
|
|
# CCFLAGS = -Wall -Wextra -Werror -O3 -march=native -I../include -fpic -D_FILE_OFFSET_BITS=64
|
|
|
|
# Debug:
|
|
# CCFLAGS = -Wall -Wextra -Werror -O0 -I../include -ggdb -fpic -D_FILE_OFFSET_BITS=64
|
|
|
|
CFLAGS += $(CCFLAGS) -std=c99
|
|
CXXFLAGS += $(CCFLAGS) -std=c++11 -Wold-style-cast
|