summaryrefslogtreecommitdiff
path: root/libnm-util/Makemodule.am
blob: e6b30b054f3a1b592350c5b9a05c3f28f4031452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
#SUBDIRS = . tests

libnm_util_common_cppflags = \
	-I${top_srcdir} \
	-I${top_srcdir}/shared \
	-I$(top_builddir)/shared \
	-I${top_srcdir}/libnm-util \
	-I$(top_builddir)/libnm-util \
	-DG_LOG_DOMAIN=\""libnm-util"\" \
	-DLOCALEDIR=\"$(datadir)/locale\" \
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB_LEGACY \
	$(GLIB_CFLAGS) \
	$(DBUS_CFLAGS) \
	$(UUID_CFLAGS)

if WITH_GNUTLS
libnm_util_common_cppflags += $(GNUTLS_CFLAGS)
endif

if WITH_NSS
libnm_util_common_cppflags += $(NSS_CFLAGS)
endif

lib_LTLIBRARIES += libnm-util/libnm-util.la

libnm_util_libnm_util_la_CPPFLAGS = $(libnm_util_common_cppflags)

libnmutilinclude_HEADERS = 		\
	$(top_builddir)/shared/nm-version-macros.h \
	libnm-util/NetworkManager.h		\
	libnm-util/NetworkManagerVPN.h		\
	libnm-util/nm-connection.h			\
	libnm-util/nm-setting.h			\
	libnm-util/nm-setting-8021x.h		\
	libnm-util/nm-setting-adsl.h		\
	libnm-util/nm-setting-bluetooth.h		\
	libnm-util/nm-setting-bond.h		\
	libnm-util/nm-setting-team.h		\
	libnm-util/nm-setting-team-port.h		\
	libnm-util/nm-setting-bridge.h		\
	libnm-util/nm-setting-bridge-port.h	\
	libnm-util/nm-setting-connection.h		\
	libnm-util/nm-setting-dcb.h                \
	libnm-util/nm-setting-infiniband.h		\
	libnm-util/nm-setting-ip4-config.h		\
	libnm-util/nm-setting-vlan.h		\
	libnm-util/nm-setting-ip6-config.h		\
	libnm-util/nm-setting-ppp.h		\
	libnm-util/nm-setting-pppoe.h		\
	libnm-util/nm-setting-serial.h		\
	libnm-util/nm-setting-generic.h		\
	libnm-util/nm-setting-gsm.h		\
	libnm-util/nm-setting-cdma.h		\
	libnm-util/nm-setting-olpc-mesh.h		\
	libnm-util/nm-setting-wimax.h		\
	libnm-util/nm-setting-wired.h		\
	libnm-util/nm-setting-wireless.h		\
	libnm-util/nm-setting-wireless-security.h	\
	libnm-util/nm-setting-vpn.h		\
	libnm-util/nm-utils.h \
	libnm-util/nm-version.h

nodist_libnmutilinclude_HEADERS = \
	libnm-util/nm-utils-enum-types.h

libnm_util_libnm_util_la_private_headers = \
	shared/nm-shared-utils.h \
	libnm-util/crypto.h			\
	libnm-util/nm-dbus-glib-types.h		\
	libnm-util/nm-gvaluearray-compat.h		\
	libnm-util/nm-param-spec-specialized.h	\
	libnm-util/nm-setting-private.h		\
	libnm-util/nm-utils-private.h

libnm_util_libnm_util_la_sources = \
	shared/nm-shared-utils.c \
	libnm-util/crypto.c			\
	libnm-util/nm-connection.c			\
	libnm-util/nm-param-spec-specialized.c	\
	libnm-util/nm-setting.c			\
	libnm-util/nm-setting-8021x.c		\
	libnm-util/nm-setting-adsl.c		\
	libnm-util/nm-setting-bluetooth.c		\
	libnm-util/nm-setting-bond.c		\
	libnm-util/nm-setting-team.c		\
	libnm-util/nm-setting-team-port.c		\
	libnm-util/nm-setting-bridge.c		\
	libnm-util/nm-setting-bridge-port.c	\
	libnm-util/nm-setting-connection.c		\
	libnm-util/nm-setting-dcb.c                \
	libnm-util/nm-setting-infiniband.c		\
	libnm-util/nm-setting-ip4-config.c		\
	libnm-util/nm-setting-vlan.c		\
	libnm-util/nm-setting-ip6-config.c		\
	libnm-util/nm-setting-ppp.c		\
	libnm-util/nm-setting-pppoe.c		\
	libnm-util/nm-setting-serial.c		\
	libnm-util/nm-setting-generic.c		\
	libnm-util/nm-setting-gsm.c		\
	libnm-util/nm-setting-cdma.c		\
	libnm-util/nm-setting-olpc-mesh.c		\
	libnm-util/nm-setting-wimax.c		\
	libnm-util/nm-setting-wired.c		\
	libnm-util/nm-setting-wireless.c		\
	libnm-util/nm-setting-wireless-security.c	\
	libnm-util/nm-setting-vpn.c		\
	libnm-util/nm-utils-enum-types.c		\
	libnm-util/nm-utils.c			\
	libnm-util/nm-value-transforms.c

