Makefile for OSX

I’ve personally never really liked XCode and have always preferred a more lightweight editor like Textmate or Emacs. I know that there is a Makefile that gets created by Introjucer for compilation on linux, is there a way to generate a similar Makefile for OSX so I can build a program without using Xcode?

I use the xcodebuild command line version of XCode to compile my project from within emacs…