brotli/shared.mk

20 lines
301 B
Makefile
Raw Normal View History

2014-10-30 12:59:37 +00:00
OS := $(shell uname)
GFLAGS=-no-canonical-prefixes -fno-omit-frame-pointer -m64
CPP = g++
LFLAGS =
CPPFLAGS = -c -std=c++0x $(GFLAGS)
2015-01-13 15:42:35 +00:00
EMCC = emcc
EMCCFLAGS = -O1 -W -Wall
2014-10-30 12:59:37 +00:00
ifeq ($(OS), Darwin)
CPPFLAGS += -DOS_MACOSX
else
CPPFLAGS += -fno-tree-vrp
endif
%.o : %.c
$(CPP) $(CPPFLAGS) $< -o $@