Makefile.am 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. SUBDIRS = event filehighlight mcconfig search skin tty vfs strutil widget .
  2. if ENABLE_MCLIB
  3. LIB_VERSION=`echo $(LIBMC_VERSION) | \
  4. tr '.' ' '| \
  5. while read v1 v2 v3; do echo $$v2':'$$v3':'$$v1; done`
  6. AM_LDFLAGS=-no-undefined -version-info $(LIB_VERSION) -release $(LIBMC_RELEASE)
  7. lib_LTLIBRARIES = libmc.la
  8. else
  9. noinst_LTLIBRARIES = libmc.la
  10. endif
  11. SUBLIB_includes = \
  12. event.h event-types.h \
  13. filehighlight.h \
  14. mcconfig.h \
  15. search.h \
  16. skin.h \
  17. strescape.h \
  18. strutil.h \
  19. widget.h
  20. SRC_mc_utils = \
  21. utilunix.c utilunix.h \
  22. unixcompat.h \
  23. util.c util.h
  24. libmc_la_SOURCES = \
  25. $(SUBLIB_includes) \
  26. $(SRC_mc_utils) \
  27. fileloc.h \
  28. fs.h \
  29. hook.c hook.h \
  30. glibcompat.c glibcompat.h \
  31. global.c global.h \
  32. keybind.c keybind.h \
  33. lock.c lock.h \
  34. serialize.c serialize.h \
  35. shell.c shell.h \
  36. stat-size.h \
  37. timefmt.c timefmt.h
  38. if USE_MAINTAINER_MODE
  39. libmc_la_SOURCES += logging.c logging.h
  40. endif
  41. if CHARSET
  42. libmc_la_SOURCES += charsets.c charsets.h
  43. endif
  44. AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
  45. libmc_la_LIBADD = \
  46. event/libmcevent.la \
  47. filehighlight/libmcfilehighlight.la \
  48. mcconfig/libmcconfig.la \
  49. search/libsearch.la \
  50. strutil/libmcstrutil.la \
  51. skin/libmcskin.la \
  52. tty/libmctty.la \
  53. vfs/libmcvfs.la \
  54. widget/libmcwidget.la
  55. libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)
  56. if HAVE_GMODULE
  57. libmc_la_LIBADD += $(GMODULE_LIBS)
  58. else
  59. libmc_la_LIBADD += $(GLIB_LIBS)
  60. endif
  61. libmc_la_LIBADD += $(PCRE_LIBS)