You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB

3 months ago
  1. cplusplus_sources = cplusplus/cuddObj.hh cplusplus/cuddObj.cc
  2. if OBJ
  3. cudd_libcudd_la_SOURCES += $(cplusplus_sources)
  4. else
  5. noinst_LTLIBRARIES += cplusplus/libobj.la
  6. cplusplus_libobj_la_SOURCES = $(cplusplus_sources)
  7. cplusplus_libobj_la_CPPFLAGS = -I$(top_srcdir)/cudd -I$(top_srcdir)/mtr \
  8. -I$(top_srcdir)/epd -I$(top_srcdir)/st
  9. endif !OBJ
  10. check_PROGRAMS += cplusplus/testobj cplusplus/testmulti
  11. cplusplus_testobj_SOURCES = cplusplus/testobj.cc
  12. if OBJ
  13. cplusplus_testobj_CPPFLAGS = $(cudd_libcudd_la_CPPFLAGS)
  14. cplusplus_testobj_LDADD =
  15. else
  16. cplusplus_testobj_CPPFLAGS = $(cplusplus_libobj_la_CPPFLAGS)
  17. cplusplus_testobj_LDADD = cplusplus/libobj.la
  18. endif !OBJ
  19. cplusplus_testobj_LDADD += cudd/libcudd.la
  20. cplusplus_testmulti_SOURCES = cplusplus/testmulti.cc
  21. if OBJ
  22. cplusplus_testmulti_CPPFLAGS = $(cudd_libcudd_la_CPPFLAGS)
  23. cplusplus_testmulti_LDADD =
  24. else
  25. cplusplus_testmulti_CPPFLAGS = $(cplusplus_libobj_la_CPPFLAGS)
  26. cplusplus_testmulti_LDADD = cplusplus/libobj.la
  27. endif !OBJ
  28. cplusplus_testmulti_LDADD += cudd/libcudd.la
  29. if HAVE_PTHREADS
  30. cplusplus_testmulti_LDFLAGS = -pthread
  31. endif HAVE_PTHREADS
  32. check_SCRIPTS += cplusplus/test_obj.test
  33. dist_check_DATA += cplusplus/test.out cplusplus/multi.out
  34. EXTRA_DIST += cplusplus/test_obj.test.in
  35. if !CROSS_COMPILING
  36. TESTS += cplusplus/test_obj.test
  37. endif !CROSS_COMPILING
  38. cplusplus/test_obj.test: cplusplus/test_obj.test.in Makefile
  39. $(do_subst) $< > $@
  40. chmod +x $@
  41. CLEANFILES += cplusplus/test.tst cplusplus/multi.tst