I was interested in building some of the sample apps, but being fairly clueless on The Ways Of Compilers asked on the IRC channel (#urho3d on freenode) where valera_rozuvan was kind enough to point me to this post topic1088.html which helped a lot.
With a few tweaks, we managed to get the following together, which should compile samples on OS X:
SAMPLE_NAME=<name of sample (without .cpp)>
URHO3D_BASEDIR=/Users/<you>/<path/<to>/Urho3D
CXX=clang++
Urho3D_INC_DIRS=-I$(URHO3D_BASEDIR)/build/include
Urho3D_Samples_DIR=-I../
ThirdthParty_INC_DIRS=-I$(URHO3D_BASEDIR)/build/include/Urho3D/ThirdParty
Urho3D_LIB_DIRS=-L$(URHO3D_BASEDIR)/build/lib
ThirdthParty_LIB_DIRS=-L/opt/X11/lib
LIB_DIRS=$(Urho3D_LIB_DIRS) $(ThirdthParty_LIB_DIRS)
LIBS=-lUrho3D
INCLUDE_DIRS=$(Urho3D_INC_DIRS) $(ThirdthParty_INC_DIRS) $(Urho3D_Samples_DIR)
CXX_FLAGS=-stdlib=libc++
FRAMEWORKS=-framework Cocoa -framework IOKit -framework AudioUnit -framework CoreAudio -framework ForceFeedback -framework Carbon -framework OpenGL
SOURCES=$(SAMPLE_NAME).cpp
all:
$(CXX) $(CXX_FLAGS) $(FRAMEWORKS) $(INCLUDE_DIRS) $(LIB_DIRS) $(LIBS) $(SOURCES) -o $(SAMPLE_NAME)
clean:
rm $(SAMPLE_NAME)