]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/objc-category-archive/Makefile
ld64-133.3.tar.gz
[apple/ld64.git] / unit-tests / test-cases / objc-category-archive / Makefile
index b56bacf3382e9ad727e87572d0a41550ca515e37..7bcd9a48e03a941d40f45ce73e32de3dc8cbfb18 100644 (file)
@@ -12,16 +12,19 @@ run: all
 
 all:
        ${CC} ${CCFLAGS} -g test.m -c -o test.o
-       libtool -static test.o -o libtest.a
+       ${CC} ${CCFLAGS} -g test2.m -c -o test2.o
+       libtool -static test.o test2.o -o libtest.a
        ${CC} ${CCFLAGS} main.m libtest.a -ObjC -o main -framework Foundation
        nm main | grep mycatmethod1 | ${FAIL_IF_EMPTY}
        nm main | grep mycatmethod2 | ${FAIL_IF_EMPTY}
-       ${LD} -arch ${ARCH} -r -S -keep_private_externs test.o -o test-stripped.o
+       nm main | grep mymethod2 | ${FAIL_IF_EMPTY}
+       ${LD} -arch ${ARCH} -r -S -keep_private_externs test.o test2.o -o test-stripped.o
        libtool -static test-stripped.o -o libtest-stripped.a
        ${CC} ${CCFLAGS} main.m libtest-stripped.a -all_load -dead_strip -o main2 -framework Foundation
        nm main2 | grep mycatmethod1 | ${FAIL_IF_EMPTY}
        nm main2 | grep mycatmethod2 | ${FAIL_IF_EMPTY}
+       nm main2 | grep mymethod2 | ${FAIL_IF_EMPTY}
        ${PASS_IFF_GOOD_MACHO} main2
        
 clean:
-       rm -rf test.o test-stripped.o libtest.a libtest-stripped.a main main2 
+       rm -rf test.o test2.o test-stripped.o libtest.a libtest-stripped.a main main2