summaryrefslogtreecommitdiff
path: root/src/Makefile
AgeCommit message (Collapse)Author
2024-02-27build: switch to POSIX makeSiva Mahadevan
2023-12-10Add -Wno-stringop-overflow for g++Chris Webb
g++ 13.x is confused by the reinterpret_cast in Kakoune's memory.hh allocator. Use -Wno-stringop-overflow to silence a large number of verbose false alarms.
2022-05-29make clean: also clean up generated version filesJohannes Altmanninger
We also discussed using "git clean -dXf" but that could remove files that were not generated by make. Closes #4619
2021-11-21Fix clang C++20 compilation issuesMaxime Coste
2021-11-21Reduce the amount of Regex VM Instruction codeMaxime Coste
Merge all lookarounds into the same instruction, merge splits, merge literal ignore case with literal... Besides reducing the amount of almost duplicated code, this improves performance by reducing pressure on the (often failing) branch target prediction for instruction dispatching by moving branches into the instruction code themselves where they are more likely to be well predicted.
2021-11-08src makefile: Install GDB types in debug modeFrank LENORMAND
2021-09-08src: Uninstall libexec properlyFrank LENORMAND
2021-07-12Remove references to ncurses in MakefileMaxime Coste
2020-12-25Avoid non-POSIX ln -r switchMaxime Coste
Fixes #3985
2020-12-09Add a libexec/ directory and use it to find the kak commandMaxime Coste
Add that libexec directory to the PATH instead of the current kak binary directory to avoid impacting other commands. The libexec directory currently only contains a symlink back to the Kakoune binary.
2020-10-19Fix wcwidth() compile error with MSYS2Nicolas Ouellet-payeur
We try to detect when compiling under Cygwin, so we can set the _XOPEN_SOURCE define which lets us use wcwidth(). We look for the string "CYGWIN" in the uname, which looks like: CYGWIN_NT-10.0 MSYS2 is also based on Cygwin, so all of the above should still work. However, we detect Cygwin by looking for the string "CYGWIN" in the uname. In MSYS2, the uname looks like: MSYS_NT-10.0-18362 This patch looks for the string "_NT" instead of the string "CYGWIN" in the uname, since it's common to both environments. This fixes a compilation error on MSYS2.
2020-09-18Add illumos/Solaris supportluka null
2020-03-12rc Makefile: Fix the predicate to detect `g++`Frank LENORMAND
Some distributions replace the expected "GCC" tag with their own name and version, causing the Makefile not to include a compiler flag.
2020-02-09src: Only remove objects and dependencies for the current targetFrank LENORMAND
2019-12-18Make possible to change compression for make distJiri Konecny
This will make possible to get the same archive from make dist as from GitHub archives. GitHub archives do not support current bzip2.
2019-10-17Split clang/gcc specific argumentsMaxime Coste
2019-09-17Added -Wno-init-list-lifetime to CXXFLAGSJustin Frank
2019-07-09Use -O0 for debug buildsMaxime Coste
-Og is not nice enough to work with in gdb, control jumps around in too unpredictible ways due to inlining.
2019-06-23Fix silly typoMaxime Coste
2019-06-23Put -Og flag in CXXFLAGS, not CPPFLAGSMaxime Coste
2019-06-23Merge remote-tracking branch 'eraserhd/debug-optimizations'Maxime Coste
2019-05-28Fix the man path for OpenBSDcodesoap
2019-05-28Avoid using gzips '-k' for compatibilitycodesoap
OpenBSD's gzip doesn't have '-k', but file redirection should work everywhere.
2019-05-21Add -Og for debug buildsJason Felice
On my system, some optimizations are on by default (NixOS), resulting in variables being optimized out on debug builds. It *seems to be* something about a "_FORTIFY_SOURCE" feature? In any case, `-Og` is documented as "Optimize debugging experience".
2019-03-26Only pass ncurses compilation flags to ncurses_ui.ccMaxime Coste
2019-03-22find $(sharedir)/rc ...Vladimir Bauer
2019-03-22undo clean sectionVladimir Bauer
2019-03-22call find in BSD compatible wayVladimir Bauer
2019-03-21Fixed makefile so properly installs new rc structureJustin Frank
2019-03-05Re-introduce -MP in the C++ compilation ruleMaxime Coste
It turns out it is important to avoid having to clean when a header is deleted.
2019-02-27-MP compile option isn't needed since header files aren't globbedJustin Frank
2019-02-27Fixed all reorder warningsJustin Frank
2019-02-27Fixed Selection being defined as a struct and classJustin Frank
2019-01-22Default to release buildMaxime Coste
Fixes #2701
2019-01-20Switch to compilation standard to C++17Maxime Coste
2018-12-19Add support for 'sanitizers=...' make optionMaxime Coste
Use make sanitizers=undefined,address to enable undefined and address sanitizers. Closes #2596
2018-12-06src: The `test` build target depends on `kak`Frank LENORMAND
Not having the `test` target (in the Makefile) depend on the `kak` one prevents users from running commands that make use of parallelism, e.g.: $ make -j all test The above command sometimes results in the test suite running before the binary has been compiled and symlinked, resulting in failures.
2018-10-23Keep doc/kak.1 when running make-installJustin Frank
2018-10-23Fix Makefile for manpageMaxim Baz
2018-10-21doc: Convert the man page to the TROFF formatFrank LENORMAND
Fixes #2504
2018-09-04Remove leading v in archive names when generating releasesMaxime Coste
2018-07-26Cleanup some trailing whitespaces and double semicolonMaxime Coste
2018-06-20Pass in OpenBSD binary path using preprocessor optiondahlbaek
Alternative to hard coding binary path for OpenBSD
2018-06-20Adds openbsd supportPatrick Marchand
Seems to work on openbsd 6.3-current but needs more testing. Had to hardcode the binary path as openbsd considers getting the executable path at runtime a security flaw.
2018-04-22remove dragonflybsd specific logic since pkg-config works perfectly fine nowStephen Hassard
2018-04-14Makefile: use git-describe to get the version stringMaxime Coste
That means we can just tag releases and the version will be taken from the tag to generate the tarball.
2018-04-10Makefile: formatting fixMaxime Coste
2018-04-09Makefile: add a dist target to generate a tarballMaxime Coste
2018-02-22src makefile: Fix the `--static` flag passed to `pkg-config`Frank LENORMAND
2018-02-18Makefile: use PKG_CONFIG to get static compilation flags as wellMaxime Coste