From 6724edf48bf8c7b88f2d1e62c3d91c846de76248 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 12 Jun 2016 23:49:48 -0400 Subject: fix --- src/Makefile | 8 ++++---- src/grp-boot/systemd-boot/Makefile | 4 ++-- src/libcore/Makefile | 10 ++++++++-- src/systemd-initctl/Makefile | 1 - src/systemd-nspawn/Makefile | 1 - 5 files changed, 14 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 5aa9e0fda5..b3de845981 100644 --- a/src/Makefile +++ b/src/Makefile @@ -37,10 +37,9 @@ at.subdirs += grp-coredump at.subdirs += grp-resolve #at.subdirs += grp-system at.subdirs += grp-timedate -at.subdirs += initctl at.subdirs += kernel-install at.subdirs += libbasic -#at.subdirs += libcore +at.subdirs += libcore at.subdirs += libfirewall at.subdirs += libshared at.subdirs += libsystemd @@ -48,8 +47,8 @@ at.subdirs += libsystemd-network at.subdirs += libudev at.subdirs += nss-myhostname at.subdirs += systemd-activate -at.subdirs += systemd-ac-power -at.subdirs += systemd-analyze +#at.subdirs += systemd-ac-power +#at.subdirs += systemd-analyze #at.subdirs += systemd-machine-id-setup #at.subdirs += systemd-modules-load @@ -58,5 +57,6 @@ at.subdirs += systemd-analyze #at.subdirs += systemd-sysctl at.subdirs += systemd-nspawn +at.subdirs += systemd-initctl include $(topsrcdir)/build-aux/Makefile.tail.mk diff --git a/src/grp-boot/systemd-boot/Makefile b/src/grp-boot/systemd-boot/Makefile index f2a0ed47cb..2a56560c2c 100644 --- a/src/grp-boot/systemd-boot/Makefile +++ b/src/grp-boot/systemd-boot/Makefile @@ -84,11 +84,11 @@ EFI_FORMAT = --target=efi-app-$(EFI_ARCH) endif # ARCH_AARCH64 $(outdir)/%.o: $(srcdir)/%.c - $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@ + $(AM_V_EFI_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@ $(outdir)/%.so: @if test $(words $^) = 0; then echo 'Cannot link EFI library with no dependencies: $@' >&2; exit 1; fi - $(AM_V_CCLD)$(LD) $(efi_ldflags) $^ -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name) + $(AM_V_EFI_CCLD)$(LD) $(efi_ldflags) $^ -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name) $(AM_V_at)! { nm -D -u $@ | grep ' U '; } # These next 2 are the same rule diff --git a/src/libcore/Makefile b/src/libcore/Makefile index f40a115042..53059eda20 100644 --- a/src/libcore/Makefile +++ b/src/libcore/Makefile @@ -163,8 +163,14 @@ libcore_la_LIBADD = \ $(APPARMOR_LIBS) \ $(MOUNT_LIBS) -$(outdir)/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf - $(AM_V_at)$(MKDIR_P) $(dir $@) +$(outdir)/load-fragment-gperf-nulstr.c: $(outdir)/load-fragment-gperf.gperf $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@ +systemd.CPPFLAGS += -I$(topsrcdir)/src/libsystemd/libsystemd-internal/sd-bus +systemd.CPPFLAGS += -I$(topsrcdir)/src/libudev/src +systemd.CPPFLAGS += -DMOUNT_PATH=\"$(MOUNT_PATH)\" +systemd.CPPFLAGS += -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" +systemd.CPPFLAGS += -DSYSTEMD_CGROUP_AGENT_PATH=\"$(libexecdir)/systemd-cgroups-agent\" +systemd.CPPFLAGS += -DSYSTEMD_BINARY_PATH=\"$(libexecdir)/systemd\" + include $(topsrcdir)/build-aux/Makefile.tail.mk diff --git a/src/systemd-initctl/Makefile b/src/systemd-initctl/Makefile index 66f3e72aa5..726a1404d3 100644 --- a/src/systemd-initctl/Makefile +++ b/src/systemd-initctl/Makefile @@ -30,7 +30,6 @@ 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/systemd-nspawn/Makefile b/src/systemd-nspawn/Makefile index 460a491a3a..5d6fcfdc5a 100644 --- a/src/systemd-nspawn/Makefile +++ b/src/systemd-nspawn/Makefile @@ -82,7 +82,6 @@ test_patch_uid_LDADD = \ manual_tests += \ test-patch-uid -bin_PROGRAMS += systemd-nspawn systemd.CPPFLAGS += -I$(topsrcdir)/src/libsystemd/libsystemd-internal/sd-bus systemd.CPPFLAGS += -I$(topsrcdir)/src/libudev/src -- cgit v1.2.3-54-g00ecf