-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
38 lines (32 loc) · 1.16 KB
/
Makefile
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
30
31
32
33
34
35
36
37
38
# When using the bundled Zopfli library, this is a list of sources to compile.
# To use an external Zopfli library, override it with the path to a static
# library, or with something like -lzopfli.
ZOPFLI_LIBS=zopfli/blocksplitter.c \
zopfli/cache.c \
zopfli/deflate.c \
zopfli/gzip_container.c \
zopfli/hash.c \
zopfli/katajainen.c \
zopfli/lz77.c \
zopfli/squeeze.c \
zopfli/tree.c \
zopfli/util.c \
zopfli/zlib_container.c \
zopfli/zopfli_lib.c
# When not using the bundled Zopfli library, this should normally be overridden
# with the empty string to avoid finding bundled Zopfli headers.
ZOPFLI_CFLAGS=-Izopfli
ZLIB_LIBS=-lz
ZLIB_CFLAGS=
FILES=woff.c
all: sfnt2woff-zopfli woff2sfnt-zopfli
sfnt2woff-zopfli: sfnt2woff.c $(FILES) Makefile
$(CC) $(CPPFLAGS) $(CFLAGS) $(ZOPFLI_CFLAGS) $(ZLIB_CFLAGS) \
$(FILES) $< -o $@ \
$(LDFLAGS) $(ZOPFLI_LIBS) $(ZLIB_LIBS) -lm
woff2sfnt-zopfli: woff2sfnt.c $(FILES) Makefile
$(CC) $(CPPFLAGS) $(CFLAGS) $(ZOPFLI_CFLAGS) $(ZLIB_CFLAGS) \
$(FILES) $< -o $@ \
$(LDFLAGS) $(ZOPFLI_LIBS) $(ZLIB_LIBS) -lm
clean:
$(RM) -r *.o *.dSYM sfnt2woff-zopfli woff2sfnt-zopfli *.gch *.out