Reputation: 2915
Recently I read the source code of strongswan. And I found this piece of script in one Makefile.am. I didn't see plugin_LTLIBRARIES
before. I searched on the internet. Most of the result is Makefile.am files. Is is a M4 macro or a buildin variable? What's the usage of it?
if MONOLITHIC
noinst_LTLIBRARIES = libstrongswan-socket-default.la
else
plugin_LTLIBRARIES = libstrongswan-socket-default.la
endif
Upvotes: 3
Views: 592
Reputation: 18667
Any automake variable of the form foo_PRIMARY
installs to $(foodir)
. $(plugindir)
might be set via AC_SUBST
in configure.ac
.
m4
isn't used in handling Makefile.am
. They're parsed with automake
, a perl program, because the logic involved in building the Makefile.in
template is much more subtle than straight macro expansion.
Upvotes: 4