summaryrefslogtreecommitdiff
path: root/build-aux/Makefile.once.head/20-systemd.mk
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-01 21:36:40 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-01 21:36:40 -0400
commita422a6a26da229bd168815958d55a582188f40bb (patch)
tree85401dc9a385f11009c5cc0733ae5bf8de45a483 /build-aux/Makefile.once.head/20-systemd.mk
parent524d3075ca1e93477deabb95f5c98eaed920de0b (diff)
fix libbasic out of tree build
Diffstat (limited to 'build-aux/Makefile.once.head/20-systemd.mk')
-rw-r--r--build-aux/Makefile.once.head/20-systemd.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/build-aux/Makefile.once.head/20-systemd.mk b/build-aux/Makefile.once.head/20-systemd.mk
index 5dcd4d2e54..eefed97d1e 100644
--- a/build-aux/Makefile.once.head/20-systemd.mk
+++ b/build-aux/Makefile.once.head/20-systemd.mk
@@ -23,6 +23,7 @@
OUR_CPPFLAGS += -MT $@ -MD -MP -MF $(@D)/$(DEPDIR)/$(basename $(@F)).P$(patsubst .%,%,$(suffix $(@F)))
OUR_CPPFLAGS += -include $(topoutdir)/config.h
+OUR_CPPFLAGS += $(if $(<D),-I$(<D)) -I$(@D)
at.dirlocal += AM_CFLAGS AM_CPPFLAGS AM_LDFLAGS AM_LIBTOOLFLAGS
ALL_CFLAGS = $(OUR_CFLAGS) $(AM_CFLAGS/$(@D)) $(CFLAGS)