aboutsummaryrefslogtreecommitdiff
path: root/woff2/Makefile
blob: 3782048602486b391b61558dc4c176378ea50bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#Converter makefile

include ../shared.mk

OUROBJ = font.o glyph.o normalize.o table_tags.o transform.o \
         woff2_dec.o woff2_enc.o

BROTLI = ../brotli
ENCOBJ = $(BROTLI)/enc/*.o
DECOBJ = $(BROTLI)/dec/*.o

OBJS = $(OUROBJ)
EXECUTABLES=woff2_compress woff2_decompress

EXE_OBJS=$(patsubst %, %.o, $(EXECUTABLES))

all : $(OBJS) $(EXECUTABLES)

$(EXECUTABLES) : $(EXE_OBJS) deps
	$(CPP) $(LFLAGS) $(OBJS) $(ENCOBJ) $(DECOBJ) $@.o -o $@

deps :
	make -C $(BROTLI)/dec
	make -C $(BROTLI)/enc

clean :
	rm -f $(OBJS) $(EXE_OBJS) $(EXECUTABLES)
	make -C $(BROTLI)/dec clean
	make -C $(BROTLI)/enc clean