Makefile.am 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. include $(top_srcdir)/gtester.mk
  2. NULL =
  3. ### General compilation flags
  4. AM_CPPFLAGS = \
  5. -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
  6. -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
  7. -DPACKAGE_DATA_DIR=\""$(datadir)"\"
  8. AM_CFLAGS = \
  9. -g \
  10. $(GLIB_CFLAGS) \
  11. $(GTK_CFLAGS) \
  12. -I$(top_builddir)/. \
  13. -I$(top_builddir)/libgtkflow \
  14. -DTEST_DIR=\"$(builddir)\" \
  15. $(NULL)
  16. noinst_PROGRAMS = $(TEST_PROGS)
  17. TEST_PROGS += gflow_test
  18. sources = \
  19. gflow-test.vala \
  20. tests-config.vala \
  21. gflow-sink-test.vala \
  22. gflow-source-test.vala \
  23. gflow-dock-test.vala \
  24. gflow-node-test.vala \
  25. gtkflow-test-app-class.vala \
  26. gtkflow-node-test.vala \
  27. $(NULL)
  28. $(sources:.vala=.c): $(sources)
  29. $(VALAC) $(AM_VALAFLAGS) $^
  30. gflow_test_SOURCES = $(sources:.vala=.c)
  31. AM_VALAFLAGS = \
  32. --vapidir=$(top_builddir)/libgflow \
  33. --pkg gflow-0.2 \
  34. --vapidir=$(top_builddir)/libgtkflow \
  35. --pkg gtkflow-0.2 \
  36. --pkg gtk+-3.0 \
  37. -C \
  38. -g \
  39. -X -DTEST_DIR=$(top_srcdir)/test \
  40. $(NULL)
  41. if DEBUG
  42. AM_VALAFLAGS+= -D DEBUG
  43. endif
  44. gflow_test_LDADD = \
  45. $(AM_LDADD) \
  46. $(GLIB_LIBS) \
  47. $(GTK_LIBS) \
  48. ../libgflow/libgflow-0.2.la \
  49. ../libgtkflow/libgtkflow-0.2.la \
  50. $(NULL)
  51. gflow_test_LDFLAGS = $(AM_LDFLAGS)
  52. CLEANFILES = \
  53. $(sources:.vala=.c) \
  54. gtkflow_test_vala.stamp-t \
  55. gflow_test
  56. DISTCLEANFILES =
  57. EXTRA_DIST += \
  58. $(sources) \
  59. $(NULL)