diff --git a/Makefile b/Makefile index 665d37c..1d9d68d 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,5 @@ CXXFLAGS = -std=c++11 -LDFLAGS = -lcurses -lboost_regex -LDCONFIG = $(shell which ldconfig 2>/dev/null || echo /sbin/ldconfig) -ifneq (,$(findstring libtinfo,$(shell $(LDCONFIG) -p))) -LDFLAGS += -ltinfo -endif - +LDFLAGS = $(shell pkg-config --libs ncurses) -lboost_regex BINS = regex .PHONY: all