##
-# Copyright (c) 2010 Apple Inc. All rights reserved.
+# Copyright (c) 2010-2012 Apple Inc. All rights reserved.
#
# @APPLE_LICENSE_HEADER_START@
#
run: all
all:
- ${CC} ${CCFLAGS} foo.s -dynamiclib -o libfoo.dylib
+ ${CC} ${CCFLAGS} foo.c -dynamiclib -o libfoo.dylib
# check trying to access TLV _foo as regular variable is an error
- ${FAIL_IF_SUCCESS} ${CC} ${CCFLAGS} main.c -DUSE_FOO libfoo.dylib -o main 2>/dev/null
+ ${FAIL_IF_SUCCESS} ${CC} ${CCFLAGS} main.c -DUSE_FOO_WRONG libfoo.dylib -o main 2>/dev/null
# check trying to access regular variable _bar as TLV is an error
- ${FAIL_IF_SUCCESS} ${CC} ${CCFLAGS} main.c getbar.s libfoo.dylib -o main 2>/dev/null
+ ${FAIL_IF_SUCCESS} ${CC} ${CCFLAGS} main.c -DUSE_BAR_WRONG libfoo.dylib -o main 2>/dev/null
# check can link with TLV _foo in dylib
- ${CC} ${CCFLAGS} main.c getfoo.s libfoo.dylib -o main
+ ${CC} ${CCFLAGS} main.c libfoo.dylib -o main
${PASS_IFF_GOOD_MACHO} main
clean: