Link all enabled libstrongswan plugins into the library, link all enabled charon plugins into libcharon.
This commit is contained in:
+116
-10
@@ -122,166 +122,272 @@ if USE_CAPABILITIES
|
||||
charon_LDADD += -lcap
|
||||
endif
|
||||
|
||||
if MONOLITHIC
|
||||
lib_LTLIBRARIES = libcharon.la
|
||||
charon_LDADD += $(top_builddir)/src/charon/libcharon.la
|
||||
libcharon_la_SOURCES =
|
||||
libcharon_la_LIBADD =
|
||||
endif
|
||||
|
||||
# build optional plugins
|
||||
########################
|
||||
|
||||
SUBDIRS = .
|
||||
SUBDIRS =
|
||||
PLUGINS = ${libstrongswan_plugins}
|
||||
|
||||
if USE_LOAD_TESTER
|
||||
SUBDIRS += plugins/load_tester
|
||||
PLUGINS += load-tester
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/load_tester/libstrongswan-load-tester.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_KERNEL_PFKEY
|
||||
SUBDIRS += plugins/kernel_pfkey
|
||||
PLUGINS += kernel-pfkey
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/kernel_pfkey/libstrongswan-kernel-pfkey.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_KERNEL_PFROUTE
|
||||
SUBDIRS += plugins/kernel_pfroute
|
||||
PLUGINS += kernel-pfroute
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/kernel_pfroute/libstrongswan-kernel-pfroute.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_KERNEL_KLIPS
|
||||
SUBDIRS += plugins/kernel_klips
|
||||
PLUGINS += kernel-klips
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/kernel_klips/libstrongswan-kernel-klips.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_KERNEL_NETLINK
|
||||
SUBDIRS += plugins/kernel_netlink
|
||||
PLUGINS += kernel-netlink
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/kernel_netlink/libstrongswan-kernel-netlink.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_SOCKET_DEFAULT
|
||||
SUBDIRS += plugins/socket_default
|
||||
PLUGINS += socket-default
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/socket_default/libstrongswan-socket-default.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_SOCKET_RAW
|
||||
SUBDIRS += plugins/socket_raw
|
||||
PLUGINS += socket-raw
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/socket_raw/libstrongswan-socket-raw.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_SOCKET_DYNAMIC
|
||||
SUBDIRS += plugins/socket_dynamic
|
||||
PLUGINS += socket-dynamic
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/socket_dynamic/libstrongswan-socket-dynamic.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_STROKE
|
||||
SUBDIRS += plugins/stroke
|
||||
PLUGINS += stroke
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/stroke/libstrongswan-stroke.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_SMP
|
||||
SUBDIRS += plugins/smp
|
||||
PLUGINS += smp
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/smp/libstrongswan-smp.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_SQL
|
||||
SUBDIRS += plugins/sql
|
||||
PLUGINS += sql
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/sql/libstrongswan-sql.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_UPDOWN
|
||||
SUBDIRS += plugins/updown
|
||||
PLUGINS += updown
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/updown/libstrongswan-updown.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_ATTR
|
||||
SUBDIRS += plugins/attr
|
||||
PLUGINS += attr
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/attr/libstrongswan-attr.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_EAP_IDENTITY
|
||||
SUBDIRS += plugins/eap_identity
|
||||
PLUGINS += eap-identity
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/eap_identity/libstrongswan-eap-identity.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_EAP_SIM
|
||||
SUBDIRS += plugins/eap_sim
|
||||
PLUGINS += eap-sim
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/eap_sim/libstrongswan-eap-sim.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_EAP_SIM_FILE
|
||||
SUBDIRS += plugins/eap_sim_file
|
||||
PLUGINS += eap-sim-file
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/eap_sim_file/libstrongswan-eap-sim-file.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_EAP_SIMAKA_PSEUDONYM
|
||||
SUBDIRS += plugins/eap_simaka_pseudonym
|
||||
PLUGINS += eap-simaka-pseudonym
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/eap_simaka_pseudonym/libstrongswan-eap-simaka-pseudonym.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_EAP_SIMAKA_REAUTH
|
||||
SUBDIRS += plugins/eap_simaka_reauth
|
||||
PLUGINS += eap-simaka-reauth
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/eap_simaka_reauth/libstrongswan-eap-simaka-reauth.la
|
||||
endif
|
||||
|
||||
if USE_EAP_MD5
|
||||
SUBDIRS += plugins/eap_md5
|
||||
PLUGINS += eap-md5
|
||||
endif
|
||||
|
||||
if USE_EAP_GTC
|
||||
SUBDIRS += plugins/eap_gtc
|
||||
PLUGINS += eap-gtc
|
||||
endif
|
||||
|
||||
if USE_EAP_AKA
|
||||
SUBDIRS += plugins/eap_aka
|
||||
PLUGINS += eap-aka
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/eap_aka/libstrongswan-eap-aka.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_EAP_AKA_3GPP2
|
||||
SUBDIRS += plugins/eap_aka_3gpp2
|
||||
PLUGINS += eap-aka-3gpp2
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/eap_aka_3gpp2/libstrongswan-eap-aka-3gpp2.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_SIMAKA
|
||||
if MONOLITHIC
|
||||
# otherwise this library is linked to both the eap_aka and the eap_sim plugin
|
||||
libcharon_la_LIBADD += $(top_builddir)/src/libsimaka/libsimaka.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_EAP_MD5
|
||||
SUBDIRS += plugins/eap_md5
|
||||
PLUGINS += eap-md5
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/eap_md5/libstrongswan-eap-md5.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_EAP_GTC
|
||||
SUBDIRS += plugins/eap_gtc
|
||||
PLUGINS += eap-gtc
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/eap_gtc/libstrongswan-eap-gtc.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_EAP_MSCHAPV2
|
||||
SUBDIRS += plugins/eap_mschapv2
|
||||
PLUGINS += eap-mschapv2
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/eap_mschapv2/libstrongswan-eap-mschapv2.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_EAP_RADIUS
|
||||
SUBDIRS += plugins/eap_radius
|
||||
PLUGINS += eap-radius
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/eap_radius/libstrongswan-eap-radius.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_MEDSRV
|
||||
SUBDIRS += plugins/medsrv
|
||||
PLUGINS += medsrv
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/medsrv/libstrongswan-medsrv.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_MEDCLI
|
||||
SUBDIRS += plugins/medcli
|
||||
PLUGINS += medcli
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/medcli/libstrongswan-medcli.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_NM
|
||||
SUBDIRS += plugins/nm
|
||||
PLUGINS += nm
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/nm/libstrongswan-nm.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_RESOLVE
|
||||
SUBDIRS += plugins/resolve
|
||||
PLUGINS += resolve
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_ANDROID
|
||||
SUBDIRS += plugins/android
|
||||
PLUGINS += android
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/android/libstrongswan-android.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_UCI
|
||||
SUBDIRS += plugins/uci
|
||||
PLUGINS += uci
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/uci/libstrongswan-uci.la
|
||||
endif
|
||||
endif
|
||||
|
||||
if USE_UNIT_TESTS
|
||||
SUBDIRS += plugins/unit_tester
|
||||
PLUGINS += unit-tester
|
||||
if MONOLITHIC
|
||||
libcharon_la_LIBADD += plugins/unit_tester/libstrongswan-unit-tester.la
|
||||
endif
|
||||
endif
|
||||
|
||||
AM_CFLAGS += -DPLUGINS=\""${PLUGINS}\""
|
||||
|
||||
Reference in New Issue
Block a user