summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2017-05-30Makefile - expand targets for portabilityLaslo Hunhold
Reading the standard thoroughly revealed that the only way to really get a portable Makefile is to list each target explicitly, so that's what we'll do now here.
2017-05-29Makefile-workaround for OpenBSDLaslo Hunhold
Thanks Hiltjo for reporting this! For some reason, OpenBSD make does not add $(BIN).o to the dependency list when it sees the $(BIN) target rule. It does so however when it does the conversion from .c to .o. This behaviour is unique for OpenBSD make as far as I've seen, and for the time being, this workaround will manually add the object to the dependency list. This is not POSIX compliant and in GNU make it just evaluates to an empty string, but it works until this has been investigated further.
2017-05-01Rename TOOL-LDFLAGS to TOOL-LDLIBS, fix order and add explicit .c.oLaslo Hunhold
The tool-specific flags were LDLIBS and not LDFLAGS, because we specify the libraries we want to link in, not flags to the linker itself. The order was broken as it didn't allow -Wl,--as-needed or other things highly dependent on the order of arguments. I also wanted to add an explicit .c.o suffix rule. This way, it is clearer what is happening in the Makefile and the form of compilation output is controllable.
2017-04-16Bring cc-command-line in orderLaslo Hunhold
Of course, you want the libraries to come last in order of execution. Additionally, in case the libraries provided with $($*-LDFLAGS) contain unresolved symbols, we want to give the opportunity for the user to provide the necessary general symbols, whatever they may be, last. Thanks Duncaen for reporting this!
2017-04-14Update the Makefile to reflect TODO has been removedLaslo Hunhold
2017-04-14Add PNG-LDFLAGS and JPG-LDFLAGS in config.mkLaslo Hunhold
instead of per-tool-settings.
2017-04-02Remove prerequisite from single-suffix inference ruleLaslo Hunhold
This is against the standard: "The application shall ensure that the makefile does not specify prerequisites for inference rules;"[0] We are still fine though as we explicitly state the dependency on the requisite-objects in the $(BIN)-target. Thanks Lucas for pointing this out! [0]:http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
2017-03-30Mark explicit dependency on requisites for BINLaslo Hunhold
2017-03-30Pass LDFLAGS instead of CFLAGS in the linking stageLaslo Hunhold
2017-03-30No need to keep the implicit build ruleLaslo Hunhold
2017-03-30Make Makefile strictly POSIX compliantLaslo Hunhold
Thanks Hiltjo for the feedback! GNUisms need to be avoided like a plague, even if it means having to be a little more creative. Strict POSIX compliance means that I just worked within the bounds of the POSIX specification, hopefully without using any GNU or BSD extensions. If I did, please let me know. Tip to all Linux users: Test your Makefiles with pmake(1) instead of make(1) (= GNU make) and refer to the newest POSIX 2016 make specification[0]. [0]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
2017-03-29Rename PREREQ to REQLaslo Hunhold
2017-03-29Overhaul Build-systemLaslo Hunhold
I didn't like the current Makefiles. They were too crufted and not elegant. Additionally, given I'm planning to put some utility functions into a util.{c|h}-prerequisite, I wrote this new Makefile with PREREQs in mind.
2017-01-09Add ff2pam(1): convert farbfeld to 16-bit RGBA Portable Arbitrary MapMattias Andrée
Laslo: Minor changes Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-05-18Makefile improvementsHiltjo Posthuma
- fix: rebuild on source change. - allow to override dependency flag per tool (the ones that have deps). - rebuild on config.mk or headers change.
2016-05-18Revert "Fix Makefile to rebuild when there have been changes"FRIGN
This reverts commit 545c500d4278c50e781c9a5a550e92cb0023c8e8.
2016-05-17Fix Makefile to rebuild when there have been changesFRIGN
I forgot to add the dependencies in the build process
2016-04-03Remove line-breaks from MakefileFRIGN
Even though I like line-length limits, it imposed a useless limitation on the console output, given the line input is variable.
2016-04-03Makefile improvementsHiltjo Posthuma
- be verbose by default: don't hide the executed commands. - no need to make clean on make dist, but make sure to have a clean directory. - define 2ff in ${SCRIPTS}. - make dist: gzip directly, don't store intermediate step (faster for make dist on floppies). - don't cd into directories, just loop each file.
2016-04-03add ff2jpg tool, convert farbfeld images to RGB JPEGHiltjo Posthuma
2016-04-03don't link against unneeded libsHiltjo Posthuma
- jpg2ff requires libjpeg - ff2png, png2ff requires libpng (and libz) - ff2ppm has no dependencies
2016-03-21add ff2ppm(1)Hiltjo Posthuma
ff2ppm can convert farbfeld images to PPM (P6 binary format, 24-bit RGB). ff2ppm has an option -b to set the background color, for example for png files: png2ff < test.png | ff2ppm -b '#00ff00' > test.ppm
2016-01-06Add 'dist' to .PHONYFRIGN
Thanks Dimitris for reporting this!
2016-01-06Bump version to 1FRIGN
And add a makerule to create a tarball via make dist.
2016-01-05Use consistent {} in MakefileFRIGN
2016-01-05Quote paths in MakefileFRIGN
Thanks quinq for reporting this!
2016-01-05Fix Makefile+config.mkFRIGN
I forgot that we can't just cd. It has to be a &&-statement. Also, uncomplicate the output.
2016-01-05Add tool manpages and set up the Makefile to install the manualsFRIGN
While at it, refactor the makefile a bit.
2015-11-23(Re)add jpg2ffFRIGN
Thanks z3bra for porting this! Also change 2ff to use case instead of if-blocks.
2015-11-17Add 2ff utilityFRIGN
This is a wrapper for the different conversion utilities with filetype detection using file(1) and an imagemagick fallback.
2015-11-10Fix Makefile-commentFRIGN
2015-11-10Overhaul buildsystemFRIGN
2015-11-09imagefile -> farbfeldFRIGN
- Rename the format - Change the format specification - Drop old tools waiting to be fixed on a later date, just keep fixed png for now - Simplify other stuff This is a direct consequence of my slcon2-talk on this topic. At first I planned to have 64 bits per channel, but this is overkill.
2015-02-03Add gif2if procedure to MakefileFRIGN
Thanks to Henrique Lengler <henriqueleng@opmbx.org> for the patch!
2014-07-31Makefile: prefer lib flags over general LDFLAGSHiltjo Posthuma
2014-07-29add gif2ifHiltjo Posthuma
2014-07-29add jpg2ifHiltjo Posthuma
2014-07-20Use if-extension and naming for imagefileFRIGN
Respectively, image.png will become an image.if
2014-07-19Initial commitFRIGN