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 \
11 branch_version.m4.in \
13 support/mtlkfront.sh \
14 support/revision_info.sh \
16 support/make_cfg_header.awk \
17 Makefile.am.module_helper Makefile.am.kbuild \
18 $(shell find $(top_srcdir)/tools/kconfig -name '*.h' -o \
22 $(shell find $(top_srcdir)/support -name '*.env' -o \
23 -name '*.env.common' -o \
25 $(shell find $(top_srcdir)/support/release/configs -name '*.complist' -o \
28 SUBDIRS = tools/shared \
33 DIST_SUBDIRS = $(SUBDIRS)
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
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
69 rm -f logmacros.c logmacros.h loggroups.h \