Makefile.am 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. ## Process this file with automake to produce Makefile.in
  2. #
  3. # Automake Makefile for the JPEG library
  4. #
  5. # This file is written by Bob Friesenhahn, Guido Vollbeding
  6. #
  7. # Sources to build library
  8. LIBSOURCES = jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
  9. jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
  10. jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
  11. jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
  12. jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
  13. jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
  14. jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
  15. jquant2.c jutils.c jmemmgr.c @[email protected]
  16. # System dependent sources
  17. SYSDEPSOURCES = jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
  18. # Headers which are installed to support the library
  19. INSTINCLUDES = jerror.h jmorecfg.h jpeglib.h
  20. # Headers which are not installed
  21. OTHERINCLUDES = cderror.h cdjpeg.h jdct.h jinclude.h jmemsys.h jpegint.h \
  22. jversion.h transupp.h
  23. # Manual pages (Automake uses 'MANS' for itself)
  24. DISTMANS= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1
  25. # Other documentation files
  26. DOCS= README install.txt usage.txt wizard.txt example.c libjpeg.txt \
  27. structure.txt coderules.txt filelist.txt change.log
  28. # Makefiles for various systems
  29. MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.b32 \
  30. makefile.bcc makefile.mc6 makefile.dj makefile.wat makefile.vc \
  31. makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 \
  32. makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 \
  33. makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 \
  34. makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 \
  35. makejsln.v10 makeasln.v10 makejvcx.v10 makejfil.v10 makecvcx.v10 \
  36. makecfil.v10 makedvcx.v10 makedfil.v10 maketvcx.v10 maketfil.v10 \
  37. makervcx.v10 makerfil.v10 makewvcx.v10 makewfil.v10 makeproj.mac \
  38. makcjpeg.st makdjpeg.st makljpeg.st maktjpeg.st makefile.manx \
  39. makefile.sas makefile.mms makefile.vms makvms.opt
  40. # Configuration files
  41. CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
  42. jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
  43. jconfig.vms
  44. # Support scripts for configure
  45. CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \
  46. missing ar-lib
  47. # Miscellaneous support files
  48. OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map
  49. # Test support files
  50. TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
  51. testimgp.jpg
  52. # libtool libraries to build
  53. lib_LTLIBRARIES = libjpeg.la
  54. # Library sources for libjpeg.la
  55. libjpeg_la_SOURCES = $(LIBSOURCES)
  56. # LDFLAGS for libjpeg.la
  57. libjpeg_la_LDFLAGS = -no-undefined \
  58. -version-info $(JPEG_LIB_VERSION)
  59. if HAVE_LD_VERSION_SCRIPT
  60. libjpeg_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libjpeg.map
  61. endif
  62. # Executables to build
  63. bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  64. # Executable sources & libs
  65. cjpeg_SOURCES = cjpeg.c rdppm.c rdgif.c rdtarga.c rdrle.c rdbmp.c \
  66. rdswitch.c cdjpeg.c
  67. cjpeg_LDADD = libjpeg.la
  68. djpeg_SOURCES = djpeg.c wrppm.c wrgif.c wrtarga.c wrrle.c wrbmp.c \
  69. rdcolmap.c cdjpeg.c
  70. djpeg_LDADD = libjpeg.la
  71. jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c
  72. jpegtran_LDADD = libjpeg.la
  73. rdjpgcom_SOURCES = rdjpgcom.c
  74. wrjpgcom_SOURCES = wrjpgcom.c
  75. # Manual pages to install
  76. man_MANS = $(DISTMANS)
  77. # Headers to install
  78. include_HEADERS = $(INSTINCLUDES)
  79. # Other distributed headers
  80. noinst_HEADERS = $(OTHERINCLUDES)
  81. # Other distributed files
  82. EXTRA_DIST = $(DOCS) $(DISTMANS) $(MKFILES) $(CONFIGFILES) $(SYSDEPSOURCES) \
  83. $(OTHERFILES) $(TESTFILES)
  84. # Files to be cleaned
  85. CLEANFILES = testout.ppm testout.bmp testout.jpg testoutp.ppm testoutp.jpg \
  86. testoutt.jpg
  87. # Install jconfig.h
  88. install-data-local:
  89. $(mkinstalldirs) $(DESTDIR)$(includedir)
  90. $(INSTALL_HEADER) jconfig.h $(DESTDIR)$(includedir)/jconfig.h
  91. # Uninstall jconfig.h
  92. uninstall-local:
  93. rm -f $(DESTDIR)$(includedir)/jconfig.h
  94. # Run tests
  95. test: check-local
  96. check-local:
  97. rm -f testout*
  98. ./djpeg -dct int -ppm -outfile testout.ppm $(srcdir)/testorig.jpg
  99. ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg
  100. ./cjpeg -dct int -outfile testout.jpg $(srcdir)/testimg.ppm
  101. ./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg
  102. ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm
  103. ./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg
  104. cmp $(srcdir)/testimg.ppm testout.ppm
  105. cmp $(srcdir)/testimg.bmp testout.bmp
  106. cmp $(srcdir)/testimg.jpg testout.jpg
  107. cmp $(srcdir)/testimg.ppm testoutp.ppm
  108. cmp $(srcdir)/testimgp.jpg testoutp.jpg
  109. cmp $(srcdir)/testorig.jpg testoutt.jpg