How can a Makefile determine the binary format the compiler will create? <p>Is it possible for a Makefile to determine what binary format the compiler is targeting (i.e. PE, ELF, Mach-O, etc.)? Maybe by running the compiler or assembler with certain options?</p> <p>Or can I accurately determine this from the OS (by running <code>uname -s</code> or something of the sort)?</p>