3 AUTOMAKE_OPTIONS = subdir-objects
5 qstrip_func=$(strip $(subst ",,$(1)))
7 tools_srcdir=$(top_srcdir)/tools
8 abs_tools_srcdir=$(abs_top_srcdir)/tools
10 tools_shared_srcdir=$(tools_srcdir)/shared
11 abs_tools_shared_srcdir=$(abs_tools_srcdir)/shared
13 root_driver_linux_srcdir=$(tools_srcdir)/mtlkroot/linux
14 abs_root_driver_linux_srcdir=$(abs_tools_srcdir)/mtlkroot/linux
16 root_driver_shared_srcdir=$(tools_srcdir)/mtlkroot/shared
17 abs_root_driver_shared_srcdir=$(abs_tools_srcdir)/mtlkroot/shared
19 root_driver_builddir=$(tools_builddir)/mtlkroot/linux
20 abs_root_driver_builddir=$(abs_tools_builddir)/mtlkroot/linux
22 wireless_srcdir=$(top_srcdir)/wireless
23 abs_wireless_srcdir=$(abs_top_srcdir)/wireless
25 fw_shared_srcdir=$(wireless_srcdir)/shared_mbss_mac
26 abs_fw_shared_srcdir=$(abs_wireless_srcdir)/shared_mbss_mac
28 wireless_shared_srcdir=$(wireless_srcdir)/shared
29 abs_wireless_shared_srcdir=$(abs_wireless_srcdir)/shared
31 driver_srcdir=$(wireless_srcdir)/driver
32 abs_driver_srcdir=$(abs_wireless_srcdir)/driver
34 driver_shared_srcdir=$(driver_srcdir)/shared
35 abs_driver_shared_srcdir=$(abs_driver_srcdir)/shared
37 driver_linux_srcdir=$(driver_srcdir)/linux
38 abs_driver_linux_srcdir=$(abs_driver_srcdir)/linux
40 tools_builddir=$(top_builddir)/tools
41 abs_tools_builddir=$(abs_top_builddir)/tools
43 tools_shared_builddir=$(tools_builddir)/shared
44 abs_tools_shared_builddir=$(abs_tools_builddir)/shared
46 wireless_builddir=$(top_builddir)/wireless
47 abs_wireless_builddir=$(abs_top_builddir)/wireless
49 wireless_shared_builddir=$(wireless_builddir)/shared
50 abs_wireless_shared_builddir=$(abs_wireless_builddir)/shared
52 driver_builddir=$(wireless_builddir)/driver
53 abs_driver_builddir=$(abs_wireless_builddir)/driver
55 driver_shared_builddir=$(driver_builddir)/shared
56 abs_driver_shared_builddir=$(abs_driver_builddir)/shared
58 driver_rflib_builddir=$(driver_builddir)/rflib
60 driver_rflib_linux_builddir=$(driver_builddir)/rflib/linux
61 abs_driver_rflib_linux_builddir=$(abs_driver_builddir)/rflib/linux
63 driver_rflib_shared_builddir=$(driver_builddir)/rflib/shared
64 abs_driver_rflib_shared_builddir=$(abs_driver_builddir)/rflib/shared
66 driver_rflib_srcdir=$(driver_srcdir)/rflib
68 driver_rflib_linux_srcdir=$(driver_srcdir)/rflib/linux
69 abs_driver_rflib_linux_srcdir=$(abs_driver_srcdir)/rflib/linux
71 driver_rflib_shared_srcdir=$(driver_srcdir)/rflib/shared
72 abs_driver_rflib_shared_srcdir=$(abs_driver_srcdir)/rflib/shared
74 driver_linux_builddir=$(driver_builddir)/linux
75 abs_driver_linux_builddir=$(abs_driver_builddir)/linux
77 rtlogger_srcdir=$(tools_srcdir)/rtlogger
78 abs_rtlogger_srcdir=$(abs_tools_srcdir)/rtlogger
80 rtlogger_shared_builddir=$(tools_builddir)/rtlogger/shared
81 abs_rtlogger_shared_builddir=$(abs_tools_builddir)/rtlogger/shared
83 rtlogger_scripts_srcdir=$(rtlogger_srcdir)/scripts
84 abs_rtlogger_scripts_srcdir=$(abs_rtlogger_srcdir)/scripts
86 rtlogger_shared_srcdir=$(rtlogger_srcdir)/shared
87 abs_rtlogger_shared_srcdir=$(abs_rtlogger_srcdir)/shared
89 rebase_copy_cmd := cp -R --remove-destination -p -u
91 _REVISION_VERSION:=$(shell $(abs_top_srcdir)/support/revision_info.sh $(abs_top_srcdir) base)
92 _MTLK_VERSION:=$(shell $(abs_top_srcdir)/support/mtlk_ver.pl -g < $(abs_top_srcdir)/mtlk_version)
94 MTLK_COMMON_CPP_FLAGS=-DMTLK_SOURCE_VERSION="\"$(_MTLK_VERSION).$(_REVISION_VERSION)\"" \
95 -DLOG_LOCAL_OID=MTLKFRONT_WILL_FILL_IT \
96 -include $(abs_top_builddir)/config.h \
97 -include $(abs_top_builddir)/.config.h
99 _MTLK_ALLLANG_FLAGS=-Wall -Wno-multichar -fno-strict-aliasing
101 MTLK_COMMON_C_FLAGS=$(_MTLK_ALLLANG_FLAGS)
102 MTLK_COMMON_CXX_FLAGS=$(_MTLK_ALLLANG_FLAGS)
103 MTLK_COMMON_KERNEL_C_FLAGS=$(_MTLK_ALLLANG_FLAGS)
104 MTLK_COMMON_LD_FLAGS=
106 #Variables for drv_info.c/app_info.c/(app|drv)_toolchain_info files generation
107 MTLK_COMPRESSED_CONFIG:=$(shell cat $(abs_top_builddir)/.config | grep -v '^\#.*' | \
109 sed -e's/^CONFIG_//' \
111 -e's/\"/\\\\\\\"/g' | \
112 awk '{printf $$0 " ";}')
113 TOOLCHAIN_INFO_FILTER_CMD:=awk '/[^\\]\".+[^\\]\"/{print gensub(/.*[^\\]\"(.+[^\\])\".*/, "\\1", 1, $$0)}' | \
116 include $(abs_top_builddir)/.config
118 .PRECIOUS: %logmacros.c logmacros.c
128 driverdir=${wlsdir}/driver
129 mttoolsdir=${wlsdir}/mttools
130 wlsprebultdir=${wlsdir}
131 testsdir=${prefix}/tests
132 rtloggerdir=${wlsdir}/rtlogger
135 toolsdir=${prefix}/tools
136 hlprtoolsdir=${prefix}/hlprtools
137 rflibdir=${prefix}/rflib
139 #Variables for mtlkfront.sh
141 export abs_top_srcdir
142 export abs_top_builddir
143 export abs_tools_srcdir
145 export logger_origin_name logger_binary_name logger_origin_id
147 LD_LIBRARY_PATH=@env_lib_path@
148 export LD_LIBRARY_PATH