all:
${CC} ${CCFLAGS} bar.c -dynamiclib -o libbar.dylib
+ ${FAIL_IF_BAD_MACHO} libbar.dylib
${CC} ${CCFLAGS} foo.c libbar.dylib -dynamiclib -o libfoo.dylib
+ ${FAIL_IF_BAD_MACHO} libfoo.dylib
${FAIL_IF_SUCCESS} ${CC} ${CCFLAGS} main.c -o main libfoo.dylib 2> fail.log
grep ordinal fail.log | ${PASS_IFF_EMPTY}
clean:
- rm libfoo.dylib libbar.dylib main fail.log
-
-
+ rm *.dylib main fail.log