brotli/shared.mk

19 lines
301 B
Makefile
Raw Normal View History

2014-10-30 12:59:37 +00:00
OS := $(shell uname)
CC ?= gcc
CXX ?= g++
2014-10-30 12:59:37 +00:00
2015-01-13 15:42:35 +00:00
EMCC = emcc
EMCCFLAGS = -O1 -W -Wall
COMMON_FLAGS = -fno-omit-frame-pointer -no-canonical-prefixes
2014-10-30 12:59:37 +00:00
ifeq ($(OS), Darwin)
CPPFLAGS += -DOS_MACOSX
else
COMMON_FLAGS += -fno-tree-vrp
2014-10-30 12:59:37 +00:00
endif
CFLAGS += $(COMMON_FLAGS)
CXXFLAGS += $(COMMON_FLAGS) -std=c++11