diff options
author | Krzysztof Kowalczyk <kkowalczyk@gmail.com> | 2008-03-28 03:22:36 +0100 |
---|---|---|
committer | Krzysztof Kowalczyk <kkowalczyk@gmail.com> | 2008-03-28 03:22:36 +0100 |
commit | 6faec2f64d0bdcb33ccbc94016cb2e92715e639b (patch) | |
tree | 3672e4f928437be2aee2c3424acb286e033e332f | |
parent | c8e95c8ca01769f069a53971a101459ba282dd6d (diff) | |
download | mupdf-6faec2f64d0bdcb33ccbc94016cb2e92715e639b.tar.xz |
add ability to compile with jasper
-rw-r--r-- | Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -1,6 +1,7 @@ # Makefile for building mupdf and related stuff # Valid option to make: # CFG=[rel|dbg] - dbg if not given +# WITH_JASPER=[yes|no] -default: yes # Symbolic names for HOST variable HOST_LINUX := Linux @@ -17,6 +18,10 @@ ifeq ($(CFG),) CFG=dbg endif +ifeq ($(WITH_JASPER),) +WITH_JASPER=yes +endif + INCS = -I include FREETYPE_CFLAGS = `freetype-config --cflags` @@ -52,6 +57,11 @@ CFLAGS += ${FREETYPE_CFLAGS} ${FONTCONFIG_CFLAGS} LDFLAGS += ${FREETYPE_LDFLAGS} ${FONTCONFIG_LDFLAGS} -lm -ljpeg +ifeq ($(WITH_JASPER),yes) +CFLAGS += -DHAVE_JASPER +LDFLAGS += -ljasper +endif + OUTDIR=obj-$(CFG) BASE_SRC = \ @@ -112,8 +122,11 @@ STREAM_SRC = \ filt_dctd.c \ filt_dcte.c \ +ifeq ($(WITH_JASPER),yes) +STREAM_SRC += filt_jpxd.c +endif + #filt_jbig2d.c \ -#filt_jpxd.c \ RASTER_SRC = \ archx86.c \ |