Bump to first public version 3.4.99
[wave300.git] / Makefile.am.target_apps
blob34e232ccf731b5c3fa41a7179c89031ca7e839ef
1 # $Id$
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)
10 .PHONY: always
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)) < $< > $@
17 %app_info.c: always
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
22         @echo "\"," >> $@.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
28         @echo "};" >> $@.new
29         @echo "" >> $@.new
30         @diff -q $@.new $@ >/dev/null 2>&1 || cp -f $@.new $@
31         @rm -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
39 clean-local:
40         rm -rf ./.logprep_ts
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
45         $(clean_local_hook)