1 # See toplevel INSTALL for build info
4 CROSS_COMPILER
= $(CROSS_COMPILE
)
7 CC
=$(CROSS_COMPILER
)gcc
9 RANLIB
=$(CROSS_COMPILER
)ranlib
11 # RANLIB isn't a standard Make variable, which means that when it's exported
12 # to leaf callers as an empty value, builds fail.
13 # testcases/network/lib6/Makefile is a prime example.
17 HAS_NUMA
=$(shell sh tools
/scripts
/numa_test.sh
)
19 export CFLAGS
+= -Wall
$(CROSS_CFLAGS
)
20 export CC AR RANLIB CPPFLAGS LDFLAGS HAS_NUMA
22 # SKIP_IDCHECK != 1, defaults to previous behavior, which is to execute
23 # IDcheck.sh at the end of `make install'.
29 all: config.h config.mk libltp.a
31 @
$(MAKE
) -C testcases
$@
35 @echo
"***********************************************"
36 @echo
"** You now need to do a make install as root **"
37 @echo
"***********************************************"
40 @
$(MAKE
) -C testcases
install
41 @
$(MAKE
) -C tools
install
42 @
$(MAKE
) -C lib
install
43 @
$(MAKE
) -C
include install
44 @
$(MAKE
) -C pan
install
45 @
$(MAKE
) -C m4
install
46 @
$(MAKE
) -C doc
/man1
install
47 @
$(MAKE
) -C doc
/man3
install
48 @
$(MAKE
) -C utils
install
49 ifneq ($(strip $(SKIP_IDCHECK
)),1)
56 uclinux
: uclinux_libltp.a
58 @
$(MAKE
) -C testcases uclinux
61 @echo
"*******************************************************"
62 @echo
"** You now need to do a make uclinux_install as root **"
63 @echo
"*******************************************************"
65 uclinux_install
: uclinux
66 @
$(MAKE
) -C testcases uclinux_install
67 @
$(MAKE
) -C tools
install
68 ifneq ($(strip $(SKIP_IDCHECK
)),1)
73 @
$(MAKE
) -C lib UCLINUX
=1 libltp.a
82 @
$(MAKE
) -C testcases
$@
85 distclean: clean ac-distclean
86 @
$(MAKE
) -C
include $@
88 maintainer-clean
: distclean ac-maintainer-clean
89 @
$(MAKE
) -C
include $@
92 rpmbuild
-ba ltp-devel.spec
99 autotools
: aclocal autoconf autoheader automake
103 aclocal.m4
: $(wildcard m4
/*.m4
)
108 configure
: configure.ac aclocal.m4
112 autoheader
: config.h.in
113 config.h.in
: configure.ac
$(wildcard m4
/*.m4
)
116 config.h
: config.h.default
117 cp
include/config.h.default
include/config.h
122 AUTOMAKE_FILES
= config.guess config.sub install-sh missing
123 automake
: aclocal
$(AUTOMAKE_FILES
)
124 $(AUTOMAKE_FILES
): m4
/Makefile.in
125 m4
/Makefile.in
: m4
/Makefile.am
128 .PHONY
: ac-clean ac-distclean ac-maintainer-clean
130 rm -rf autom4te.cache
131 rm -f config.log config.status
132 ac-distclean
: ac-clean
133 ac-maintainer-clean
: ac-distclean
134 rm -f aclocal.m4 configure
$(AUTOMAKE_FILES
) m4
/Makefile.in
142 @echo
'About configuration'
143 @echo
'-------------------'
144 @echo
'If you want to use auto configuration, '
145 @echo
'be sure autoconf and automake are installed. Then run: '
146 @echo
' $$ make autotools '
147 @echo
' $$ ./configure '
148 @echo
' $$ make all '
150 @echo
'If you want to use default configuration, '
151 @echo
'autoconf is not needed. Just run: '
152 @echo
' $$ touch include/config.h.default '
153 @echo
' $$ make config.h '
154 @echo
' $$ make all '
156 @echo
'If make all is failed even if you use the '
157 @echo
'auto configuration, please, report it to '
158 @echo
'ltp developers with config.log, generated '
159 @echo
'by running the configure script. '