libnm_util_libnm_util_la_SOURCES = \
	$(libnm_util_libnm_util_la_sources) \
	$(libnm_util_libnm_util_la_private_headers)

GLIB_GENERATED += libnm-util/nm-utils-enum-types.h libnm-util/nm-utils-enum-types.c
nm_utils_enum_types_sources = $(filter-out %NetworkManagerVPN.h,$(filter-out %NetworkManager.h,$(libnmutilinclude_HEADERS)))
nm_utils_enum_types_MKENUMS_H_FLAGS = --identifier-prefix NM
nm_utils_enum_types_MKENUMS_C_FLAGS = --identifier-prefix NM

libnm_util_libnm_util_la_LIBADD = $(GLIB_LIBS) $(DBUS_LIBS) $(UUID_LIBS)

libnm_util_libnm_util_la_LDFLAGS = \
	-Wl,--version-script=$(srcdir)/libnm-util/libnm-util.ver \
	-version-info "9:0:7"

if WITH_GNUTLS
libnm_util_libnm_util_la_SOURCES += libnm-util/crypto_gnutls.c
libnm_util_libnm_util_la_LIBADD += libnm-util/$(GNUTLS_LIBS)
endif

if WITH_NSS
libnm_util_libnm_util_la_SOURCES += libnm-util/crypto_nss.c
libnm_util_libnm_util_la_LIBADD += $(NSS_LIBS)
endif

###########################################
# Crypto test library
###########################################

noinst_LTLIBRARIES += libnm-util/libtest-crypto.la

libnm_util_libtest_crypto_la_CPPFLAGS = $(libnm_util_common_cppflags)

libnm_util_libtest_crypto_la_SOURCES = libnm-util/crypto.c

libnm_util_libtest_crypto_la_LIBADD = \
	$(GLIB_LIBS)

if WITH_GNUTLS
libnm_util_libtest_crypto_la_SOURCES += libnm-util/crypto_gnutls.c
libnm_util_libtest_crypto_la_LIBADD += $(GNUTLS_LIBS)
endif

if WITH_NSS
libnm_util_libtest_crypto_la_SOURCES += libnm-util/crypto_nss.c
libnm_util_libtest_crypto_la_LIBADD += $(NSS_LIBS)
endif

pkgconfig_DATA += libnm-util/libnm-util.pc

DISTCLEANFILES += libnm-util/libnm-util.pc

EXTRA_DIST += libnm-util/libnm-util.pc.in libnm-util/libnm-util.ver

INTROSPECTION_SCANNER_ARGS += --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS += --includedir=$(srcdir)

if HAVE_INTROSPECTION
libnm_util_NetworkManager-1.0.gir: libnm-util/libnm-util.la
libnm_util_NetworkManager_1_0_gir_INCLUDES = GObject-2.0 DBusGLib-1.0
libnm_util_NetworkManager_1_0_gir_PACKAGES = gobject-2.0 dbus-glib-1
libnm_util_NetworkManager_1_0_gir_EXPORT_PACKAGES = libnm-util/libnm-util
libnm_util_NetworkManager_1_0_gir_CFLAGS = $(libnm_util_common_cppflags) -I$(top_srcdir)/libnm-util
libnm_util_NetworkManager_1_0_gir_LIBS = libnm-util/libnm-util.la
libnm_util_NetworkManager_1_0_gir_FILES = \
	$(libnmutilinclude_HEADERS) \
	$(nodist_libnmutilinclude_HEADERS) \
	$(libnm_util_libnm_util_la_sources)
libnm_util_NetworkManager_1_0_gir_SCANNERFLAGS = --warn-all --identifier-prefix=NM --symbol-prefix=nm

INTROSPECTION_GIRS += libnm-util/NetworkManager-1.0.gir
typelib_DATA += libnm-util/NetworkManager-1.0.typelib
endif

if ENABLE_TESTS

CHECK_LOCALS += check-local-libnm-utils

check-local-libnm-utils:
	$(top_srcdir)/tools/check-exports.sh $(builddir)/.libs/libnm-util.so $(srcdir)/libnm-util/libnm-util.ver

endif