#
#
#

SubDir TOP fitz ;

#
# The base runtime support, and patching over
# platform specific wonkyness.
#

Library libfitz :
	base_cpudep.c
	base_error.c
	base_hash.c
	base_matrix.c
	base_memory.c
	base_rect.c
	base_string.c
	base_unicode.c
	;

Library libfitz : util_getopt.c ;

# MSVC does not have gettimeofday()
if $(OS) = NT
{
    Library libfitz : util_gettimeofday.c ;
}

#
# Encryption, carousel-object-system, filters, buffers and streams.
#

Library libfitz :

	crypt_arc4.c
	crypt_crc32.c
	crypt_md5.c

	obj_array.c
	obj_dict.c
	obj_parse.c
	obj_print.c
	obj_simple.c

	stm_buffer.c
	stm_filter.c
	stm_open.c
	stm_read.c
	stm_misc.c

	filt_pipeline.c
	filt_arc4.c
	filt_null.c

	filt_a85d.c
	filt_a85e.c
	filt_ahxd.c
	filt_ahxe.c
	filt_dctd.c
	filt_dcte.c
	filt_faxd.c
	filt_faxdtab.c
	filt_faxe.c
	filt_faxetab.c
	filt_flate.c
	filt_lzwd.c
	filt_lzwe.c
	filt_predict.c
	filt_rld.c
	filt_rle.c

	;

if $(HAVE_JBIG2DEC) { Library libfitz : filt_jbig2d.c ; }
if $(HAVE_JASPER)   { Library libfitz : filt_jpxd_jas.c ; }
if $(HAVE_OPENJPEG) { Library libfitz : filt_jpxd_opj.c ; }

#
# Resources and display tree.
#

Library libfitz :

	node_toxml.c
	node_misc1.c
	node_misc2.c
	node_optimize.c
	node_path.c
	node_text.c
	node_tree.c

	res_colorspace.c
	res_font.c
	res_image.c
	res_shade.c

	;

