opts
This commit is contained in:
@@ -5,10 +5,14 @@
|
||||
# single-header nlohmann/json.hpp (no extra dependency).
|
||||
# If your headers/libs live in a non-standard prefix, override, e.g.:
|
||||
# make CPPFLAGS="-I/opt/include" LDLIBS="-L/opt/lib -lcurl -lreadline"
|
||||
#
|
||||
# 32-bit build: make 32bit
|
||||
# Or: make CXXFLAGS="-m32" LDFLAGS="-m32"
|
||||
# Large file support on 32-bit: make CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
|
||||
|
||||
CXX = c++
|
||||
CXXFLAGS = -std=c++20 -Wall -Wextra -Wpedantic -O1 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE
|
||||
CPPFLAGS = -I/usr/local/include -I.
|
||||
CPPFLAGS = -I/usr/local/include -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
|
||||
LDLIBS = -L/usr/local/lib -lcurl -lreadline
|
||||
|
||||
# Location of the AddressSanitizer/UBSan runtime libraries plus a replacement
|
||||
@@ -61,3 +65,11 @@ install: bantam
|
||||
# the replacement libasan_preinit.o, and sets an rpath so they load at run time.
|
||||
debug:
|
||||
$(MAKE) CXXFLAGS="$(CXXFLAGS) -g -O0 -fsanitize=address,undefined -B$(ASANDIR) -Wl,-rpath,$(ASANDIR)" bantam
|
||||
|
||||
# 32-bit build target
|
||||
# Usage: make 32bit
|
||||
# This builds a 32-bit binary with large file support enabled.
|
||||
32bit:
|
||||
$(MAKE) CXXFLAGS="$(CXXFLAGS) -m32" LDFLAGS="-m32" bantam
|
||||
|
||||
.PHONY: clean install debug 32bit
|
||||
Reference in New Issue
Block a user