aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar Benjamin Beasley <codemusicinmybrainnet>2020-10-20 13:45:03 -0400
committerLibravatarLarge Libravatar Benjamin Beasley <codemusicinmybrainnet>2020-10-20 13:45:03 -0400
commitd177bb1fb75b129721219d9c40ff910840db9785 (patch)
tree449a95fed35e6dbd89721b567b48fa90f989b83e /Makefile
parente50236af6bb19fa926d2fb4c6e5fbeb915c45391 (diff)
downloadsfnt2woff-zopfli-d177bb1fb75b129721219d9c40ff910840db9785.tar.gz
sfnt2woff-zopfli-d177bb1fb75b129721219d9c40ff910840db9785.tar.bz2
sfnt2woff-zopfli-d177bb1fb75b129721219d9c40ff910840db9785.tar.lz
sfnt2woff-zopfli-d177bb1fb75b129721219d9c40ff910840db9785.zip

Move bundled zopfli sources into a new zopfli/ subdirectory.

Separating source files by origin (and license) makes it easy for users who want to build with an external zopfli library to remove the bundled sources, ensuring they are not used. Unbundling libraries is mandatory for packaging in many popular Linux distributions, and can be useful for other applications as well. Additional changes will be needed to make it easy to select an external zopfli library.

Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cb2577a..2f644f2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
-FILES=blocksplitter.c cache.c deflate.c gzip_container.c hash.c katajainen.c lz77.c squeeze.c tree.c util.c zlib_container.c zopfli_lib.c woff.c
+FILES=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 woff.c
all: sfnt2woff-zopfli woff2sfnt-zopfli
sfnt2woff-zopfli: sfnt2woff.c $(FILES) Makefile
- $(CC) $(LDFLAGS) $(FILES) $< -o $@ -lz -lm
+ $(CC) -Izopfli $(LDFLAGS) $(FILES) $< -o $@ -lz -lm
woff2sfnt-zopfli: woff2sfnt.c $(FILES) Makefile
- $(CC) $(LDFLAGS) $(FILES) $< -o $@ -lz -lm
+ $(CC) -Izopfli $(LDFLAGS) $(FILES) $< -o $@ -lz -lm
clean:
$(RM) -r *.o *.dSYM sfnt2woff-zopfli woff2sfnt-zopfli *.gch *.out