1 # See toplevel INSTALL for build info
4 CROSS_COMPILER
= $(CROSS_COMPILE
)
7 CC
=$(CROSS_COMPILER
)gcc
9 RANLIB
=$(CROSS_COMPILER
)ranlib
12 HAS_NUMA
=$(shell sh tools
/scripts
/numa_test.sh
)
14 export CFLAGS
+= -Wall
$(CROSS_CFLAGS
)
15 export CC AR RANLIB CPPFLAGS LDFLAGS HAS_NUMA
17 # SKIP_IDCHECK != 1, defaults to previous behavior, which is to execute
18 # IDcheck.sh at the end of `make install'.
24 all: config.h config.mk libltp.a
26 @
$(MAKE
) -C testcases
$@
30 @echo
"***********************************************"
31 @echo
"** You now need to do a make install as root **"
32 @echo
"***********************************************"
35 @
$(MAKE
) -C testcases
install
36 @
$(MAKE
) -C tools
install
37 @
$(MAKE
) -C lib
install
38 @
$(MAKE
) -C
include install
39 @
$(MAKE
) -C pan
install
40 @
$(MAKE
) -C m4
install
41 @
$(MAKE
) -C doc
/man1
install
42 @
$(MAKE
) -C doc
/man3
install
43 ifneq ($(strip $(SKIP_IDCHECK
)),1)
50 uclinux
: uclinux_libltp.a
52 @
$(MAKE
) -C testcases uclinux
55 @echo
"*******************************************************"
56 @echo
"** You now need to do a make uclinux_install as root **"
57 @echo
"*******************************************************"
59 uclinux_install
: uclinux
60 @
$(MAKE
) -C testcases uclinux_install
61 @
$(MAKE
) -C tools
install
62 ifneq ($(strip $(SKIP_IDCHECK
)),1)
67 @
$(MAKE
) -C lib UCLINUX
=1 libltp.a
76 @
$(MAKE
) -C testcases
$@
79 distclean: clean ac-distclean
80 @
$(MAKE
) -C
include $@
82 maintainer-clean
: distclean ac-maintainer-clean
83 @
$(MAKE
) -C
include $@
86 rpmbuild
-ba ltp-devel.spec
93 autotools
: aclocal autoconf autoheader automake
97 aclocal.m4
: $(wildcard m4
/*.m4
)
102 configure
: configure.ac aclocal.m4
106 autoheader
: config.h.in
107 config.h.in
: configure.ac
$(wildcard m4
/*.m4
)
110 config.h
: config.h.default
111 cp
include/config.h.default
include/config.h
116 AUTOMAKE_FILES
= config.guess config.sub install-sh missing
117 automake
: aclocal
$(AUTOMAKE_FILES
)
118 $(AUTOMAKE_FILES
): m4
/Makefile.in
119 m4
/Makefile.in
: m4
/Makefile.am
122 .PHONY
: ac-clean ac-distclean ac-maintainer-clean
124 rm -rf autom4te.cache
125 rm -f config.log config.status
126 ac-distclean
: ac-clean
127 ac-maintainer-clean
: ac-distclean
128 rm -f aclocal.m4 configure
$(AUTOMAKE_FILES
) m4
/Makefile.in
136 @echo
'About configuration'
137 @echo
'-------------------'
138 @echo
'If you want to use auto configuration, '
139 @echo
'be sure autoconf and automake are installed. Then run: '
140 @echo
' $$ make autotools '
141 @echo
' $$ ./configure '
142 @echo
' $$ make all '
144 @echo
'If you want to use default configuration, '
145 @echo
'autoconf is not needed. Just run: '
146 @echo
' $$ touch include/config.h.default '
147 @echo
' $$ make config.h '
148 @echo
' $$ make all '
150 @echo
'If make all is failed even if you use the '
151 @echo
'auto configuration, please, report it to '
152 @echo
'ltp developers with config.log, generated '
153 @echo
'by running the configure script. '