<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lopsub/Makefile, branch debian</title>
<subtitle>lopsub - the long option parser for subcommands</subtitle>
<id>https://git.tue.mpg.de/cgit/lopsub/atom?h=debian</id>
<link rel='self' href='https://git.tue.mpg.de/cgit/lopsub/atom?h=debian'/>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/lopsub/'/>
<updated>2025-09-20T16:21:32Z</updated>
<entry>
<title>Rework Makefile to support cross compilation.</title>
<updated>2025-09-20T16:21:32Z</updated>
<author>
<name>Helmut Grohne</name>
<email>helmut@subdivi.de</email>
</author>
<published>2025-09-20T15:31:40Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/lopsub/commit/?id=39704690138edb4885580a7d1f275ed4e84f9538'/>
<id>urn:sha1:39704690138edb4885580a7d1f275ed4e84f9538</id>
<content type='text'>
Build lopsubgen twice during cross compilation since it is both run and
installed. This will enable cross building liblopsub on other distributions
such as Yocto or PtxDist.

Signed-off-by: Andre Noll &lt;maan@tuebingen.mpg.de&gt;
</content>
</entry>
<entry>
<title>build: Never remove any intermediate files.</title>
<updated>2025-09-20T16:21:32Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2025-09-20T15:52:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/lopsub/commit/?id=f647d02195ffb2a24b43e67f8e5b2d1d95bc89da'/>
<id>urn:sha1:f647d02195ffb2a24b43e67f8e5b2d1d95bc89da</id>
<content type='text'>
Defining .SECONDARY instructs make(1) to never drop the files generated by lex.
This avoids spurious rebuilds, speeding up the build.
</content>
</entry>
<entry>
<title>build: Honor LDFLAGS</title>
<updated>2024-05-10T01:20:48Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2024-04-24T02:41:47Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/lopsub/commit/?id=dc9482e2e30b96e2902235a907d5c5d8c7c24197'/>
<id>urn:sha1:dc9482e2e30b96e2902235a907d5c5d8c7c24197</id>
<content type='text'>
It's good practice to include CPPFLAGS, CFLAGS and LDFLAGS in the
rules which invoke the linker. We already do this for the former two,
so do the same with LDFLAGS as well.
</content>
</entry>
<entry>
<title>Add target to create a static library.</title>
<updated>2024-02-25T16:04:30Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2023-10-30T16:55:24Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/lopsub/commit/?id=92e558a3df52b9a1dcfdf1a018c5268081d52b47'/>
<id>urn:sha1:92e558a3df52b9a1dcfdf1a018c5268081d52b47</id>
<content type='text'>
It's sometimes handy to create a static version of the library,
although this is generally frowned upon. No standard target depends
on the new liblopsub.a target, so the static library is not build by
default. One has to explicitly run "make liblopsub.a" to build it.
</content>
</entry>
<entry>
<title>Makefile: Include Makefile.local if it exists.</title>
<updated>2023-11-07T14:03:13Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2023-10-31T20:55:53Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/lopsub/commit/?id=94ee4f0831ad0c3de5eabd821a8bd42c86571a30'/>
<id>urn:sha1:94ee4f0831ad0c3de5eabd821a8bd42c86571a30</id>
<content type='text'>
This provides a way to support local recipes.
</content>
</entry>
<entry>
<title>Makefile: Add -ffile-prefix-map to CC to avoid embedding build paths.</title>
<updated>2023-06-27T21:05:32Z</updated>
<author>
<name>Vagrant Cascadian</name>
<email>vagrant@reproducible-builds.org</email>
</author>
<published>2023-06-27T21:04:56Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/lopsub/commit/?id=0a3588cdf56966a58decbbf62793dcc90217651c'/>
<id>urn:sha1:0a3588cdf56966a58decbbf62793dcc90217651c</id>
<content type='text'>
Signed-off-by: Andre Noll &lt;maan@tuebingen.mpg.de&gt;
</content>
</entry>
<entry>
<title>build: Error out on implicit function declarations.</title>
<updated>2021-04-28T21:16:13Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2021-04-25T22:57:12Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/lopsub/commit/?id=45901057b4103eeb745e080521678c0e43e0eca1'/>
<id>urn:sha1:45901057b4103eeb745e080521678c0e43e0eca1</id>
<content type='text'>
Replacing lopsub.h by an empty file builds a buggy lopsubgen-stage1
executable which segfaults due to a format string mismatch caused
by the implicit declaration of lls_version(). In this package all
functions are supposed to be declared, so let's fail the build if
any undeclared functions are found.

Tested-by: Alex Gietz &lt;oss@mcdinner.de&gt;
</content>
</entry>
<entry>
<title>build: Improve handling of compiler options.</title>
<updated>2021-04-28T21:16:13Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2021-04-25T22:56:16Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/lopsub/commit/?id=73d2280b56e07b3115c14deaa994114a462afd33'/>
<id>urn:sha1:73d2280b56e07b3115c14deaa994114a462afd33</id>
<content type='text'>
Introduce LLS_CFLAGS and STRICT_CFLAGS to avoid duplicating the flags
in the various cc recipes. We don't touch CFLAGS or CPPFLAGS in the
Makefile but include it the cc commands to let the user override
our settings.
</content>
</entry>
<entry>
<title>build: Activate .DELETE_ON_ERROR.</title>
<updated>2021-04-28T21:15:33Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2021-04-25T22:17:37Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/lopsub/commit/?id=c1840c5bb555ba09c09bdeb2f29305681038317f'/>
<id>urn:sha1:c1840c5bb555ba09c09bdeb2f29305681038317f</id>
<content type='text'>
Since m4 lacks the -o option to specify an output file, we redirect
stdout in several recipes, in particular in the recipe that creates
lopsub.h from lopsub.h.m4. If the m4 command fails, lopsub.h will
be incomplete or empty, yet it will be considered as up-to-date
by make(1).

This patch teaches make(1) to remove such incomplete output files
on errors.
</content>
</entry>
<entry>
<title>build: Bail out early if m4 or lex don't exist.</title>
<updated>2021-04-28T21:04:10Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2021-04-25T22:04:05Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/lopsub/commit/?id=7623e601612eb36cf86511b40fef3f5a20e8b834'/>
<id>urn:sha1:7623e601612eb36cf86511b40fef3f5a20e8b834</id>
<content type='text'>
This gives a decent error message on the attempt to run make(1) on a
system where one or both of these essential programs are not installed.

A previous version of the patch used .SHELLSTATUS instead of the
dummy variable, but this did not work with make-4.1 which ships
with Ubuntu-18.04.

Suggested-by: Alex Gietz &lt;oss@mcdinner.de&gt;
</content>
</entry>
</feed>
