1 # To cross compile, override one or more of CC, AR, CROSS_CFLAGS,
2 # LOADLIBES, LDFLAGS, & LIB_DIR and be sure to always build from the top level.
4 # To override them from the make commandline, do something like this:
5 # $ CROSS_COMPILER=/opt/cegl-1.4/hardhat/devkit/ppc/405/bin/powerpc-linux-
7 # CROSS_CFLAGS="-mcpu=403 -D__PPC405__" \
9 # LOADLIBES="-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc"
11 # Alternately, to override them by editing this file, uncomment the
13 # CROSS_COMPILER=/opt/ppc64/powerpc64-linux/bin/powerpc64-linux-
14 # CROSS_CFLAGS= -mpowerpc64
16 # LOADLIBES=-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc
18 # export LOADLIBES LIB_DIR
20 # Or, you can save all your settings into the local 'config.mk' file.
21 # The defaults will not be usable in that case; you will need to
22 # override things explicitly.
24 # uClinux Users: make sure you add -DUCLINUX to your CFLAGS
26 # Note: If you override a variable from the commandline all
27 # assignments to it in the Makefiles will be ignored. To set it both
28 # in the commandline and in the Makefiles use a dummy variable like in
32 CROSS_COMPILER
= $(CROSS_COMPILE
)
35 CC
=$(CROSS_COMPILER
)gcc
36 AR
=$(CROSS_COMPILER
)ar
37 RANLIB
=$(CROSS_COMPILER
)ranlib
40 HAS_NUMA
=$(shell sh tools
/scripts
/numa_test.sh
)
42 export CFLAGS
+= -Wall
$(CROSS_CFLAGS
)
43 export CC AR RANLIB CPPFLAGS LDFLAGS HAS_NUMA
49 @
$(MAKE
) -C testcases
$@
52 @echo
"***********************************************"
53 @echo
"** You now need to do a make install as root **"
54 @echo
"***********************************************"
57 @
$(MAKE
) -C testcases
install
58 @
$(MAKE
) -C tools
install
59 @
$(MAKE
) -C lib
install
60 @
$(MAKE
) -C
include install
61 @
$(MAKE
) -C pan
install
62 @
$(MAKE
) -C doc
/man1
install
63 @
$(MAKE
) -C doc
/man3
install
70 uclinux
: uclinux_libltp.a
72 @
$(MAKE
) -C testcases uclinux
75 @echo
"*******************************************************"
76 @echo
"** You now need to do a make uclinux_install as root **"
77 @echo
"*******************************************************"
79 uclinux_install
: uclinux
80 @
$(MAKE
) -C testcases uclinux_install
81 @
$(MAKE
) -C tools
install
85 @
$(MAKE
) -C lib UCLINUX
=1 libltp.a
94 @
$(MAKE
) -C testcases
$@
97 rpmbuild
-ba ltp-devel.spec