3 include $(top_srcdir)/Makefile.am.common
5 AM_CFLAGS=$(MTLK_COMMON_C_FLAGS)
6 AM_CXXFLAGS=$(MTLK_COMMON_CXX_FLAGS)
7 AM_CPPFLAGS=$(MTLK_COMMON_CPP_FLAGS) -I$(rtlogger_shared_srcdir)
8 AM_LDFLAGS=$(MTLK_COMMON_LD_FLAGS)
11 .PRECIOUS: app_info.c %app_info.c
13 %app_toolchain_info: %app_info.c
14 @echo Generating app_toolchain_info...
15 @($(TOOLCHAIN_INFO_FILTER_CMD)) < $< > $@
18 @echo Generating app_info.c...
19 @echo "const char *mtlk_app_info[] = {" > $@.new
20 @echo -n " \"CONFIG=" >> $@.new
21 @echo -n "$(MTLK_COMPRESSED_CONFIG)" >> $@.new
23 @echo " \"TOOLCHAIN_PATH=@APP_TOOLCHAIN_PATH@\"," >> $@.new
24 @echo " \"CFLAGS=$(subst \",',$(CFLAGS))\"," >> $@.new
25 @echo "@CUSTOM_APP_ENV_INFO@" | awk '{for (i=1; i<=NF; i++){ print " \"" $$i "\","; }}' >> $@.new
26 @echo " \"HOSTNAME=$(HOSTNAME)\"," >> $@.new
27 @echo " (const char *)0" >> $@.new
30 @diff -q $@.new $@ >/dev/null 2>&1 || cp -f $@.new $@
33 app_info.c: temp_app_info.c
34 @diff -q temp_app_info.c app_info.c >/dev/null 2>&1 || $(rebase_copy_cmd) temp_app_info.c app_info.c
36 app_toolchain_info: temp_app_toolchain_info
37 @diff -q temp_app_toolchain_info app_toolchain_info >/dev/null 2>&1 || mv -f temp_app_toolchain_info app_toolchain_info
41 rm -f loggroups.h logmacros.h logmacros.c \
42 $(firstword $(logger_origin_name) UNKNOWN_ORIGIN).scd \
43 app_info.c temp_app_info.c \
44 app_toolchain_info temp_app_toolchain_info