summaryrefslogtreecommitdiff
path: root/libnm/Makefile.am
blob: 21390ece99843401f94e9d94a9a66fcdd81baad0 (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
include $(GLIB_MAKEFILE)

SUBDIRS = . tests

AM_CPPFLAGS = \
	-I$(top_srcdir)/include \
	-I$(top_builddir)/introspection \
	-I$(top_srcdir)/libnm-core \
	-I$(top_builddir)/libnm-core \
	-I$(top_srcdir)/libnm \
	-I$(top_builddir)/libnm \
	-DG_LOG_DOMAIN=\""libnm"\" \
	-DNETWORKMANAGER_COMPILATION \
	-DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
	$(GLIB_CFLAGS) \
	$(GUDEV_CFLAGS) \
	-DNMRUNDIR=\"$(nmrundir)\"

include $(top_srcdir)/libnm-core/Makefile.libnm-core

# libnm

lib_LTLIBRARIES = libnm.la

libnmincludedir = $(includedir)/libnm

libnminclude_hfiles =			\
	NetworkManager.h		\
	nm-access-point.h		\
	nm-active-connection.h		\
	nm-client.h			\
	nm-device-adsl.h		\
	nm-device-bond.h		\
	nm-device-bridge.h		\
	nm-device-bt.h			\
	nm-device-ethernet.h		\
	nm-device-generic.h		\
	nm-device-infiniband.h		\
	nm-device-modem.h		\
	nm-device-olpc-mesh.h		\
	nm-device-team.h		\
	nm-device-vlan.h		\
	nm-device-wifi.h		\
	nm-device-wimax.h		\
	nm-device.h			\
	nm-dhcp4-config.h		\
	nm-dhcp6-config.h		\
	nm-enum-types.h			\
	nm-ip4-config.h			\
	nm-ip6-config.h			\
	nm-object.h			\
	nm-remote-connection.h		\
	nm-secret-agent.h		\
	nm-types.h			\
	nm-vpn-connection.h		\
	nm-vpn-plugin-ui-interface.h	\
	nm-vpn-plugin-utils.h		\
	nm-wimax-nsp.h

libnminclude_nointrospect_hfiles =	\
	nm-vpn-plugin-old.h

libnminclude_HEADERS =			\
	$(libnminclude_hfiles)		\
	$(libnminclude_nointrospect_hfiles)

libnm_la_private_headers =		\
	nm-dbus-helpers.h		\
	nm-device-private.h		\
	nm-manager.h			\
	nm-object-cache.h		\
	nm-object-private.h		\
	nm-remote-connection-private.h	\
	nm-remote-settings.h

libnm_la_csources =			\
	nm-access-point.c		\
	nm-active-connection.c		\
	nm-client.c			\
	nm-dbus-helpers.c		\
	nm-device-adsl.c		\
	nm-device-bond.c		\
	nm-device-bridge.c		\
	nm-device-bt.c			\
	nm-device-ethernet.c		\
	nm-device-generic.c		\
	nm-device-infiniband.c		\
	nm-device-modem.c		\
	nm-device-olpc-mesh.c		\
	nm-device-team.c		\
	nm-device-vlan.c		\
	nm-device-wifi.c		\
	nm-device-wimax.c		\
	nm-device.c			\
	nm-dhcp4-config.c		\
	nm-dhcp6-config.c		\
	nm-enum-types.c			\
	nm-ip4-config.c			\
	nm-ip6-config.c			\
	nm-manager.c			\
	nm-object-cache.c		\
	nm-object.c			\
	nm-remote-connection.c		\
	nm-remote-settings.c		\
	nm-secret-agent.c		\
	nm-vpn-connection.c		\
	nm-vpn-plugin-old.c		\
	nm-vpn-plugin-ui-interface.c	\
	nm-vpn-plugin-utils.c		\
	nm-wimax-nsp.c

libnm_la_SOURCES =			\
	$(libnm_la_csources)		\
	$(libnm_la_private_headers)

GLIB_GENERATED = nm-enum-types.h nm-enum-types.c
nm_enum_types_sources = $(libnminclude_HEADERS)
GLIB_MKENUMS_H_FLAGS = --identifier-prefix NM --fhead '\#include <nm-core-enum-types.h>\n'
GLIB_MKENUMS_C_FLAGS = --identifier-prefix NM

libnm_la_LIBADD = \
	$(top_builddir)/libnm-core/libnm-core.la \
	$(top_builddir)/introspection/libnmdbus.la \
	$(GLIB_LIBS) \
	$(UUID_LIBS) \
	$(GUDEV_LIBS)

SYMBOL_VIS_FILE=$(srcdir)/libnm.ver

libnm_la_LDFLAGS = -Wl,--version-script=$(SYMBOL_VIS_FILE) \
	-version-info "0:0:0"

###

BUILT_SOURCES = $(GLIB_GENERATED)

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libnm.pc

DISTCLEANFILES = libnm.pc

EXTRA_DIST = libnm.pc.in libnm.ver

CLEANFILES = $(BUILT_SOURCES)

-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_COMPILER_ARGS =			\
	--includedir=$(top_srcdir)/libnm-core	\
	--includedir=$(top_builddir)/libnm-core	\
	--includedir=$(top_srcdir)/libnm	\
	--includedir=$(top_builddir)/libnm

if HAVE_INTROSPECTION
introspection_sources =				\
	$(libnm_core_headers)			\
	$(libnminclude_hfiles)			\
	$(libnm_core_sources)			\
	$(libnm_la_csources)

NM-1.0.gir: libnm.la
NM_1_0_gir_INCLUDES = Gio-2.0
NM_1_0_gir_PACKAGES = gio-2.0 gudev-1.0
NM_1_0_gir_EXPORT_PACKAGES = libnm
NM_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
NM_1_0_gir_LIBS = libnm.la
NM_1_0_gir_FILES = $(introspection_sources)
NM_1_0_gir_SCANNERFLAGS = --warn-all --identifier-prefix=NM --symbol-prefix=nm
INTROSPECTION_GIRS += NM-1.0.gir

girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)

typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)

CLEANFILES += $(gir_DATA) $(typelib_DATA)
endif

check-local:
	$(top_srcdir)/tools/check-exports.sh $(builddir)/.libs/libnm.so $(SYMBOL_VIS_FILE)