You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
1.9 KiB

Index: src/Makefile
--- src/Makefile.orig 2018-05-01 14:48:55.000000000 +0200
+++ src/Makefile 2018-05-01 14:50:19.793896000 +0200
@@ -13,7 +13,7 @@
suffix := .debug
else
ifeq ($(debug),no)
- CXXFLAGS += -O3
+ CXXFLAGS += -O2
suffix := .opt
else
$(error debug should be either yes or no)
@@ -37,36 +37,17 @@
DESTDIR ?= # root dir
bindir := $(DESTDIR)$(PREFIX)/bin
-sharedir := $(DESTDIR)$(PREFIX)/share/kak
-docdir := $(DESTDIR)$(PREFIX)/share/doc/kak
-mandir := $(DESTDIR)$(PREFIX)/share/man/man1
+sharedir := $(DESTDIR)$(PREFIX)/share/kakoune
+docdir := $(DESTDIR)$(PREFIX)/share/kakoune/doc
+mandir := $(DESTDIR)$(PREFIX)/man/man1
os := $(shell uname)
-ifeq ($(os),Darwin)
- LIBS += -lncurses
- CPPFLAGS += -I$(PREFIX)/opt/ncurses/include -I/opt/local/include
- LDFLAGS += -L$(PREFIX)/opt/ncurses/lib -L/opt/local/lib
-else ifeq ($(os),FreeBSD)
- LIBS += -ltinfow -lncursesw
- CPPFLAGS += -I/usr/local/include
- LDFLAGS += -L/usr/local/lib
-else ifeq ($(os),Haiku)
- LIBS += -lncursesw -lnetwork -lbe
-else ifneq (,$(findstring CYGWIN,$(os)))
- CPPFLAGS += -D_XOPEN_SOURCE=700
- LIBS += -lncursesw -ldbghelp
-else
- ifeq ($(PKG_CONFIG),)
- $(error "pkg-config not found in PATH")
- endif
-
- LIBS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs ncursesw)
- CPPFLAGS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags ncursesw)
- LDFLAGS += -rdynamic
-endif
+LIBS += -lncursesw -lboost_regex
+CPPFLAGS += -I$(PREFIX)/include -I$(PREFIX)/include/ncurses
+LDFLAGS += -L$(PREFIX)/lib
-CXXFLAGS += -pedantic -std=gnu++14 -g -Wall -Wextra -Wno-unused-parameter -Wno-reorder -Wno-sign-compare -Wno-address -Wno-noexcept-type -Wno-unknown-attributes -Wno-unknown-warning-option
+CXXFLAGS += -std=gnu++14 -Wno-unused-parameter -Wno-reorder -Wno-sign-compare -Wno-address -Wno-noexcept-type -Wno-unknown-attributes -Wno-unknown-warning-option
all : kak