summaryrefslogtreecommitdiff
path: root/src/dhcp-manager/Makefile.am
blob: 14ddde0bd29f0d8afe903d23b5df68c737810642 (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
SUBDIRS=. tests

INCLUDES = \
	-I${top_srcdir} \
	-I${top_srcdir}/include \
	-I${top_builddir}/marshallers \
	-I${top_srcdir}/src/logging \
	-I${top_srcdir}/libnm-util \
	-I${top_srcdir}/src

noinst_LTLIBRARIES = libdhcp-manager.la libdhcp-dhclient.la

################## dhclient ##################

libdhcp_dhclient_la_SOURCES = \
	nm-dhcp-dhclient-utils.h \
	nm-dhcp-dhclient-utils.c \
	nm-dhcp-dhclient.h \
	nm-dhcp-dhclient.c

libdhcp_dhclient_la_CPPFLAGS = \
	$(DBUS_CFLAGS) \
	$(GLIB_CFLAGS) \
	-DG_DISABLE_DEPRECATED \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-DLIBEXECDIR=\"$(libexecdir)\" \
	-DLOCALSTATEDIR=\"$(localstatedir)\" \
	-DDHCLIENT_PATH=\"$(DHCLIENT_PATH)\" \
	-DDHCLIENT_V$(DHCLIENT_VERSION)

libdhcp_dhclient_la_LIBADD = \
	$(top_builddir)/marshallers/libmarshallers.la \
	$(top_builddir)/src/logging/libnm-logging.la \
	$(top_builddir)/libnm-util/libnm-util.la \
	$(DBUS_LIBS) \
	$(GLIB_LIBS)

################## main lib ##################

libdhcp_manager_la_SOURCES = \
	nm-dhcp-client.c \
	nm-dhcp-client.h \
	nm-dhcp-manager.c \
	nm-dhcp-manager.h \
	nm-dhcp-dhcpcd.h \
	nm-dhcp-dhcpcd.c

libdhcp_manager_la_CPPFLAGS = \
	$(DBUS_CFLAGS) \
	$(GLIB_CFLAGS) \
	-DG_DISABLE_DEPRECATED \
	-DLIBEXECDIR=\"$(libexecdir)\" \
	-DLOCALSTATEDIR=\"$(localstatedir)\" \
	-DDHCLIENT_PATH=\"$(DHCLIENT_PATH)\" \
	-DDHCPCD_PATH=\"$(DHCPCD_PATH)\"

libdhcp_manager_la_LIBADD = \
	$(top_builddir)/marshallers/libmarshallers.la \
	$(top_builddir)/src/logging/libnm-logging.la \
	$(builddir)/libdhcp-dhclient.la \
	$(DBUS_LIBS) \
	$(GLIB_LIBS)