diff options
author | Mattias Andrée <maandree@kth.se> | 2021-08-17 17:44:35 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-08-17 17:44:35 +0200 |
commit | 6b8fc61b772b394d7a205531b492101c519dc47d (patch) | |
tree | 85d441e2de4d57e9432a5d0173aa48c214ebb39c /config.mk | |
parent | m (diff) | |
download | libskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.gz libskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.bz2 libskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.xz |
Add support for gzip compression and prepare for PSF support
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | config.mk | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -3,12 +3,17 @@ MANPREFIX = $(PREFIX)/share/man DEMO_FONT = /usr/share/fonts/liberation/LiberationSans-Regular.ttf +GUNZIP_PATH = /usr/bin/gunzip +GZIP_SUPPORT = '-DGUNZIP_PATH="$(GUNZIP_PATH)"' +# To exclude gzip support, build with 'GZIP_SUPPORT=' + MERGE_STYLE = MAX # MAX: The max value of the glyph (minimum legal result, insignificantly slower than SUM) # OR: The bitwise OR of the glyph values (within legal range, fastest) # SUM: The saturated sum of the glyph values (maximum legal result) -CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D$(MERGE_STYLE)_MERGE '-DDEMO_FONT="$(DEMO_FONT)"' +CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE \ + -D$(MERGE_STYLE)_MERGE $(GZIP_SUPPORT) '-DDEMO_FONT="$(DEMO_FONT)"' CFLAGS = -std=c99 -Wall -g LDFLAGS = -lschrift -lm -lgrapheme |