Makefile.am 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. timer.c timer.h
  39. if USE_MAINTAINER_MODE
  40. libmc_la_SOURCES += logging.c logging.h
  41. endif
  42. if CHARSET
  43. libmc_la_SOURCES += charsets.c charsets.h
  44. endif
  45. AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
  46. libmc_la_LIBADD = \
  47. event/libmcevent.la \
  48. filehighlight/libmcfilehighlight.la \
  49. mcconfig/libmcconfig.la \
  50. search/libsearch.la \
  51. strutil/libmcstrutil.la \
  52. skin/libmcskin.la \
  53. tty/libmctty.la \
  54. vfs/libmcvfs.la \
  55. widget/libmcwidget.la
  56. libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)
  57. if HAVE_GMODULE
  58. libmc_la_LIBADD += $(GMODULE_LIBS)
  59. else
  60. libmc_la_LIBADD += $(GLIB_LIBS)
  61. endif
  62. libmc_la_LIBADD += $(PCRE_LIBS) $(LIBICONV) $(LIBINTL)