Codebase list sfnt2woff-zopfli / accc70c
Add ZLIB_LIBS and ZLIB_CFLAGS variables to the Makefile to make it easy to control linking against zlib, just as we added ZOPFLI_LIBS and ZOPFLI_CFLAGS for the Zopfli library. Benjamin Beasley authored 3 years ago Paride Legovini committed 1 year, 10 months ago
1 changed file(s) with 7 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1616 # with the empty string to avoid finding bundled Zopfli headers.
1717 ZOPFLI_CFLAGS=-Izopfli
1818
19 ZLIB_LIBS=-lz
20 ZLIB_CFLAGS=
21
1922 FILES=woff.c
2023
2124 all: sfnt2woff-zopfli woff2sfnt-zopfli
2225
2326 sfnt2woff-zopfli: sfnt2woff.c $(FILES) Makefile
24 $(CC) $(CPPFLAGS) $(CFLAGS) $(ZOPFLI_CFLAGS) \
27 $(CC) $(CPPFLAGS) $(CFLAGS) $(ZOPFLI_CFLAGS) $(ZLIB_CFLAGS) \
2528 $(FILES) $< -o $@ \
26 $(LDFLAGS) $(ZOPFLI_LIBS) -lz -lm
29 $(LDFLAGS) $(ZOPFLI_LIBS) $(ZLIB_LIBS) -lm
2730
2831 woff2sfnt-zopfli: woff2sfnt.c $(FILES) Makefile
29 $(CC) $(CPPFLAGS) $(CFLAGS) $(ZOPFLI_CFLAGS) \
32 $(CC) $(CPPFLAGS) $(CFLAGS) $(ZOPFLI_CFLAGS) $(ZLIB_CFLAGS) \
3033 $(FILES) $< -o $@ \
31 $(LDFLAGS) $(ZOPFLI_LIBS) -lz -lm
34 $(LDFLAGS) $(ZOPFLI_LIBS) $(ZLIB_LIBS) -lm
3235
3336 clean:
3437 $(RM) -r *.o *.dSYM sfnt2woff-zopfli woff2sfnt-zopfli *.gch *.out