Created
February 20, 2014 03:23
-
-
Save jamesbarnett/9106565 to your computer and use it in GitHub Desktop.
First stab at a Makefile for building libcinder apps on Mavericks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC=g++ | |
CFLAGS=-g -Wall -std=c++11 -I/usr/local/include -I/Users/jbarnett/cinder/include | |
LIBPATH += -L"/System/Library/Frameworks/CoreLocation.framework/Resources" | |
LIBPATH += -L"/System/Library/Frameworks/Accelerate.framework/Resources" | |
LIBPATH += -L"/System/Library/Frameworks/ApplicationServices.framework/Resources" | |
LIBPATH += -L"/System/Library/Frameworks/QuickTime.framework/Resources" | |
LIBPATH += -L"/System/Library/Frameworks/Carbon.framework/Resources" | |
LIBPATH += -L"/System/Library/Frameworks/Cocoa.framework/Resources" | |
LIBPATH += -L"/System/Library/Frameworks/OpenGL.framework/Libraries" | |
LIBPATH += -L"/System/Library/Frameworks/CoreFoundation.framework/Resources" | |
LIBPATH += -L"/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics/Libraries" | |
LIBPATH += -L"/System/Library/Frameworks/QuartzCore.framework/Resources" | |
LIBPATH += -L"/System/Library/Frameworks/CoreAudio.framework/Resources" | |
LIBPATH += -L"/System/Library/Frameworks/AudioUnit.framework/Resources" | |
LIBPATH += -L"/System/Library/Frameworks/AudioToolbox.framework/Resources" | |
LIBPATH += -L"/System/Library/Frameworks/QTKit.framework/Resources" | |
FRAMEWORK = -framework Accelerate | |
FRAMEWORK += -framework CoreLocation | |
FRAMEWORK += -framework ApplicationServices | |
FRAMEWORK += -framework QuickTime | |
FRAMEWORK += -framework OpenGL | |
FRAMEWORK += -framework Cocoa | |
FRAMEWORK += -framework CoreFoundation | |
FRAMEWORK += -framework CoreGraphics | |
FRAMEWORK += -framework QuartzCore | |
FRAMEWORK += -framework CoreAudio | |
FRAMEWORK += -framework AudioUnit | |
FRAMEWORK += -framework AudioToolbox | |
FRAMEWORK += -framework QTKit | |
LIBRARIES = -lm -lobjc -lstdc++ -lboost_system-mt -lboost_filesystem-mt -lcinder | |
LDFLAGS = -L/usr/local/lib/ -L/Users/jbarnett/cinder/lib $(LIBRARIES) | |
SOURCES=main.cpp | |
EXECUTABLE=app | |
CC_FILES=main.cpp | |
.PHONY: all clean | |
# Content in main.cpp is copy and pasted from cinder/samples/BasicApp/src/basicApp.cpp | |
main: $(SOURCES) | |
$(CC) $(FRAMEWORK) $(CFLAGS) main.cpp $(LDFLAGS) -o app | |
all: | |
main | |
clean: | |
rm app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment