In examples/Makefile, GLFW3 is linked through pkg-config
GLFW3 := $(shell pkg-config --libs glfw3)
Unfortunately macOS does not have pkg-config by default, so GLFW3 is not linked, causing a compilation error.
This can be fixed by changing:
LIBS := $(GLFW3) -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lm -lGLEW -L/usr/local/lib
to:
LIBS := -lglfw -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lm -lGLEW -L/usr/local/lib
This happened on my macOS High Sierra (10.13.6)