summaryrefslogtreecommitdiff
path: root/Makefile.plugins
diff options
context:
space:
mode:
authorMohamed Abbas <mabbas@linux.intel.com>2011-01-27 07:55:28 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2011-01-27 09:55:58 (GMT)
commit34e443e71e5c3c96fe9a29ca3f92e9769ab3ea69 (patch)
tree05d6c35ce805cf478798c8ca2cd06377a949cada /Makefile.plugins
parent5b1ff66fe2922078a130f4ac21dfb701dcfe30e7 (diff)
downloadconnman-34e443e71e5c3c96fe9a29ca3f92e9769ab3ea69.zip
connman-34e443e71e5c3c96fe9a29ca3f92e9769ab3ea69.tar.gz
connman-34e443e71e5c3c96fe9a29ca3f92e9769ab3ea69.tar.bz2
Makefile: Add build suppport for the vpnc plugin
Diffstat (limited to 'Makefile.plugins')
-rw-r--r--Makefile.plugins28
1 files changed, 24 insertions, 4 deletions
diff --git a/Makefile.plugins b/Makefile.plugins
index d8ca1b1..e87f10b 100644
--- a/Makefile.plugins
+++ b/Makefile.plugins
@@ -100,6 +100,7 @@ if OPENCONNECT
if OPENCONNECT_BUILTIN
builtin_modules += openconnect
builtin_sources += plugins/openconnect.c
+builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
builtin_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
else
plugin_LTLIBRARIES += plugins/openconnect.la
@@ -117,6 +118,7 @@ if OPENVPN
if OPENVPN_BUILTIN
builtin_modules += openvpn
builtin_sources += plugins/openvpn.c
+builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
builtin_cflags += -DOPENVPN=\"@OPENVPN@\"
else
plugin_LTLIBRARIES += plugins/openvpn.la
@@ -130,14 +132,26 @@ plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
endif
endif
-if OPENCONNECT_BUILTIN
-builtin_sources += plugins/vpn.c plugins/vpn.h
+if VPNC
+if VPNC_BUILTIN
+builtin_modules += vpnc
+builtin_sources += plugins/vpnc.c
+builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
+builtin_cflags += -DVPNC=\"@VPNC@\"
else
-if OPENVPN_BUILTIN
-builtin_sources += plugins/vpn.c plugins/vpn.h
+plugin_LTLIBRARIES += plugins/vpnc.la
+plugin_objects += $(plugins_vpnc_la_OBJECTS)
+plugins_vpnc_la_SOURCES = plugins/vpn.h plugins/vpn.c \
+ plugins/vpnc.c
+plugins_vpnc_la_CFLAGS = $(plugin_cflags) -DVPNC=\"@VPNC@\" \
+ -DSTATEDIR=\""$(statedir)"\" \
+ -DSCRIPTDIR=\""$(build_scriptdir)"\"
+plugins_vpnc_la_LDFLAGS = $(plugin_ldflags)
endif
endif
+builtin_sources += $(builtin_vpn_sources)
+
if PORTAL
if PORTAL_BUILTIN
builtin_modules += portal
@@ -231,6 +245,12 @@ if OPENCONNECT
script_PROGRAMS += scripts/openconnect-script
scripts_openconnect_script_LDADD = @DBUS_LIBS@
+else
+if VPNC
+script_PROGRAMS += scripts/openconnect-script
+
+scripts_openconnect_script_LDADD = @DBUS_LIBS@
+endif
endif
if OPENVPN