]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/bundle-memory-load-fat/Makefile
dyld-239.3.tar.gz
[apple/dyld.git] / unit-tests / test-cases / bundle-memory-load-fat / Makefile
index 01eab8b6b6953d530ff36f07a46d396abb093be9..00641d0164f8ab52781bf73aca48a87b21103845 100644 (file)
@@ -1,5 +1,5 @@
 ##
-# Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
+# Copyright (c) 2005-2011 Apple Inc. All rights reserved.
 #
 # @APPLE_LICENSE_HEADER_START@
 # 
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
-FATFLAGS = `lipo -detailed_info /usr/lib/libSystem.B.dylib | grep architecture | sed -e 's/architecture/-arch/'`
+FATFLAGS = $(shell ${LIPO} -detailed_info $(IOSROOT)/usr/lib/libSystem.B.dylib | grep architecture | sed -e 's/architecture/-arch/')
 
-run: all
+all-check: all check
+
+check:
        ./main
 
 all: main test.bundle
 
 main : main.c
-       ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c
+       ${CC} ${CCFLAGS}  -Wno-deprecated-declarations -I${TESTROOT}/include -o main main.c
 
 test.bundle : bundle.c
+       echo ${IOSROOT}
+       echo $(IOSROOT)
        ${CC} ${FATFLAGS} -bundle -o test.bundle bundle.c
 
 clean: