Makefile.am 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. idx.h \
  15. intprops-internal.h \
  16. intprops.h \
  17. mcconfig.h \
  18. search.h \
  19. skin.h \
  20. strutil.h \
  21. widget.h
  22. SRC_mc_utils = \
  23. utilunix.c \
  24. unixcompat.h \
  25. util.c util.h
  26. libmc_la_SOURCES = \
  27. $(SUBLIB_includes) \
  28. $(SRC_mc_utils) \
  29. file-entry.h \
  30. fileloc.h \
  31. fs.h \
  32. hook.c hook.h \
  33. glibcompat.c glibcompat.h \
  34. global.c global.h \
  35. keybind.c keybind.h \
  36. lock.c lock.h \
  37. serialize.c serialize.h \
  38. shell.c shell.h \
  39. stat-size.h \
  40. timefmt.c timefmt.h
  41. if USE_MAINTAINER_MODE
  42. libmc_la_SOURCES += logging.c logging.h
  43. endif
  44. if CHARSET
  45. libmc_la_SOURCES += charsets.c charsets.h
  46. endif
  47. EXTRA_DIST = \
  48. stdckdint.in.h
  49. AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
  50. libmc_la_LIBADD = \
  51. event/libmcevent.la \
  52. filehighlight/libmcfilehighlight.la \
  53. mcconfig/libmcconfig.la \
  54. search/libsearch.la \
  55. strutil/libmcstrutil.la \
  56. skin/libmcskin.la \
  57. tty/libmctty.la \
  58. vfs/libmcvfs.la \
  59. widget/libmcwidget.la
  60. libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)
  61. if HAVE_GMODULE
  62. libmc_la_LIBADD += $(GMODULE_LIBS)
  63. else
  64. libmc_la_LIBADD += $(GLIB_LIBS)
  65. endif