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