Makefile.am 1004 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # Makefile for building testcms
  3. #
  4. # Don't require all the GNU mandated files
  5. AUTOMAKE_OPTIONS = 1.7 foreign
  6. AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/src
  7. check_PROGRAMS = testcms
  8. # CFLAGS = --pedantic -Wall -std=c99 -O2
  9. # The testsuite binary is statically linked. This is necessary as it uses some
  10. # of the internal functions that are not necessarily exported by the shared
  11. # library.
  12. testcms_LDADD = $(top_builddir)/src/liblcms2mt.la
  13. testcms_LDFLAGS = -static @LDFLAGS@
  14. testcms_SOURCES = testcms2.c testplugin.c zoo_icc.c testcms2.h
  15. EXTRA_DIST = test1.icc bad.icc toosmall.icc test2.icc \
  16. test3.icc test4.icc \
  17. test5.icc ibm-t61.icc crayons.icc bad_mpe.icc
  18. check:
  19. if [ $(top_srcdir) != $(top_builddir) ]; then \
  20. cp $(top_srcdir)/testbed/*.ic? $(top_builddir)/testbed; \
  21. fi
  22. LD_LIBRARY_PATH=$(top_builddir)/src/.libs ./testcms
  23. if [ $(top_srcdir) != $(top_builddir) ]; then \
  24. rm -f $(top_builddir)/testbed/*.ic?; \
  25. fi