| 1 |
## Wrapper Makefile.am to build libtiff for TeX Live. |
| 2 |
## |
| 3 |
## Copyright (C) 2009-2015 Peter Breitenlohner <[email protected]> |
| 4 |
## |
| 5 |
## This file is free software; the copyright holder |
| 6 |
## gives unlimited permission to copy and/or distribute it, |
| 7 |
## with or without modifications, as long as this notice is preserved. |
| 8 |
## |
| 9 |
## We want to re-distribute the whole original libtiff source tree. |
| 10 |
## |
| 11 |
EXTRA_DIST = $(LIBTIFF_TREE) |
| 12 |
|
| 13 |
## Changes applied to the original source tree |
| 14 |
## |
| 15 |
EXTRA_DIST += $(LIBTIFF_TREE)-PATCHES |
| 16 |
|
| 17 |
# Files not to be distributed |
| 18 |
include $(srcdir)/../../../../am/dist_hook.am |
| 19 |
NEVER_NAMES += $(NEVER_NAMES_SUB) |
| 20 |
|
| 21 |
SUBDIRS = . include |
| 22 |
|
| 23 |
LIBJPEG_INCLUDES = -I$(top_srcdir)/../libjpeg/libjpeg-src |
| 24 |
|
| 25 |
ZLIB_INCLUDES = -I$(top_srcdir)/../../../../libs/zlib/zlib-src -I../../../../libs/zlib |
| 26 |
|
| 27 |
AM_CPPFLAGS = -I$(top_srcdir)/$(LIBTIFF_TREE) $(LIBJPEG_INCLUDES) $(ZLIB_INCLUDES)\ |
| 28 |
$(LIBTIFF_DEFINES) $(LIBTIFF_USER_CPPFLAGS) -D_LARGEFILE64_SOURCE |
| 29 |
##AM_CFLAGS = $(VISIBILITY_CFLAGS) $(WARNING_CFLAGS) \ |
| 30 |
AM_CFLAGS = $(WARNING_CFLAGS) \ |
| 31 |
-DLZW_SUPPORT -DPACKBITS_SUPPORT -DTHUNDER_SUPPORT -DNEXT_SUPPORT \ |
| 32 |
-DCCITT_SUPPORT -DZIP_SUPPORT -DPIXARLOG_SUPPORT -DLOGLUV_SUPPORT -DJPEG_SUPPORT -D_LARGEFILE64_SOURCE |
| 33 |
# following codecs require additional third party sources |
| 34 |
# -DJBIG_SUPPORT -DLZMA_SUPPORT |
| 35 |
|
| 36 |
noinst_LIBRARIES = libtiff.a |
| 37 |
|
| 38 |
libtiff_a_SOURCES = \ |
| 39 |
@LIBTIFF_TREE@/tif_aux.c \ |
| 40 |
@LIBTIFF_TREE@/tif_close.c \ |
| 41 |
@LIBTIFF_TREE@/tif_codec.c \ |
| 42 |
@LIBTIFF_TREE@/tif_color.c \ |
| 43 |
@LIBTIFF_TREE@/tif_compress.c \ |
| 44 |
@LIBTIFF_TREE@/tif_dir.c \ |
| 45 |
@LIBTIFF_TREE@/tif_dirinfo.c \ |
| 46 |
@LIBTIFF_TREE@/tif_dirread.c \ |
| 47 |
@LIBTIFF_TREE@/tif_dirwrite.c \ |
| 48 |
@LIBTIFF_TREE@/tif_dumpmode.c \ |
| 49 |
@LIBTIFF_TREE@/tif_error.c \ |
| 50 |
@LIBTIFF_TREE@/tif_extension.c \ |
| 51 |
@LIBTIFF_TREE@/tif_fax3.c \ |
| 52 |
@LIBTIFF_TREE@/tif_fax3sm.c \ |
| 53 |
@LIBTIFF_TREE@/tif_flush.c \ |
| 54 |
@LIBTIFF_TREE@/tif_getimage.c \ |
| 55 |
@LIBTIFF_TREE@/tif_jbig.c \ |
| 56 |
@LIBTIFF_TREE@/tif_jpeg.c \ |
| 57 |
@LIBTIFF_TREE@/tif_jpeg_12.c \ |
| 58 |
@LIBTIFF_TREE@/tif_luv.c \ |
| 59 |
@LIBTIFF_TREE@/tif_lzma.c \ |
| 60 |
@LIBTIFF_TREE@/tif_lzw.c \ |
| 61 |
@LIBTIFF_TREE@/tif_next.c \ |
| 62 |
@LIBTIFF_TREE@/tif_ojpeg.c \ |
| 63 |
@LIBTIFF_TREE@/tif_open.c \ |
| 64 |
@LIBTIFF_TREE@/tif_packbits.c \ |
| 65 |
@LIBTIFF_TREE@/tif_pixarlog.c \ |
| 66 |
@LIBTIFF_TREE@/tif_predict.c \ |
| 67 |
@LIBTIFF_TREE@/tif_print.c \ |
| 68 |
@LIBTIFF_TREE@/tif_read.c \ |
| 69 |
@LIBTIFF_TREE@/tif_strip.c \ |
| 70 |
@LIBTIFF_TREE@/tif_swab.c \ |
| 71 |
@LIBTIFF_TREE@/tif_thunder.c \ |
| 72 |
@LIBTIFF_TREE@/tif_tile.c \ |
| 73 |
@LIBTIFF_TREE@/tif_version.c \ |
| 74 |
@LIBTIFF_TREE@/tif_warning.c \ |
| 75 |
@LIBTIFF_TREE@/tif_write.c \ |
| 76 |
@LIBTIFF_TREE@/tif_zip.c \ |
| 77 |
@LIBTIFF_TREE@/tif_hash_set.c |
| 78 |
|
| 79 |
$(libtiff_a_OBJECTS): config.force |
| 80 |
|
| 81 |
CLEANFILES = |
| 82 |
|
| 83 |
LDADD = libtiff.a |
| 84 |
|
| 85 |
clean-local: |
| 86 |
rm -rf libtiff libtiff.* |
| 87 |
|
| 88 |
# Rebuild libtiff |
| 89 |
@LIBJPEG_RULE@ |
| 90 |
## Rebuild libz |
| 91 |
@ZLIB_RULE@ |
| 92 |
|
| 93 |
#Reconfig |
| 94 |
reconfig_prereq = $(LIBJPEG_DEPEND) $(ZLIB_DEPEND) |
| 95 |
DISTCLEANFILES = |
| 96 |
|
| 97 |
#Rebuild |
| 98 |
rebuild_prereq = |
| 99 |
rebuild_target = all |
| 100 |
|
| 101 |
include $(srcdir)/../../../../am/rebuild.am |