aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2017-11-26Update loader unit testsHarry Jeffery
2017-11-23Provide default global config fileHarry Jeffery
2016-11-22Unconditionally echo build commandsDmitrij D. Czarkoff
2016-11-22Simplify VERSION handlingDmitrij D. Czarkoff
Also, use default abbreviation length, so that abbreviated object name in VERSION would match github's display of commit IDs.
2016-11-22Separate preprocessor flags from compiler flags, libs from linker flagsDmitrij D. Czarkoff
PR #98 hints that we were venturing into downstream's territory: compiler and linker flags may be OS-specific, while preprocessor flags and libraries are our responsibility. Provide clean separation between these categories. Downstreams may still need to provide "--std=c99" in CFLAGS though.
2016-10-22Release v2.1.3Harry Jeffery
2016-05-25Fix the linking order of tests in the Makefile for --as-neededGöktürk Yüksek
When '--as-needed' linker flag is added to LDFLAGS, linker strips out the symbols from the libraries needed for the tests due to the order in which the libraries appear on the command line. List the source files before the libraries to fix the linking issue. For more information, see: https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed#Importance_of_linking_order Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>
2016-05-15Release v2.1.2Harry Jeffery
2016-05-13Fix build of imv on GNU libcDmitrij D. Czarkoff
Previously imv used -std=gnu11 flag which activated GNU "extensions" of C11 standard. This masked a portability issue in imv: strduo(3) should not have been visible in `src/loader.c` without inclusion of `<string.h>` header. This have been fixed. To remidy GNU libc's stange choice to hide X/Open interfaces in C99 code by default _XOPEN_SOURCE macro was also set. (This should have no effect on most other platforms.)
2016-05-13Release v2.1.1Dmitrij D. Czarkoff
2016-05-12Fix compatibility with older gcc versionsDmitrij D. Czarkoff
2016-04-27Release v2.1.0Harry Jeffery
2016-04-25Include git commit hash in version numberDmitrij D. Czarkoff
When operating in git repo, build system will include abbreviated git hash in imv version number. If there is no git repo around (eg. building from tarball), fall back to version number in Makefile. Fixes #90
2016-02-25Remove duplicated "-g" flagDmitrij D. Czarkoff
2016-02-21Fix "check" targetDmitrij D. Czarkoff
for i in "..."; do ...; done ideom guarantees single iteration with $i set to everything between "in" and ';'.
2016-02-21Force "-g" flag for testsDmitrij D. Czarkoff
2016-02-08Release imv v2.0.0Harry Jeffery
2015-12-28Add -Wmissing-prototypes to default CFLAGSDmitrij D. Czarkoff
2015-12-27Drop "obj" targetDmitrij D. Czarkoff
It was introduced to make object files depend on $(BUILDDIR) so that creating it could be moved into separate rule, executed once. That was a bad idea, because "obj" had to be phony, thus making all targets that depend on it obsolete between runs of make. This change introduces order-only rule that makes object files depend on $(BUILDDIR) without obsoleting other targets.
2015-12-26Use simply expanded variables wherever possibleDmitrij D. Czarkoff
Recursively expanded variables (VAR = CONTENT) are evaluated when used. Simply extended variables (VAR := CONTENT) are expanded immediately, and remain stable throughout lifetime of the process, reducing fragility of build system.
2015-12-26Generate all files in build directoryDmitrij D. Czarkoff
* Allow building off read-only source tree. * Allow setting build directory from environment. These changes allow parallel building of imv for multiple architectures, which is used by package management systems of some operating systems.
2015-12-26Make "uninstall" target remove the same files "install" installsDmitrij D. Czarkoff
2015-12-25Fix verbose buildDmitrij D. Czarkoff
2015-12-25Add verbose modeDmitrij D. Czarkoff
If V variable is set to any value, commands will be echoed to standard output.
2015-12-25Make installation locations more configurableDmitrij D. Czarkoff
This might be desired when platform has its own, custom layout (eg. OpenBSD or Solaris), or when user wants to install the program to his home directory.
2015-12-25Use "shell" macro in CFLAGSDmitrij D. Czarkoff
When CFLAGS contain "`cmd`" construct, the "cmd" command is executed every time when make issues shell command with expanded CFLAGS. Using "$(shell cmd)" instead forces make to expand output of "cmd" into CFLAGS.
2015-12-25Respect default CFLAGS and LDFLAGS if set in environmentDmitrij D. Czarkoff
Some package management systems allow users to set default CFLAGS and LDFLAGS and then supply them to the make via environment. This change makes build infrastructure respect such settings. Also, don't force non-essential flags.
2015-12-25Use "PREFIX" instead of "prefix"Dmitrij D. Czarkoff
Most package management systems already expect "PREFIX" macro to control installation path.
2015-12-12Fixed linking order to properly link libraries. Linking failed priorKenneth Hanley
2015-12-11Release v1.2.0Harry Jeffery
2015-12-10Tell gcc to be pedanticHarry Jeffery
2015-12-08Add testing infrastructureHarry Jeffery
2015-11-29Document pthreads dependencyHarry Jeffery
The linking argument isn't strictly needed, since SDL pulls that in, but there's no harm in manually specifying it for people reading the Makefile to see.
2015-11-22Add make uninstall ruleHarry Jeffery
2015-11-19Use fontconfig to search for fontsHarry Jeffery
2015-11-17Add an overlay option '-d'.Harry Jeffery
TODO: The font needs to be configurable with an option. Refs #35
2015-11-14Release v1.1.0Harry Jeffery
2015-11-12Add a imv.desktop fileGuillaume Brogi
2015-11-11Release version v1.0.0Harry Jeffery
2015-11-11Fix makefileHarry Jeffery
2015-11-11Print version information in helpHarry Jeffery
2015-11-11Improve MakefileHarry Jeffery
2015-11-11Move manpage into doc directoryHarry Jeffery
2015-11-11Update makefile to use a build directoryHarry Jeffery
2015-11-10Add debug targetHarry Jeffery
2015-11-10Separate viewport logic into imv_viewportJose Diez
2015-11-10Create manpageHarry Jeffery
2015-11-10Use new image classHarry Jeffery
2015-11-10Use navigator class to manage input filesHarry Jeffery
2015-11-10Use new imv_texture classHarry Jeffery