From d177bb1fb75b129721219d9c40ff910840db9785 Mon Sep 17 00:00:00 2001 From: Benjamin Beasley Date: Tue, 20 Oct 2020 13:45:03 -0400 Subject: 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. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3