]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/lazy-binding-reg-params/Makefile
dyld-95.3.tar.gz
[apple/dyld.git] / unit-tests / test-cases / lazy-binding-reg-params / Makefile
index 9a7f756349e104afaa211b0449d76ceacee68a6a..558fc57d0d082c9c99aacf17ede7fb4eb7315e6e 100644 (file)
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
+MACHINE =  $(shell machine)
+
+ifeq "ppc" "$(ARCH)"
+       EXTRA_FLAG = -maltivec -force_cpusubtype_ALL
+else 
+       ifeq "ppc64" "$(ARCH)"
+               EXTRA_FLAG = -maltivec
+       else
+               ifeq "i386" "$(ARCH)"
+                       EXTRA_FLAG = ""
+               else
+                       ifeq "" "$(ARCH)"
+                               ifeq "ppc970" "$(MACHINE)"
+                                       EXTRA_FLAG = -maltivec -force_cpusubtype_ALL
+                               endif
+                       endif
+               endif
+       endif
+endif
+
+
+
 run: all
        ./main
 
 all: main 
 
 main : main.c libfoo.dylib
-       ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c libfoo.dylib
+       ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c libfoo.dylib ${EXTRA_FLAG}
 
 
 libfoo.dylib : foo.c
-       ${CC} ${CCFLAGS} -dynamiclib foo.c -o libfoo.dylib
+       ${CC} ${CCFLAGS} -dynamiclib foo.c -o libfoo.dylib ${EXTRA_FLAG}
 
 
 clean: