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. strutil.h \
  18. widget.h
  19. SRC_mc_utils = \
  20. utilunix.c \
  21. unixcompat.h \
  22. util.c util.h
  23. libmc_la_SOURCES = \
  24. $(SUBLIB_includes) \
  25. $(SRC_mc_utils) \
  26. file-entry.h \
  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