- ${FAIL_IF_BAD_OBJ} foobar.o
-
-foo.o : foo.cxx
- ${CXX} ${CCXXFLAGS} -gdwarf-2 foo.cxx -c -o $@ -mdynamic-no-pic
- ${FAIL_IF_BAD_OBJ} $@
-
-bar.o : bar.cxx
- ${CXX} ${CCXXFLAGS} -gdwarf-2 bar.cxx -c -o $@ -mdynamic-no-pic
- ${FAIL_IF_BAD_OBJ} $@
-
-main.o : main.cxx
- ${CXX} ${CCXXFLAGS} -gdwarf-2 main.cxx -c -o $@ -mdynamic-no-pic
- ${FAIL_IF_BAD_OBJ} $@
+ ${CXX} ${CCXXFLAGS} -gdwarf-2 main.cxx -c -o main.o -mdynamic-no-pic
+ ${CXX} ${CCXXFLAGS} foobar.o main.o -o main
+ ${FAIL_IF_BAD_MACHO} main
+ nm -ap main | ./stabs-filter.pl > main.stabs
+ ${PASS_IFF} diff main.stabs expected-stabs
+