Support for OSX build; tested using OSX 10.9/clang-500.2.79

This commit is contained in:
Roderick Sheeter
2013-12-12 10:43:05 -08:00
parent e70949119a
commit 2e5995bd96
5 changed files with 17 additions and 21 deletions
+8 -1
View File
@@ -1,10 +1,17 @@
OS := $(shell uname)
IDIRS=-I../brotli/dec/ -I../brotli/enc/ -I../
GFLAGS=-no-canonical-prefixes -fno-omit-frame-pointer -fno-tree-vrp -m64
GFLAGS=-no-canonical-prefixes -fno-omit-frame-pointer -m64
CPP = g++
LFLAGS =
CPPFLAGS = -c $(IDIRS) -std=c++0x $(GFLAGS)
ifeq ($(OS), Darwin)
CPPFLAGS += -DOS_MACOSX
else
CPPFLAGS += -fno-tree-vrp
endif
%.o : %.c
$(CPP) $(CPPFLAGS) $< -o $@