From 0629b78d815ce6a0b65aecc02fb18a122226274c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 25 May 2016 23:32:14 -0400 Subject: stuff --- common.once.head.mk | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'common.once.head.mk') diff --git a/common.once.head.mk b/common.once.head.mk index 3a084ff51f..85c2898e88 100644 --- a/common.once.head.mk +++ b/common.once.head.mk @@ -20,15 +20,17 @@ # # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see . +MAKEFLAGS += --no-builtin-rules + ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} -AM_MAKEFLAGS = --no-print-directory -AUTOMAKE_OPTIONS = color-tests parallel-tests GCC_COLORS ?= 'ooh, shiny!' export GCC_COLORS SUBDIRS = . po +CPPFLAGS += -include $(topoutdir)/config.h + # remove targets if the command fails .DELETE_ON_ERROR: @@ -50,3 +52,22 @@ define generate-sym-test $(AM_V_at)printf 'return 0; }\n' >> $@ endef +%-from-name.gperf: %-list.txt + $(AM_V_at)$(MKDIR_P) $(dir $@) + $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@ + +%-from-name.h: %-from-name.gperf + $(AM_V_at)$(MKDIR_P) $(dir $@) + $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@ + +# from GNU automake + +DEFAULT_INCLUDES = -I. +depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp +am__depfiles_maybe = depfiles +DEPDIR = .deps + +am__mv = mv -f + +include $(topsrcdir)/am-pretty.mk +include $(topsrcdir)/am-tools.mk -- cgit v1.2.3-54-g00ecf