-# In networked home directories, the chown will fail; we notice and print a helpful message
-CHOWN_COMMAND=sudo chown root $(DSTROOT)/xnu_quick_test
-PERM_ADVICE="\tYou'll have to set the executable's permissions yourself: chown to root and chmod to 4755. You may need to move to a local volume to do that."
-xnu_quick_test : $(OBJROOT) $(DSTROOT) $(MY_OBJECTS) helpers
- sudo rm -rf $(DSTROOT)/xnu_quick_test
- $(CC) $(MY_ARCH) $(LIBFLAGS) -o $(DSTROOT)/xnu_quick_test $(MY_OBJECTS)
- @echo $(CHOWN_COMMAND) # Hack so we don't echo help-message echo
- @$(CHOWN_COMMAND) || echo $(PERM_ADVICE)
- sudo chmod 4755 $(DSTROOT)/xnu_quick_test
+
+xnu_quick_test : $(OBJSUBPATH) $(DSTROOT) $(SYMROOT) $(MY_OBJECTS) helpers
+ifndef RC_ProjectName
+ rm -rf $(DSTROOT)/xnu_quick_test
+endif
+ $(CC) -g $(MY_ARCH) $(LIBFLAGS) -o $(SYMROOT)/xnu_quick_test $(MY_OBJECTS)
+ /usr/bin/dsymutil $(SYMROOT)/xnu_quick_test
+ /usr/bin/ditto $(SYMROOT)/xnu_quick_test $(DSTROOT)/xnu_quick_test