Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

120 строки
3.2 KiB

  1. include $(top_srcdir)/build/autotools/common.am
  2. jnidir = $(libdir)/jni
  3. libcaca_javadir = $(datadir)/java
  4. java_jar = libjava.jar
  5. if USE_JAVA
  6. jni_LTLIBRARIES = libcaca-java.la
  7. libcaca_java_DATA = $(java_jar)
  8. noinst_DATA = examples/Driver.class examples/TrueColor.class
  9. endif
  10. java_src = $(wildcard $(srcdir)/org/zoy/caca/*.java)
  11. java_jni_headers = \
  12. org_zoy_caca_Attribute.h \
  13. org_zoy_caca_Caca.h \
  14. org_zoy_caca_Canvas.h \
  15. org_zoy_caca_Display.h \
  16. org_zoy_caca_Dither.h \
  17. org_zoy_caca_Event.h \
  18. org_zoy_caca_Font.h
  19. java_jni_src = \
  20. org_zoy_caca_Attribute.c \
  21. org_zoy_caca_Caca.c \
  22. org_zoy_caca_Canvas.c \
  23. org_zoy_caca_Display.c \
  24. org_zoy_caca_Dither.c \
  25. org_zoy_caca_Event.c \
  26. org_zoy_caca_Font.c
  27. java_jni_classes = \
  28. org/zoy/caca/Attribute.class \
  29. org/zoy/caca/Caca.class \
  30. org/zoy/caca/Canvas.class \
  31. org/zoy/caca/Display.class \
  32. org/zoy/caca/Dither.class \
  33. org/zoy/caca/Event.class \
  34. org/zoy/caca/Font.class
  35. java_jni_java = \
  36. org/zoy/caca/CacaException.java \
  37. org/zoy/caca/Caca.java \
  38. org/zoy/caca/NativeObject.java \
  39. org/zoy/caca/Dither.java \
  40. org/zoy/caca/Canvas.java \
  41. org/zoy/caca/CacaObject.java \
  42. org/zoy/caca/Font.java \
  43. org/zoy/caca/Attribute.java \
  44. org/zoy/caca/Color.java \
  45. org/zoy/caca/Event.java \
  46. org/zoy/caca/TimeoutException.java \
  47. org/zoy/caca/Display.java
  48. JAVAH_FLAGS = -d . -classpath .
  49. $(java_jni_classes): $(java_src)
  50. $(JAVAC) -d . $(java_src)
  51. $(JAR) -cf $(java_jar) org
  52. # Javah does not update the file if it detects that there is nothing to do,
  53. # hence the `touch` so that javah is not run at every `make`.
  54. org_zoy_caca_Attribute.h: org/zoy/caca/Attribute.class
  55. $(JAVAH) $(JAVAH_FLAGS) org.zoy.caca.Attribute
  56. @touch org_zoy_caca_Attribute.h
  57. org_zoy_caca_Caca.h: org/zoy/caca/Caca.class
  58. $(JAVAH) $(JAVAH_FLAGS) org.zoy.caca.Caca
  59. @touch org_zoy_caca_Caca.h
  60. org_zoy_caca_Canvas.h: org/zoy/caca/Canvas.class
  61. $(JAVAH) $(JAVAH_FLAGS) org.zoy.caca.Canvas
  62. @touch org_zoy_caca_Canvas.h
  63. org_zoy_caca_Display.h: org/zoy/caca/Display.class
  64. $(JAVAH) $(JAVAH_FLAGS) org.zoy.caca.Display
  65. @touch org_zoy_caca_Display.h
  66. org_zoy_caca_Dither.h: org/zoy/caca/Dither.class
  67. $(JAVAH) $(JAVAH_FLAGS) org.zoy.caca.Dither
  68. @touch org_zoy_caca_Dither.h
  69. org_zoy_caca_Event.h: org/zoy/caca/Event.class
  70. $(JAVAH) $(JAVAH_FLAGS) org.zoy.caca.Event
  71. @touch org_zoy_caca_Event.h
  72. org_zoy_caca_Font.h: org/zoy/caca/Font.class
  73. $(JAVAH) $(JAVAH_FLAGS) org.zoy.caca.Font
  74. @touch org_zoy_caca_Font.h
  75. CLEANFILES = $(noinst_DATA) $(java_jar) \
  76. org/zoy/caca/*.class org_zoy_caca_[A-Z]*.h
  77. EXTRA_DIST = README $(java_jni_java) \
  78. examples/Driver.java examples/TrueColor.java
  79. if USE_JAVA
  80. BUILT_SOURCES = $(java_jni_headers) $(java_jni_classes)
  81. endif
  82. libcaca_java_la_CPPFLAGS = $(AM_CPPFLAGS) $(JAVA_CFLAGS)
  83. libcaca_java_la_SOURCES = \
  84. caca_java_common.h \
  85. caca_java_common.c \
  86. $(java_jni_src)
  87. #nodist_libcaca_java_la_SOURCES = \
  88. # $(java_jni_headers)
  89. libcaca_java_la_LDFLAGS = -shared $(JAVA_LIBS)
  90. libcaca_java_la_LIBADD = ../caca/libcaca.la
  91. examples/Driver.class: examples/Driver.java
  92. $(JAVAC) $^
  93. examples/TrueColor.class: examples/TrueColor.java
  94. $(JAVAC) $^