Re: [PATCH nft 5/6] build: drop recursive make for "examples/Makefile.am"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2023-09-08 at 13:09 +0200, Phil Sutter wrote:
> On Fri, Aug 25, 2023 at 01:27:37PM +0200, Thomas Haller wrote:
> [...]
> > +check_PROGRAMS += examples/nft-buffer
> > +
> > +examples_nft_buffer_AM_CPPFLAGS = -I$(srcdir)/include
> > +examples_nft_buffer_LDADD = src/libnftables.la
> > +
> > +check_PROGRAMS += examples/nft-json-file
> > +
> > +examples_nft_json_file_AM_CPPFLAGS = -I$(srcdir)/include
> > +examples_nft_json_file_LDADD = src/libnftables.la
> 
> Does this replace or extend AM_CPPFLAGS/LDADD for the example
> programs?
> IOW, do the global AM_CPPFLAGS added in the previous patch leak into
> the
> example program compile calls or not?
> 
> Cheers, Phil
> 


Replace.


Described here:
https://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html

Basically, if you explicitly define CFLAGS,CPPFLAGS,LDFLAGS,etc for a
target like

inst_LTLIBRARIES = /path/to/libtarget.la
path_to_libtarget_CPPFLAGS = -ABC

then this gets build with $(path_to_libtarget_CPPFLAGS) $(CPPFLAGS).

Otherwise, it gets $(AM_CPPFLAGS) $(CPPFLAGS)



Thomas





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux