1#Converter makefile
2
3include ../shared.mk
4
5OUROBJ = font.o glyph.o normalize.o table_tags.o transform.o \
6         woff2_dec.o woff2_enc.o
7
8BROTLI = ../brotli
9ENCOBJ = $(BROTLI)/enc/*.o
10DECOBJ = $(BROTLI)/dec/*.o
11
12OBJS = $(OUROBJ)
13EXECUTABLES=woff2_compress woff2_decompress
14
15EXE_OBJS=$(patsubst %, %.o, $(EXECUTABLES))
16
17all : $(OBJS) $(EXECUTABLES)
18
19$(EXECUTABLES) : $(EXE_OBJS) deps
20	$(CPP) $(LFLAGS) $(OBJS) $(ENCOBJ) $(DECOBJ) $@.o -o $@
21
22deps :
23	make -C $(BROTLI)/dec
24	make -C $(BROTLI)/enc
25
26clean :
27	rm -f $(OBJS) $(EXE_OBJS) $(EXECUTABLES)
28	make -C $(BROTLI)/dec clean
29	make -C $(BROTLI)/enc clean
30