Makefile.am 1.4 KB

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