]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/lazy-binding-reg-params/Makefile
dyld-132.13.tar.gz
[apple/dyld.git] / unit-tests / test-cases / lazy-binding-reg-params / Makefile
index 12eb337ad2d50212a79060282a1fc37c4e775724..73ce20331fb3418dc90e2d8f68b562a173eab2a8 100644 (file)
 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