diff options
author | Stefan Gartner <stefang@aon.at> | 2009-12-21 13:38:04 +0300 |
---|---|---|
committer | Stefan Gartner <stefang@aon.at> | 2009-12-21 13:38:04 +0300 |
commit | 5e6e3453a581f7f2bafae1ce4ebeba113a523c86 (patch) | |
tree | e63901f340c6e2e0c8f3f82fa128fd5127ef6c27 /source/nan_link.mk | |
parent | f7f06d96f3c13623448d899e1fe2577ed6cbf996 (diff) |
OS X: added support for building with Cocoa to Makefiles
to build with Cocoa support, set WITH_COCOA to true in user-def.mk
Diffstat (limited to 'source/nan_link.mk')
-rw-r--r-- | source/nan_link.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/nan_link.mk b/source/nan_link.mk index f8bb8e8660d..0524ee7592d 100644 --- a/source/nan_link.mk +++ b/source/nan_link.mk @@ -54,8 +54,11 @@ ifeq ($(OS),darwin) LLIBS += -lz -lstdc++ ifdef USE_OSX10.4STUBS LLIBS +=-lSystemStubs - endif - LLIBS += -framework Carbon -framework AGL -framework OpenGL + endif + ifeq ($(WITH_COCOA), true) + LLIBS += -framework Cocoa + endif + LLIBS += -framework Carbon -framework AGL -framework OpenGL LLIBS += -framework QuickTime -framework CoreAudio LLIBS += -framework AudioUnit -framework AudioToolbox LDFLAGS += -L/System/Library/Frameworks/OpenGL.framework/Libraries |