From 88752ef895635794f5034a29bb0c603c109cb65d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 27 Feb 2017 20:11:56 +0000 Subject: [PATCH] Compile optimized and debug into different files, make `kak` a symlink --- src/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 6f4ad230..58f9c042 100644 --- a/src/Makefile +++ b/src/Makefile @@ -62,7 +62,11 @@ endif CXXFLAGS += -pedantic -std=gnu++11 -g -Wall -Wextra -Wno-unused-parameter -Wno-reorder -Wno-sign-compare -Wno-address all : kak -kak : $(objects) + +kak : kak$(suffix) + ln -sf $< $@ + +kak$(suffix) : $(objects) $(CXX) $(LDFLAGS) $(CXXFLAGS) $(objects) $(LIBS) -o $@ -include $(deps) @@ -132,4 +136,4 @@ uninstall: $(mandir)/kak.1.gz .PHONY: check TAGS clean distclean installdirs install install-strip uninstall -.PHONY: tags test man doc +.PHONY: tags test man doc kak