mirror of
https://github.com/google/brotli.git
synced 2024-11-08 21:30:04 +00:00
20 lines
301 B
Makefile
20 lines
301 B
Makefile
OS := $(shell uname)
|
|
|
|
GFLAGS=-no-canonical-prefixes -fno-omit-frame-pointer -m64
|
|
|
|
CPP = g++
|
|
LFLAGS =
|
|
CPPFLAGS = -c -std=c++0x $(GFLAGS)
|
|
|
|
EMCC = emcc
|
|
EMCCFLAGS = -O1 -W -Wall
|
|
|
|
ifeq ($(OS), Darwin)
|
|
CPPFLAGS += -DOS_MACOSX
|
|
else
|
|
CPPFLAGS += -fno-tree-vrp
|
|
endif
|
|
|
|
%.o : %.c
|
|
$(CPP) $(CPPFLAGS) $< -o $@
|