blob: 5a2342109f2b25c6fb35c88ddc7d2e99a6cff931 [file] [log] [blame]
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 $@