makefiles: exclude objc flags from c only files. add obj compiling rules to project makefile