diff --git a/src/Makefile b/src/Makefile index 46893db8..966582d4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,5 @@ debug ?= yes +static ?= no pedantic ?= yes ifeq ($(debug),yes) @@ -58,6 +59,11 @@ else LDFLAGS += -rdynamic endif +ifeq ($(static),yes) + LIBS += -ltinfo -lgpm + LDFLAGS += -static -pthread +endif + CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -Wno-address all : kak