PDF: Guess the scheme when navigating to an URI without a scheme.
[chromium-blink-merge.git] / third_party / woff2 / Makefile
blobfcb95250a3cf2c81a21bef4795081d9813a13dfa
1 OS := $(shell uname)
3 IDIRS=-I./brotli/dec/ -I./brotli/enc/ -I./src
5 CXX = g++
6 LFLAGS =
7 GFLAGS=-no-canonical-prefixes -fno-omit-frame-pointer -m64
8 CXXFLAGS = -c $(IDIRS) -std=c++0x $(GFLAGS)
10 ifeq ($(OS), Darwin)
11 CXXFLAGS += -DOS_MACOSX
12 else
13 CXXFLAGS += -fno-tree-vrp
14 endif
16 SRCDIR = src
18 OUROBJ = font.o glyph.o normalize.o table_tags.o transform.o \
19 woff2_dec.o woff2_enc.o
21 BROTLI = brotli
22 ENCOBJ = $(BROTLI)/enc/*.o
23 DECOBJ = $(BROTLI)/dec/*.o
25 OBJS = $(patsubst %, $(SRCDIR)/%, $(OUROBJ))
26 EXECUTABLES=woff2_compress woff2_decompress
28 EXE_OBJS=$(patsubst %, $(SRCDIR)/%.o, $(EXECUTABLES))
30 all : $(OBJS) $(EXECUTABLES)
32 $(EXECUTABLES) : $(EXE_OBJS) deps
33 $(CXX) $(LFLAGS) $(OBJS) $(ENCOBJ) $(DECOBJ) $(SRCDIR)/$@.o -o $@
35 deps :
36 make -C $(BROTLI)/dec
37 make -C $(BROTLI)/enc
39 clean :
40 rm -f $(OBJS) $(EXE_OBJS) $(EXECUTABLES)
41 make -C $(BROTLI)/dec clean
42 make -C $(BROTLI)/enc clean