8d936e62558216412bdfdc559b6c82f4e58b2390
[NetworkManager.git] / src / Makefile.am
1 SUBDIRS= \
2         named-manager \
3         vpn-manager \
4         dhcp-manager \
5         supplicant-manager \
6         ppp-manager \
7         backends \
8         dnsmasq-manager \
9         modem-manager \
10         bluez-manager \
11         system-settings \
12         . \
13         tests
14
15 INCLUDES = -I${top_srcdir}                   \
16            -I${top_srcdir}/include           \
17            -I${top_builddir}/marshallers   \
18            -I${top_srcdir}/src/named-manager \
19            -I${top_srcdir}/src/vpn-manager   \
20            -I${top_srcdir}/src/dhcp-manager  \
21            -I${top_srcdir}/src/supplicant-manager  \
22            -I${top_srcdir}/src/dnsmasq-manager  \
23            -I${top_srcdir}/src/modem-manager  \
24            -I$(top_srcdir)/src/bluez-manager \
25            -I$(top_srcdir)/src/system-settings \
26            -I${top_srcdir}/libnm-util \
27            -I${top_srcdir}/libnm-glib \
28            -I${top_srcdir}/callouts
29
30 ###########################################
31 # DHCP test library
32 ###########################################
33
34 noinst_LTLIBRARIES = libtest-dhcp.la
35
36 libtest_dhcp_la_SOURCES = \
37         nm-ip4-config.c \
38         nm-hostname-provider.c \
39         nm-dbus-manager.c
40
41 libtest_dhcp_la_CPPFLAGS = \
42         $(GLIB_CFLAGS) \
43         $(DBUS_CFLAGS) \
44         $(LIBNL_CFLAGS)
45
46 libtest_dhcp_la_LIBADD = \
47         $(top_builddir)/libnm-util/libnm-util.la \
48         $(GLIB_LIBS) \
49         $(DBUS_LIBS) \
50         $(LIBNL_LIBS)
51
52
53 ###########################################
54 # NetworkManager
55 ###########################################
56
57 sbin_PROGRAMS = NetworkManager
58
59 NetworkManager_SOURCES = \
60                 nm-call-store.c \
61                 nm-call-store.h \
62                 nm-device.c \
63                 nm-device.h \
64                 nm-device-interface.c \
65                 nm-device-interface.h \
66                 nm-device-private.h \
67                 nm-device-ethernet.c \
68                 nm-device-ethernet.h \
69                 nm-device-wifi.c \
70                 nm-device-wifi.h \
71                 nm-device-olpc-mesh.c   \
72                 nm-device-olpc-mesh.h   \
73                 nm-device-bt.c \
74                 nm-device-bt.h \
75                 NetworkManagerAP.c \
76                 NetworkManagerAP.h \
77                 nm-dbus-manager.h \
78                 nm-dbus-manager.c \
79                 nm-udev-manager.c \
80                 nm-udev-manager.h \
81                 nm-hostname-provider.c \
82                 nm-hostname-provider.h \
83                 nm-ip4-config.c \
84                 nm-ip4-config.h \
85                 nm-ip6-config.c \
86                 nm-ip6-config.h \
87                 nm-secrets-provider-interface.c \
88                 nm-secrets-provider-interface.h \
89                 nm-active-connection.h \
90                 nm-active-connection.c \
91                 NetworkManager.c \
92                 NetworkManagerPolicy.c \
93                 NetworkManagerPolicy.h \
94                 NetworkManagerUtils.c \
95                 NetworkManagerUtils.h \
96                 NetworkManagerSystem.c \
97                 NetworkManagerSystem.h \
98                 nm-logging.c \
99                 nm-logging.h \
100                 nm-manager.c \
101                 nm-manager.h \
102                 nm-netlink-monitor.c \
103                 nm-netlink-monitor.h \
104                 nm-activation-request.c \
105                 nm-activation-request.h \
106                 nm-properties-changed-signal.c \
107                 nm-properties-changed-signal.h \
108                 wpa.c \
109                 wpa.h \
110                 nm-netlink.c \
111                 nm-netlink.h \
112                 nm-dhcp4-config.c \
113                 nm-dhcp4-config.h
114
115 nm-access-point-glue.h: $(top_srcdir)/introspection/nm-access-point.xml
116         dbus-binding-tool --prefix=nm_access_point --mode=glib-server --output=$@ $<
117
118 nm-manager-glue.h: $(top_srcdir)/introspection/nm-manager.xml
119         dbus-binding-tool --prefix=nm_manager --mode=glib-server --output=$@ $<
120
121 nm-device-interface-glue.h: $(top_srcdir)/introspection/nm-device.xml
122         dbus-binding-tool --prefix=nm_device_interface --mode=glib-server --output=$@ $<
123
124 nm-device-ethernet-glue.h: $(top_srcdir)/introspection/nm-device-ethernet.xml
125         dbus-binding-tool --prefix=nm_device_ethernet --mode=glib-server --output=$@ $<
126
127 nm-device-wifi-glue.h: $(top_srcdir)/introspection/nm-device-wifi.xml
128         dbus-binding-tool --prefix=nm_device_wifi --mode=glib-server --output=$@ $<
129
130 nm-device-bt-glue.h: $(top_srcdir)/introspection/nm-device-bt.xml
131         dbus-binding-tool --prefix=nm_device_bt --mode=glib-server --output=$@ $<
132
133 nm-device-olpc-mesh-glue.h: $(top_srcdir)/introspection/nm-device-olpc-mesh.xml
134         dbus-binding-tool --prefix=nm_device_olpc_mesh --mode=glib-server --output=$@ $<
135
136 nm-ip4-config-glue.h: $(top_srcdir)/introspection/nm-ip4-config.xml
137         dbus-binding-tool --prefix=nm_ip4_config --mode=glib-server --output=$@ $<
138
139 nm-ip6-config-glue.h: $(top_srcdir)/introspection/nm-ip6-config.xml
140         dbus-binding-tool --prefix=nm_ip6_config --mode=glib-server --output=$@ $<
141
142 nm-active-connection-glue.h: $(top_srcdir)/introspection/nm-active-connection.xml
143         dbus-binding-tool --prefix=nm_active_connection --mode=glib-server --output=$@ $<
144
145 nm-dhcp4-config-glue.h: $(top_srcdir)/introspection/nm-dhcp4-config.xml
146         dbus-binding-tool --prefix=nm_dhcp4_config --mode=glib-server --output=$@ $<
147
148 BUILT_SOURCES = \
149         nm-access-point-glue.h \
150         nm-manager-glue.h \
151         nm-device-interface-glue.h \
152         nm-device-ethernet-glue.h \
153         nm-device-wifi-glue.h \
154         nm-device-olpc-mesh-glue.h \
155         nm-device-bt-glue.h \
156         nm-ip4-config-glue.h \
157         nm-ip6-config-glue.h \
158         nm-active-connection-glue.h \
159         nm-dhcp4-config-glue.h
160
161 NetworkManager_CPPFLAGS = \
162         $(DBUS_CFLAGS) \
163         $(GLIB_CFLAGS) \
164         $(HAL_CFLAGS) \
165         $(GUDEV_CFLAGS) \
166         $(OPENSSL_CFLAGS) \
167         $(LIBNL_CFLAGS) \
168         $(GMODULE_CFLAGS) \
169         -DG_DISABLE_DEPRECATED \
170         -DBINDIR=\"$(bindir)\" \
171         -DSBINDIR=\"$(sbindir)\" \
172         -DLIBEXECDIR=\"$(libexecdir)\" \
173         -DDATADIR=\"$(datadir)\" \
174         -DSYSCONFDIR=\"$(sysconfdir)\" \
175         -DLOCALSTATEDIR=\"$(localstatedir)\" \
176         -DNM_RUN_DIR=\"$(rundir)\" \
177         -DNMLOCALEDIR=\"$(datadir)/locale\" \
178         -DARP_DEBUG
179
180 NetworkManager_LDADD = \
181         $(top_builddir)/marshallers/libmarshallers.la \
182         ./named-manager/libnamed-manager.la \
183         ./vpn-manager/libvpn-manager.la \
184         ./dhcp-manager/libdhcp-manager.la \
185         ./supplicant-manager/libsupplicant-manager.la \
186         ./dnsmasq-manager/libdnsmasq-manager.la \
187         ./ppp-manager/libppp-manager.la \
188         ./modem-manager/libmodem-manager.la \
189         ./bluez-manager/libbluez-manager.la \
190         ./system-settings/libsystem-settings.la \
191         ./backends/libnmbackend.la \
192         $(top_builddir)/libnm-util/libnm-util.la \
193         $(DBUS_LIBS) \
194         $(GLIB_LIBS) \
195         $(GUDEV_LIBS) \
196         $(LIBNL_LIBS) \
197         $(GMODULE_LIBS)
198
199 NetworkManager_LDFLAGS = -rdynamic
200
201 libexec_PROGRAMS = nm-crash-logger
202 nm_crash_logger_SOURCES = nm-crash-logger.c
203 nm_crash_logger_CPPFLAGS = \
204         $(GLIB_CFLAGS) \
205         -DG_DISABLE_DEPRECATED \
206         -DBINDIR=\"$(bindir)\" \
207         -DSBINDIR=\"$(sbindir)\" \
208         -DDATADIR=\"$(datadir)\" \
209         -DSYSCONFDIR=\"$(sysconfdir)\" \
210         -DLOCALSTATEDIR=\"$(localstatedir)\"
211 nm_crash_logger_LDADD = $(GLIB_LIBS)
212
213
214 NetworkManagerdir = $(datadir)/NetworkManager
215 NetworkManager_DATA = gdb-cmd
216
217 dbusservicedir = $(DBUS_SYS_DIR)
218 dbusservice_DATA = NetworkManager.conf
219
220 EXTRA_DIST = \
221         $(dbusservice_DATA) \
222         $(NetworkManager_DATA)
223
224 rundir=$(localstatedir)/run/NetworkManager
225 install-data-hook:
226         $(mkinstalldirs) -m 0700 $(DESTDIR)$(rundir)
227
228 CLEANFILES = $(BUILT_SOURCES)
229