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