summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-12 17:32:14 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-12 17:32:14 -0400
commit002752da62a8256ba21c36b7434fba53cf5a8a5e (patch)
tree5d94ef0fc66a89569c5eeeb77e69b1be6d5cf09f
parent13a925d50d2d9d2a2b90da53c2e01de56763f12c (diff)
more
-rw-r--r--config.mk.in4
-rw-r--r--src/Makefile13
-rw-r--r--src/grp-resolve/nss-resolve/Makefile2
-rw-r--r--src/grp-resolve/systemd-resolved/Makefile14
l---------src/grp-resolve/systemd-resolved/gcrypt-util.c1
l---------src/grp-resolve/systemd-resolved/gcrypt-util.h1
-rw-r--r--src/grp-resolve/systemd-resolved/resolved-dns-server.c2
-rw-r--r--src/grp-resolve/systemd-resolved/resolved-dns-transaction.c2
-rw-r--r--src/grp-resolve/systemd-resolved/resolved-dns-trust-anchor.c2
-rw-r--r--src/grp-resolve/systemd-resolved/resolved-manager.c1
-rw-r--r--src/grp-timedate/systemd-timedated/Makefile2
-rw-r--r--src/grp-timedate/timedatectl/Makefile3
-rw-r--r--src/initctl/Makefile3
-rw-r--r--src/libsystemd-network/Makefile3
14 files changed, 39 insertions, 14 deletions
diff --git a/config.mk.in b/config.mk.in
index b4724b2b69..310f4c07f8 100644
--- a/config.mk.in
+++ b/config.mk.in
@@ -112,8 +112,8 @@ libsystemd-internal.CPPFLAGS = $(libbasic.CPPFLAGS) $(libsystemd.CPPFLAG
libsystemd-internal.DEPENDS = $(libbasic.DEPENDS) $(topoutdir)/src/libsystemd/libsystemd-internal/libsystemd-internal.la
libsystemd-journal-internal.CPPFLAGS = $(libsystemd.CPPFLAGS)
libsystemd-journal-internal.DEPENDS = $(topoutdir)/src/libsystemd/libsystemd-journal-internal/libsystemd-journal-internal.la
-#libsystemd-network.CPPFLAGS =
-#libsystemd-network.DEPENDS =
+libsystemd-network.CPPFLAGS = -I$(topsrcdir)/src/libsystemd-network -I$(topsrcdir)/src/libudev/src $(libsystemd.CPPFLAGS)
+libsystemd-network.DEPENDS = $(topoutdir)/src/libsystemd-network/libsystemd-network.la
libsystemd.CPPFLAGS = -I$(topsrcdir)/src/libsystemd/include
libsystemd.DEPENDS = $(topoutdir)/src/libsystemd/libsystemd.la
libudev.CPPFLAGS = -I$(topsrcdir)/src/libudev/include
diff --git a/src/Makefile b/src/Makefile
index e8448ad975..6265c3fe89 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -29,13 +29,22 @@ at.subdirs += grp-coredump
#at.subdirs += grp-journal
#at.subdirs += grp-journal-remote
#at.subdirs += grp-machine
-#at.subdirs += grp-resolve
-
+at.subdirs += grp-resolve
+#at.subdirs += grp-system
+at.subdirs += grp-timedate
+#at.subdirs += grp-hostname
+#at.subdirs += grp-import
+at.subdirs += initctl
+at.subdirs += kernel-install
at.subdirs += libbasic
+#at.subdirs += libcore
at.subdirs += libfirewall
at.subdirs += libshared
at.subdirs += libsystemd
+at.subdirs += libsystemd-network
at.subdirs += libudev
+#at.subdirs += grp-locale
+
at.subdirs += systemd-nspawn
include $(topsrcdir)/build-aux/Makefile.tail.mk
diff --git a/src/grp-resolve/nss-resolve/Makefile b/src/grp-resolve/nss-resolve/Makefile
index acfbe831ae..8ac66b2f7c 100644
--- a/src/grp-resolve/nss-resolve/Makefile
+++ b/src/grp-resolve/nss-resolve/Makefile
@@ -43,4 +43,6 @@ libnss_resolve_la_LIBADD = \
lib_LTLIBRARIES += \
libnss_resolve.la
+systemd.CPPFLAGS += -I$(topsrcdir)/src/libsystemd/libsystemd-internal/sd-bus
+
include $(topsrcdir)/build-aux/Makefile.tail.mk
diff --git a/src/grp-resolve/systemd-resolved/Makefile b/src/grp-resolve/systemd-resolved/Makefile
index 30f9c9c9c9..0677403a03 100644
--- a/src/grp-resolve/systemd-resolved/Makefile
+++ b/src/grp-resolve/systemd-resolved/Makefile
@@ -24,16 +24,13 @@ include $(dir $(lastword $(MAKEFILE_LIST)))/../../../config.mk
include $(topsrcdir)/build-aux/Makefile.head.mk
-$(outdir)/dns_type-list.txt: src/resolve/dns-type.h
- $(AM_V_at)$(MKDIR_P) $(dir $@)
+$(outdir)/dns_type-list.txt: $(srcdir)/dns-type.h
$(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
-$(outdir)/dns_type-to-name.h: src/resolve/dns_type-list.txt
- $(AM_V_at)$(MKDIR_P) $(dir $@)
+$(outdir)/dns_type-to-name.h: $(outdir)/dns_type-list.txt
$(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@
-$(outdir)/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
- $(AM_V_at)$(MKDIR_P) $(dir $@)
+$(outdir)/dns_type-from-name.gperf: $(outdir)/dns_type-list.txt
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
ifneq ($(ENABLE_RESOLVED),)
@@ -224,4 +221,9 @@ EXTRA_DIST += \
units/systemd-resolved.service.m4.in \
src/resolve/resolved.conf.in
+
+$(outdir)/dns-type.o: $(outdir)/dns_type-from-name.h $(outdir)/dns_type-to-name.h
+systemd.CPPFLAGS += -I$(topsrcdir)/src/libsystemd/libsystemd-internal/sd-bus
+systemd.CPPFLAGS += -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\"
+
include $(topsrcdir)/build-aux/Makefile.tail.mk
diff --git a/src/grp-resolve/systemd-resolved/gcrypt-util.c b/src/grp-resolve/systemd-resolved/gcrypt-util.c
new file mode 120000
index 0000000000..79dc82a466
--- /dev/null
+++ b/src/grp-resolve/systemd-resolved/gcrypt-util.c
@@ -0,0 +1 @@
+../../libshared/gcrypt-util.c \ No newline at end of file
diff --git a/src/grp-resolve/systemd-resolved/gcrypt-util.h b/src/grp-resolve/systemd-resolved/gcrypt-util.h
new file mode 120000
index 0000000000..6da58160eb
--- /dev/null
+++ b/src/grp-resolve/systemd-resolved/gcrypt-util.h
@@ -0,0 +1 @@
+../../libshared/gcrypt-util.h \ No newline at end of file
diff --git a/src/grp-resolve/systemd-resolved/resolved-dns-server.c b/src/grp-resolve/systemd-resolved/resolved-dns-server.c
index 3095c042db..dedc9beb19 100644
--- a/src/grp-resolve/systemd-resolved/resolved-dns-server.c
+++ b/src/grp-resolve/systemd-resolved/resolved-dns-server.c
@@ -17,7 +17,7 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <sd-messages.h>
+#include <systemd/sd-messages.h>
#include "alloc-util.h"
#include "resolved-dns-server.h"
diff --git a/src/grp-resolve/systemd-resolved/resolved-dns-transaction.c b/src/grp-resolve/systemd-resolved/resolved-dns-transaction.c
index a4a67623e7..1b4b2b804b 100644
--- a/src/grp-resolve/systemd-resolved/resolved-dns-transaction.c
+++ b/src/grp-resolve/systemd-resolved/resolved-dns-transaction.c
@@ -17,7 +17,7 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <sd-messages.h>
+#include <systemd/sd-messages.h>
#include "af-list.h"
#include "alloc-util.h"
diff --git a/src/grp-resolve/systemd-resolved/resolved-dns-trust-anchor.c b/src/grp-resolve/systemd-resolved/resolved-dns-trust-anchor.c
index 77370e7dd5..0972792341 100644
--- a/src/grp-resolve/systemd-resolved/resolved-dns-trust-anchor.c
+++ b/src/grp-resolve/systemd-resolved/resolved-dns-trust-anchor.c
@@ -17,7 +17,7 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <sd-messages.h>
+#include <systemd/sd-messages.h>
#include "alloc-util.h"
#include "conf-files.h"
diff --git a/src/grp-resolve/systemd-resolved/resolved-manager.c b/src/grp-resolve/systemd-resolved/resolved-manager.c
index 7166b94d71..c447ff63af 100644
--- a/src/grp-resolve/systemd-resolved/resolved-manager.c
+++ b/src/grp-resolve/systemd-resolved/resolved-manager.c
@@ -28,7 +28,6 @@
#include "fileio-label.h"
#include "hostname-util.h"
#include "io-util.h"
-#include "netlink-util.h"
#include "network-internal.h"
#include "ordered-set.h"
#include "parse-util.h"
diff --git a/src/grp-timedate/systemd-timedated/Makefile b/src/grp-timedate/systemd-timedated/Makefile
index b3288b22b1..b1f80252e8 100644
--- a/src/grp-timedate/systemd-timedated/Makefile
+++ b/src/grp-timedate/systemd-timedated/Makefile
@@ -62,4 +62,6 @@ polkitpolicy_in_files += \
EXTRA_DIST += \
units/systemd-timedated.service.in
+systemd.CPPFLAGS += -I$(topsrcdir)/src/libsystemd/libsystemd-internal/sd-bus
+
include $(topsrcdir)/build-aux/Makefile.tail.mk
diff --git a/src/grp-timedate/timedatectl/Makefile b/src/grp-timedate/timedatectl/Makefile
index c1be945443..1dfb81c2f6 100644
--- a/src/grp-timedate/timedatectl/Makefile
+++ b/src/grp-timedate/timedatectl/Makefile
@@ -39,4 +39,7 @@ dist_bashcompletion_data += \
dist_zshcompletion_data += \
shell-completion/zsh/_timedatectl
endif # ENABLE_TIMEDATED
+
+systemd.CPPFLAGS += -I$(topsrcdir)/src/libsystemd/libsystemd-internal/sd-bus
+
include $(topsrcdir)/build-aux/Makefile.tail.mk
diff --git a/src/initctl/Makefile b/src/initctl/Makefile
index b63a2e47d9..21a9ee9e1d 100644
--- a/src/initctl/Makefile
+++ b/src/initctl/Makefile
@@ -29,4 +29,7 @@ systemd_initctl_SOURCES = \
systemd_initctl_LDADD = \
libshared.la
+libexec_PROGRAMS += systemd-initctl
+systemd.CPPFLAGS += -I$(topsrcdir)/src/libsystemd/libsystemd-internal/sd-bus
+
include $(topsrcdir)/build-aux/Makefile.tail.mk
diff --git a/src/libsystemd-network/Makefile b/src/libsystemd-network/Makefile
index 6b16906c17..b3fc7d0640 100644
--- a/src/libsystemd-network/Makefile
+++ b/src/libsystemd-network/Makefile
@@ -170,4 +170,7 @@ tests += \
test-dhcp6-client \
test-lldp
+systemd.CPPFLAGS += $(libshared.CPPFLAGS)
+systemd.CPPFLAGS += -I$(topsrcdir)/src/libudev/src
+
include $(topsrcdir)/build-aux/Makefile.tail.mk