SUBDIRS =

# The endianness is computed before compilation by the Makefile
# in the root directory.  To do this, it compiles and runs a
# small testing program.
MAKE = make -f Makefile
AM_CFLAGS = -D_BSD_SOURCE -DANSI -fPIC
AM_CPPFLAGS = $(ENDIANNESS)
CFLAGS = -O2

lib_LIBRARIES = liblept.a
liblept_a_SOURCES = adaptmap.c \
 affine.c affinecompose.c \
 arithlow.c arrayaccess.c \
 bardecode.c \
 baseline.c bbuffer.c \
 bilinear.c binarize.c \
 binexpand.c binexpandlow.c \
 binreduce.c binreducelow.c \
 blend.c bmf.c \
 bmpio.c bmpiostub.c boxbasic.c \
 boxfunc1.c boxfunc2.c boxfunc3.c \
 ccbord.c ccthin.c \
 classapp.c colorcontent.c \
 colormap.c colormorph.c \
 colorquant1.c colorquant2.c \
 colorseg.c \
 compare.c conncomp.c \
 convolve.c convolvelow.c \
 correlscore.c dwacomb.2.c \
 dwacomblow.2.c edge.c \
 enhance.c fhmtauto.c \
 fhmtgen.1.c fhmtgenlow.1.c \
 finditalic.c \
 flipdetect.c fliphmtgen.c \
 fmorphauto.c fmorphgen.1.c \
 fmorphgenlow.1.c fpix1.c fpix2.c \
 gifio.c gifiostub.c \
 gplot.c graphics.c graymorph.c \
 graymorphlow.c grayquant.c \
 grayquantlow.c heap.c jbclass.c \
 jpegio.c jpegiostub.c \
 kernel.c list.c \
 maze.c morphapp.c \
 morph.c morphdwa.c \
 morphseq.c numabasic.c \
 numafunc1.c numafunc2.c pageseg.c \
 paintcmap.c parseprotos.c \
 partition.c \
 pix1.c pix2.c pix3.c pix4.c \
 pixabasic.c pixacc.c \
 pixafunc1.c pixafunc2.c \
 pixalloc.c pixarith.c \
 pixcomp.c pixconv.c pixtiling.c \
 pngio.c pngiostub.c \
 pnmio.c pnmiostub.c \
 projective.c psio1.c psio1stub.c \
 psio2.c psio2stub.c \
 ptra.c pts.c queue.c \
 rank.c readbarcode.c readfile.c \
 regutils.c rop.c ropiplow.c \
 roplow.c rotateam.c \
 rotateamlow.c rotate.c \
 rotateorth.c rotateorthlow.c \
 rotateshear.c runlength.c \
 sarray.c scale.c \
 scalelow.c seedfill.c \
 seedfilllow.c sel1.c \
 sel2.c selgen.c \
 shear.c skew.c \
 stack.c textops.c \
 tiffio.c tiffiostub.c \
 utils.c viewfiles.c \
 warper.c watershed.c writefile.c \
 zlibmem.c zlibmemstub.c

include_HEADERS = allheaders.h alltypes.h arrayaccess.h \
 array.h bbuffer.h bmf.h bmp.h ccbord.h environ.h \
 gplot.h heap.h imageio.h jbclass.h jmorecfg.h jpeglib.h leptprotos.h list.h \
 morph.h pix.h ptra.h queue.h readbarcode.h regutils.h \
 stack.h watershed.h

EXTRA_DIST = Makefile.mingw arrayaccess.h.vc arrayaccess.h.vc60 \
 endiantest.c hmttemplate1.txt hmttemplate2.txt leptonica-license.txt \
 ../leptonlib.dsp ../leptonlib.dsw morphtemplate1.txt \
 morphtemplate2.txt xtractprotos.c

