This video shows how to write Makefiles which automatically detects if a machine is a 32-bit or 64-bit machine.
No download links available.