X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/9e225d036f7ada46c87f40647ed12d4c406f502f..577cc7d16e9038f578beeee9ada9fd8f82f0b3d6:/unit-tests/test-cases/lazy-binding-reg-params/Makefile?ds=sidebyside diff --git a/unit-tests/test-cases/lazy-binding-reg-params/Makefile b/unit-tests/test-cases/lazy-binding-reg-params/Makefile index 9a7f756..f3037cd 100644 --- a/unit-tests/test-cases/lazy-binding-reg-params/Makefile +++ b/unit-tests/test-cases/lazy-binding-reg-params/Makefile @@ -23,17 +23,39 @@ TESTROOT = ../.. include ${TESTROOT}/include/common.makefile +MACHINE = $(shell machine) + +ifeq "-arch ppc" "$(ARCH)" + EXTRA_FLAG = -maltivec -force_cpusubtype_ALL +else + ifeq "-arch ppc64" "$(ARCH)" + EXTRA_FLAG = -maltivec + else + ifeq "-arch 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: