summaryrefslogtreecommitdiff
path: root/build-aux/Makefile.once.head/20-systemd.mk
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-01 16:09:26 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-01 16:09:26 -0400
commita83e19dbaf62bcb33fb74f7e9c8a1fbce2c2af8f (patch)
treeecf736dfe9615a3b5192b98ec38891347bd5c456 /build-aux/Makefile.once.head/20-systemd.mk
parent0cf26b9dfdc5c3f84856d1d9bd3e69ea2e410192 (diff)
tidy
Diffstat (limited to 'build-aux/Makefile.once.head/20-systemd.mk')
-rw-r--r--build-aux/Makefile.once.head/20-systemd.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/build-aux/Makefile.once.head/20-systemd.mk b/build-aux/Makefile.once.head/20-systemd.mk
index 4728cc6bd2..4fd092c3b4 100644
--- a/build-aux/Makefile.once.head/20-systemd.mk
+++ b/build-aux/Makefile.once.head/20-systemd.mk
@@ -30,6 +30,16 @@ export GCC_COLORS
SUBDIRS = . po
+OUR_CPPFLAGS += -MT $@ -MD -MP -MF $(@D)/$(DEPDIR)/$(basename $(@F)).P$(patsubst .%,%,$(suffix $(@F)))
+
+ALL_CFLAGS = $(OUR_CFLAGS) $(AM_CFLAGS/$(@D)) $(CFLAGS)
+ALL_CPPFLAGS = $(OUR_CPPFLAGS) $(AM_CPPFLAGS/$(@D)) $(CPPFLAGS)
+ALL_LDFLAGS = $(OUR_LDFLAGS) $(AM_LDFLAGS/$(@D)) $(LDFLAGS)
+
+COMPILE = $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(ALL_LIBTOOLFLAGS) --mode=compile $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(ALL_LIBTOOLFLAGS) --mode=link $(CCLD) $(ALL_CFLAGS) $(ALL_LDFLAGS) -o $@
+
# remove targets if the command fails
.DELETE_ON_ERROR: