Makefile.am 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. 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. AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CPPFLAGS)
  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)