Skip to content

Commit

Permalink
* made OS X build self contained (e.g. linking everything static)
Browse files Browse the repository at this point in the history
  • Loading branch information
beschulz committed Jan 6, 2015
1 parent d95cc05 commit 56da878
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions build/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
######

LD_FLAGS=\
-lsndfile\

UNAME := $(shell uname)
BINARY=../bin/$(UNAME)/wav2json
SRC=../src

ifeq ($(UNAME), Linux)
LD_PLATFORM_FLAGS=$(LD_FLAGS) -lboost_program_options
LD_PLATFORM_FLAGS=-lboost_program_options
CC=g++
endif
ifeq ($(UNAME), Darwin)
CC=clang++
LD_PLATFORM_FLAGS=$(LD_FLAGS) -lboost_program_options-mt
LD_PLATFORM_FLAGS=\
/usr/local/lib/libboost_program_options-mt.a \
/usr/local/lib/libsndfile.a \
/usr/local/lib/libogg.a \
/usr/local/lib/libvorbis.a \
/usr/local/lib/libvorbisenc.a \
/usr/local/lib/libFLAC.a

INCLUDES=\
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/
endif
Expand Down

0 comments on commit 56da878

Please sign in to comment.