ifeq ($(ARCH),x86_64)
IMAGE_INFO = "__objc_imageinfo"
endif
-ifeq ($(ARCH),armv6)
+ifeq (${FILEARCH},arm)
IMAGE_INFO = "__objc_imageinfo"
endif
${CC} ${CCFLAGS} main.m -c -o main.o
libtool -static main.o -o libmain.a
${CC} ${CCFLAGS} libmain.a -o main -framework Foundation
- size -l main | grep ${IMAGE_INFO} | ${FAIL_IF_EMPTY}
+ size -m -l main | grep ${IMAGE_INFO} | ${FAIL_IF_EMPTY}
${PASS_IFF_GOOD_MACHO} main
clean: