]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/dyld-slide/Makefile
dyld-195.5.tar.gz
[apple/dyld.git] / unit-tests / test-cases / dyld-slide / Makefile
index 35f422d56e304d4475c85480da5e32a1eb52db58..aa3debfe242044c1e94a89f172c75287a74a9c64 100644 (file)
@@ -1,5 +1,5 @@
 ##
 ##
-# Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
+# Copyright (c) 2005-2009 Apple Inc. All rights reserved.
 #
 # @APPLE_LICENSE_HEADER_START@
 # 
 #
 # @APPLE_LICENSE_HEADER_START@
 # 
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
-run: all
+STACK_BASE = 0x8fe01000
+STACK_SIZE = 0x00100000
+
+ifeq "armv6" "$(ARCH)"
+       STACK_BASE = 0x2fe01000
+       STACK_SIZE = 0x00100000
+endif
+ifeq "armv7" "$(ARCH)"
+       STACK_BASE = 0x2fe01000
+       STACK_SIZE = 0x00100000
+endif
+ifeq "ppc64" "$(ARCH)"
+       STACK_BASE = 0x7fff5ff00000
+       STACK_SIZE = 0x00400000
+endif
+ifeq "x86_64" "$(ARCH)"
+       STACK_BASE = 0x7fff5ff00000
+       STACK_SIZE = 0x00400000
+endif
+
+
+
+all-check: all check
+
+check:
        ${TESTROOT}/bin/exit-zero-pass.pl "dyld did slide" "dyld did not slide" ./main
 
 all:
        ${TESTROOT}/bin/exit-zero-pass.pl "dyld did slide" "dyld did not slide" ./main
 
 all:
-       ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c
+       ${CC} ${CCFLAGS} -Wno-deprecated-declarations -I${TESTROOT}/include -o main main.c -Wl,-stack_addr,${STACK_BASE} -Wl,-stack_size,${STACK_SIZE}
 
 clean:
        ${RM} ${RMFLAGS} main
 
 clean:
        ${RM} ${RMFLAGS} main