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.
 
 
 
 
 
 

117 lines
2.8 KiB

  1. # $Id$
  2. EXTRA_DIST = caca_types.h.in caca.pc.in \
  3. mono9.data monobold12.data \
  4. libcaca.vcproj libcaca.def
  5. DISTCLEANFILES = caca_types.h caca.pc
  6. AM_CPPFLAGS = -I$(top_srcdir) -DPLUGINDIR=\"$(plugindir)\"
  7. pkgconfig_DATA = caca.pc
  8. pkgconfigdir = $(libdir)/pkgconfig
  9. include_HEADERS = caca.h caca_types.h caca0.h
  10. lib_LTLIBRARIES = libcaca.la
  11. libcaca_la_SOURCES = \
  12. caca.c \
  13. caca.h \
  14. caca_types.h \
  15. caca_internals.h \
  16. caca_stubs.h \
  17. caca0.c \
  18. caca0.h \
  19. canvas.c \
  20. dirty.c \
  21. string.c \
  22. legacy.c \
  23. transform.c \
  24. charset.c \
  25. attr.c \
  26. line.c \
  27. box.c \
  28. conic.c \
  29. triangle.c \
  30. frame.c \
  31. dither.c \
  32. font.c \
  33. file.c \
  34. figfont.c \
  35. graphics.c \
  36. event.c \
  37. time.c \
  38. $(codec_source) \
  39. $(driver_source) \
  40. $(NULL)
  41. libcaca_la_DEPENDENCIES = \
  42. mono9.data \
  43. monobold12.data \
  44. $(NULL)
  45. libcaca_la_CPPFLAGS = $(AM_CPPFLAGS) @CACA_CFLAGS@ -D__LIBCACA__
  46. libcaca_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@
  47. libcaca_la_LIBADD = @CACA_LIBS@ $(ZLIB_LIBS)
  48. codec_source = \
  49. codec/import.c \
  50. codec/export.c \
  51. codec/codec.h \
  52. codec/text.c \
  53. $(NULL)
  54. driver_source = \
  55. driver/conio.c \
  56. driver/ncurses.c \
  57. driver/raw.c \
  58. driver/slang.c \
  59. driver/vga.c \
  60. driver/win32.c \
  61. $(NULL)
  62. install-exec-local:
  63. $(mkinstalldirs) $(DESTDIR)$(libdir)
  64. . libcaca.la; \
  65. for x in $$library_names; do \
  66. ln -sf $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
  67. done
  68. ln -sf libcaca.la $(DESTDIR)$(libdir)/libcucul.la
  69. install-data-local:
  70. $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
  71. ln -sf caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc
  72. $(mkinstalldirs) $(DESTDIR)$(includedir)
  73. ln -sf caca.h $(DESTDIR)$(includedir)/cucul.h
  74. uninstall-local:
  75. . libcaca.la; \
  76. for x in $$library_names; do \
  77. rm -f $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
  78. done
  79. rm -f $(DESTDIR)$(libdir)/libcucul.la
  80. rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
  81. rm -f $(DESTDIR)$(pkgconfigdir)/cucul.pc
  82. rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true
  83. rm -f $(DESTDIR)$(includedir)/cucul.h
  84. if USE_PLUGINS
  85. plugin_LTLIBRARIES = libx11_plugin.la libgl_plugin.la
  86. plugindir = $(libdir)/caca
  87. libx11_plugin_la_SOURCES = driver/x11.c
  88. libx11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(X11_CFLAGS)
  89. libx11_plugin_la_LDFLAGS = -no-undefined -module -no-version
  90. libx11_plugin_la_LIBADD = libcaca.la $(X11_LIBS)
  91. libgl_plugin_la_SOURCES = driver/gl.c
  92. libgl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(GL_CFLAGS) #$(FTGL_CFLAGS)
  93. libgl_plugin_la_LDFLAGS = -no-undefined -module -no-version
  94. libgl_plugin_la_LIBADD = libcaca.la $(GL_LIBS) #$(FTGL_LIBS)
  95. else
  96. driver_source += driver/x11.c driver/gl.c
  97. endif
  98. if USE_COCOA
  99. driver_source += driver/cocoa.m
  100. endif