Add missing #include for some headers
[wave300.git] / Makefile.am
blob359e2fe39f9164ef6b44ed0d731fd5aa76c2e5e4
1 # $Id$
3 #This list must specify correct "high-level" build order
4 #i.e. shared components to be built before before components
5 #that may use them, helper applications to be built first
7 include $(top_srcdir)/Makefile.am.common
9 EXTRA_DIST = mtlk_version \
10              MTLKConfig \
11              branch_version.m4.in \
12              support/cfghlpr.sh \
13              support/mtlkfront.sh \
14              support/revision_info.sh \
15              support/mtlk_ver.pl \
16              support/make_cfg_header.awk \
17              Makefile.am.module_helper Makefile.am.kbuild \
18              $(shell find $(top_srcdir)/tools/kconfig -name '*.h' -o \
19                                                       -name '*.c' -o \
20                                                       -name Makefile -o \
21                                                       -name '*.moc') \
22              $(shell find $(top_srcdir)/support -name '*.env' -o \
23                                                 -name '*.env.common' -o \
24                                                 -name '*.cfg') \
25              $(shell find $(top_srcdir)/support/release/configs -name '*.complist' -o \
26                                                                 -name '*.config')
28 SUBDIRS = tools/shared \
29           wireless/shared \
30           tools \
31           wireless
33 DIST_SUBDIRS = $(SUBDIRS)
35 dist-hook:
36         cp -fp $(abs_top_srcdir)/Makefile $(distdir)
37         rm -f $(distdir)/.config $(abs_top_builddir)/.prebuilt_location
38         test x$(GPL_DISTRIBUTION) != xy || ls -1 $(distdir)/wireless/driver/rflib | grep -v '^Makefile.am$$' | xargs -I {} rm -rf $(distdir)/wireless/driver/rflib/{}
39         test x$(GPL_DISTRIBUTION) != xy || echo $(PREBUILT_TARBALL) > $(abs_top_builddir)/.prebuilt_location
40         $(abs_top_srcdir)/support/cfghlpr.sh $(top_srcdir)/.config complete_makefiles_am $(abs_top_srcdir) $(distdir)
41         $(abs_top_srcdir)/support/revision_info.sh $(abs_top_srcdir) > $(distdir)/revision_info
42         cd $(distdir) && autoreconf --install
44 distcheck-hook:
45         chmod -R +w $(distdir)
46         make -C $(distdir) defconfig
47         rm -rf $(distdir)/builds
48         cp -fp $(abs_top_builddir)/.config $(distdir)/
49         cp -fp $(abs_top_builddir)/.config $(distdir)/_build
50         awk -f $(distdir)/support/make_cfg_header.awk \
51                              < $(distdir)/_build/.config \
52                              > $(distdir)/_build/.config.h
53         test ! -e $(abs_top_builddir)/.prebuilt_location || \
54             ( cd $(distdir) && tar jxf `cat $(abs_top_builddir)/.prebuilt_location` )
55         test -e $(distdir)/revision_info
56         test x"`wc -l $(distdir)/revision_info | awk '{print $$1}'`" = x"1"
58 DISTCHECK_CONFIGURE_FLAGS = --host "`cat ../.config | grep CONFIG_HOST_TYPE | sed -e "s/.*CONFIG_HOST_TYPE=//" -e"s/\\\"//g"`" \
59                             --build="`../config.guess`" \
60                             `test ! -e $(abs_top_builddir)/.prebuilt_location || echo "--with-prebuilt-rflib=\`cat $(abs_top_builddir)/.prebuilt_location\`"`
62 DISTCLEANFILES = .config .config.h `find -name Makefile` \
63                  $(distdir)/revision_info \
64                  $(abs_top_builddir)/.prebuilt_location \
65                  $(distdir)/wireless/driver/rflib/prebuilt
67 clean-local:
68         rm -rf ./.logprep_ts
69         rm -f logmacros.c logmacros.h loggroups.h \
70         UNKNOWN_ORIGIN.scd