summaryrefslogtreecommitdiff
path: root/config.mk
AgeCommit message (Collapse)Author
2016-03-21build: overhaul build system auto detect stuff using a configure scriptMarc André Tanner
The new build instructions are: $ ./configure && make && sudo make install The configure script tries to auto detect support for various libraries and compiler options. These choices can be overwritten by explicitly specifing --{en,dis}able-{lua,selinux,acl}. See ./configure --help for all supported options. The configure script generates config.mk which should allow portable (among GNU and BSD make) Makefiles. Manually editing config.mk is still supported.
2016-03-06build: remove hardening compiler flags for nowMarc André Tanner
They do not seem to be supported on all platforms (e.g. FreeBSD). Users who know what they are doing can still provide them via the regular $CFLAGS mechanism. Eventually these should be tested by a handwritten configure script and added to config.mk iff they are supported by the toolchain.
2016-02-28build: do not modify $CFLAGS directlyMarc André Tanner
These are picked-up by configure when building dependencies during make standalone.
2016-01-14build: cleanup $LIBS variableMarc André Tanner
2016-01-13Add -pedantic to debug CFLAGS and fix resulting warningsMarc André Tanner
2015-12-29Clean up build systemMarc André Tanner
2015-12-26vis: refactor Lua integrationMarc André Tanner
Lua support can now be disabled at compile time using: $ make CONFIG_LUA=0 This commit also adds an initial Lua API and provides a few default hooks. We now also require Lua >= 5.2 due to the uservalue constructs. In principle the same functionality could be implemented using function environments from Lua 5.1.
2015-11-08build: explicitly link againgst dlMarc André Tanner
For musl this is a nop, it contains the relevant code in libc and provides and empty libdl archive for compatibility. However certain glibc based system need it.
2015-11-08vis: try to support all lua versions >= 5.1Marc André Tanner
Make lpeg module table explicitly global, which should work with the different module loading semantics.
2015-11-08Overhaul build systemMarc André Tanner
Add separate per library {C,LD}FLAGS and use default values from pkg-config to allow for finer control. Disable pkg-config by setting PKG_CONFIG_PATH= PKG_CONFIG_LIBDIR= Override flags completely by specifying them as arguments to make: $ make CFLAGS_CURSES="your custom flags for curses" Also introduce a new, experimental Makefile target standalone. It tries to build a self contained statically linked vis binary. All dependencies (musl, ncurses, termkey, lua, lpeg) are build from source. Lua is patched to include lpeg as a statically built module.
2015-10-27build: merge parts of the build system changes from lua branchMarc André Tanner
Should hopefully fix build on Mac OS X.
2015-10-08build: always take revision from current branchMarc André Tanner
2015-10-06Change release tarball compression to gzipMarc André Tanner
2015-10-06add a new Makefile target 'release' to build release tarballChristian Hesse
2015-10-06update version handling to work with tags or without gitChristian Hesse
2015-10-05vis: rework input handling using libtermkeyMarc André Tanner
Key bindings are now specified as symbolic key strings, this will eventually allow run time configurable key mappings. This introduces a bulid time dependency on libtermkey which can be found at: http://www.leonerd.org.uk/code/libtermkey/
2015-07-06text: overhaul save implemenationMarc André Tanner
Try to do an atomic save using rename(2) unless * the file is a symbolic link * the file is a hard link * file ownership can not be preserved * file group can not be preserved * POSXI ACL can not be preserved (if enabled) * SELinux security context can not be preserved (if enabled) in which case the file is overwritten in place. However a failure to do so results in data loss. Closes #47.
2015-07-05make: only call uname once in config.mkMarc André Tanner
2015-04-22get version from gitChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2015-01-19OpenBSD links against ncursesJames Turner
2015-01-14Add hardening flags for gcc and clangjvoisin
2015-01-03Fix compilation on various *nix systemsMarc André Tanner
Unfortunately this breaks support for BSD make.
2014-10-23Move feature test macros to config.mkMarc André Tanner
2014-08-24Add work in progress editor frontendMarc André Tanner