TESTROOT = ../..
include ${TESTROOT}/include/common.makefile
-ifeq "-arch ppc" "$(ARCH)"
+MACHINE = $(shell machine)
+
+ifeq "ppc" "$(ARCH)"
EXTRA_FLAG = -maltivec -force_cpusubtype_ALL
else
- ifeq "-arch ppc64" "$(ARCH)"
+ ifeq "ppc64" "$(ARCH)"
EXTRA_FLAG = -maltivec
else
- ifeq "-arch i386" "$(ARCH)"
+ ifeq "i386" "$(ARCH)"
EXTRA_FLAG = ""
+ else
+ ifeq "" "$(ARCH)"
+ ifeq "ppc970" "$(MACHINE)"
+ EXTRA_FLAG = -maltivec -force_cpusubtype_ALL
+ endif
+ endif
endif
endif
endif
-run: all
+all-check: all check
+
+check:
./main
all: main