Makefile: add ia64, sparc64 support for functional tests only

Add simple support for ia64 and sparc64. We avoid doing the relink tests
by adding another environment variable which only ia64 and sparc64
define, which is checked in tests/Makefile. Also, explicitly fail to
build on other architectures rather than silently doing nothing.

Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>

diff --git a/Makefile b/Makefile
index d169042..69cef11 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,20 @@ ifneq ($(BUILDTYPE),NATIVEONLY)
 CC32 = gcc -m32
 ELF32 = elf_i386
 endif
+else
+ifeq ($(ARCH),ia64)
+CC64 = gcc
+LIB64 = lib64
+ARCH_RELINK_NOT_SUPPORTED = 1
+else
+ifeq ($(ARCH),sparc64)
+CC64 = gcc -m64
+LIB64 = lib64
+ARCH_RELINK_NOT_SUPPORTED = 1
+else
+$(error "Unrecognized architecture ($(ARCH))")
+endif
+endif
 endif
 endif
 endif
@@ -91,6 +105,7 @@ export ELF32
 export ELF64
 export LIBDIR32
 export LIBDIR64
+export ARCH_RELINK_NOT_SUPPORTED
 
 all:   libs tests
 
diff --git a/tests/Makefile b/tests/Makefile
index 6939784..6d1d730 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -22,9 +22,11 @@ LDFLAGS32 = -L../obj32
 LDFLAGS64 = -L../obj64
 INSTALL = install
 
-TESTS = $(LIB_TESTS) $(NOLIB_TESTS) $(LDSCRIPT_TESTS) $(HUGELINK_TESTS) \
-       $(HUGELINK_TESTS:%=xB.%) $(HUGELINK_TESTS:%=xBDT.%) \
-       $(STRESS_TESTS)
+TESTS = $(LIB_TESTS) $(NOLIB_TESTS) $(LDSCRIPT_TESTS) $(STRESS_TESTS)
+
+ifndef ARCH_RELINK_NOT_SUPPORTED
+TESTS += $(HUGELINK_TESTS) $(HUGELINK_TESTS:%=xB.%) $(HUGELINK_TESTS:%=xBDT.%)
+endif
 
 TESTS_64 = $(LIB_TESTS_64)
 
-- 
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to