Makefile.am 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. #
  2. # Copyright 2005 Red Hat, Inc.
  3. #
  4. # Permission to use, copy, modify, distribute, and sell this software and its
  5. # documentation for any purpose is hereby granted without fee, provided that
  6. # the above copyright notice appear in all copies and that both that
  7. # copyright notice and this permission notice appear in supporting
  8. # documentation, and that the name of Red Hat not be used in
  9. # advertising or publicity pertaining to distribution of the software without
  10. # specific, written prior permission. Red Hat makes no
  11. # representations about the suitability of this software for any purpose. It
  12. # is provided "as is" without express or implied warranty.
  13. #
  14. # RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  15. # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  16. # EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  17. # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  18. # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  19. # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  20. # PERFORMANCE OF THIS SOFTWARE.
  21. SUBDIRS = man
  22. bin_PROGRAMS = xedit
  23. noinst_LIBRARIES = liblisp.a libre.a libmp.a
  24. noinst_PROGRAMS = lisp/lsp lisp/re/tests
  25. #
  26. # libmp.a
  27. #
  28. libmp_a_CFLAGS = $(CWARNFLAGS)
  29. libmp_a_SOURCES = \
  30. lisp/mp/mp.c \
  31. lisp/mp/mp.h \
  32. lisp/mp/mpi.c \
  33. lisp/mp/mpr.c
  34. #
  35. # liblisp.a
  36. #
  37. liblisp_a_CFLAGS = $(CWARNFLAGS) -I$(top_srcdir)/lisp/re -I$(top_srcdir)/lisp/mp -DLISP -DLISPDIR=\"$(LISPDIR)\" $(PKGDEPS_CFLAGS)
  38. liblisp_a_SOURCES = \
  39. lisp/bytecode.c \
  40. lisp/bytecode.h \
  41. lisp/core.c \
  42. lisp/core.h \
  43. lisp/debugger.c \
  44. lisp/debugger.h \
  45. lisp/format.c \
  46. lisp/format.h \
  47. lisp/hash.c \
  48. lisp/hash.h \
  49. lisp/helper.c \
  50. lisp/helper.h \
  51. lisp/internal.h \
  52. lisp/io.c \
  53. lisp/io.h \
  54. lisp/lisp.c \
  55. lisp/lisp.h \
  56. lisp/math.c \
  57. lisp/math.h \
  58. lisp/package.c \
  59. lisp/package.h \
  60. lisp/pathname.c \
  61. lisp/pathname.h \
  62. lisp/private.h \
  63. lisp/read.c \
  64. lisp/read.h \
  65. lisp/regex.c \
  66. lisp/regex.h \
  67. lisp/require.c \
  68. lisp/require.h \
  69. lisp/stream.c \
  70. lisp/stream.h \
  71. lisp/string.c \
  72. lisp/string.h \
  73. lisp/struct.c \
  74. lisp/struct.h \
  75. lisp/time.c \
  76. lisp/time.h \
  77. lisp/write.c \
  78. lisp/write.h \
  79. lisp/xedit.c \
  80. lisp/xedit.h
  81. if NEED_UNSETENV
  82. liblisp_a_SOURCES += lisp/getenv.c
  83. liblisp_a_SOURCES += lisp/setenv.c
  84. endif
  85. #
  86. # libre.a
  87. #
  88. libre_a_CFLAGS = $(CWARNFLAGS)
  89. libre_a_SOURCES = \
  90. lisp/re/re.c \
  91. lisp/re/rec.c \
  92. lisp/re/re.h \
  93. lisp/re/reo.c \
  94. lisp/re/rep.h
  95. #
  96. # xedit
  97. #
  98. xedit_DEPENDENCIES = liblisp.a libmp.a libre.a
  99. xedit_CFLAGS = $(CWARNFLAGS) $(PKGDEPS_CFLAGS) -I$(top_srcdir)/lisp/re -D_BSD_SOURCE -DXEDIT
  100. xedit_LDADD = -L. -lre -llisp -lmp $(PKGDEPS_LIBS) -lm
  101. xedit_SOURCES = \
  102. commands.c \
  103. hash.c \
  104. hook.c \
  105. ispell.c \
  106. lisp.c \
  107. options.c \
  108. tags.c \
  109. util.c \
  110. util.h \
  111. xedit.c \
  112. xedit.h
  113. if NEED_REALPATH
  114. xedit_SOURCES += realpath.c
  115. endif
  116. if NEED_STRCASECMP
  117. xedit_SOURCES += strcasecmp.c
  118. endif
  119. # lisp/lsp
  120. lisp_lsp_DEPENDENCIES = liblisp.a libre.a libmp.a
  121. lisp_lsp_CFLAGS = $(CWARNFLAGS) -I$(top_srcdir)/lisp/re -I$(top_srcdir)/lisp/mp -DLISP -DLISPDIR=\"@LISPDIR@\" -D_BSD_SOURCE
  122. lisp_lsp_LDADD = -L. -llisp -lre -lmp -lm
  123. lisp_lsp_SOURCES = \
  124. hash.c \
  125. lisp/lsp.c
  126. if NEED_REALPATH
  127. lisp_lsp_SOURCES += realpath.c
  128. endif
  129. if NEED_STRCASECMP
  130. lisp_lsp_SOURCES += strcasecmp.c
  131. endif
  132. # re/tests
  133. lisp_re_tests_DEPENDENCIES = libre.a
  134. lisp_re_tests_CFLAGS = $(CWARNFLAGS) -I$(top_srcdir)/lisp/re -D_BSD_SOURCE
  135. lisp_re_tests_LDADD = -L. -lre
  136. lisp_re_tests_SOURCES = lisp/re/tests.c
  137. # App default files
  138. DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults
  139. appdefaultdir = @appdefaultdir@
  140. appdefault_DATA = \
  141. app-defaults/Xedit-color \
  142. app-defaults/Xedit
  143. lispdir = $(LISPDIR)
  144. dist_lisp_DATA = ${srcdir}/lisp/modules/lisp.lsp \
  145. ${srcdir}/lisp/modules/xedit.lsp \
  146. ${srcdir}/lisp/modules/syntax.lsp \
  147. ${srcdir}/lisp/modules/indent.lsp
  148. progmodesdir = $(LISPDIR)/progmodes
  149. dist_progmodes_DATA = \
  150. ${srcdir}/lisp/modules/progmodes/auto.lsp \
  151. ${srcdir}/lisp/modules/progmodes/c.lsp \
  152. ${srcdir}/lisp/modules/progmodes/html.lsp \
  153. ${srcdir}/lisp/modules/progmodes/imake.lsp \
  154. ${srcdir}/lisp/modules/progmodes/lisp.lsp \
  155. ${srcdir}/lisp/modules/progmodes/make.lsp \
  156. ${srcdir}/lisp/modules/progmodes/man.lsp \
  157. ${srcdir}/lisp/modules/progmodes/patch.lsp \
  158. ${srcdir}/lisp/modules/progmodes/perl.lsp \
  159. ${srcdir}/lisp/modules/progmodes/python.lsp \
  160. ${srcdir}/lisp/modules/progmodes/rpm.lsp \
  161. ${srcdir}/lisp/modules/progmodes/sgml.lsp \
  162. ${srcdir}/lisp/modules/progmodes/sh.lsp \
  163. ${srcdir}/lisp/modules/progmodes/xconf.lsp \
  164. ${srcdir}/lisp/modules/progmodes/xlog.lsp \
  165. ${srcdir}/lisp/modules/progmodes/xrdb.lsp
  166. EXTRA_DIST = \
  167. app-defaults/Xedit-color \
  168. app-defaults/Xedit \
  169. app-defaults/Xedit-sample \
  170. lisp/README \
  171. lisp/TODO \
  172. lisp/compile.c \
  173. lisp/mathimp.c \
  174. lisp/modules/psql.c \
  175. lisp/modules/x11.c \
  176. lisp/modules/xaw.c \
  177. lisp/modules/xt.c \
  178. lisp/re/README \
  179. lisp/re/tests.txt \
  180. lisp/test/hello.lsp \
  181. lisp/test/list.lsp \
  182. lisp/test/math.lsp \
  183. lisp/test/psql-1.lsp \
  184. lisp/test/psql-2.lsp \
  185. lisp/test/psql-3.lsp \
  186. lisp/test/regex.lsp \
  187. lisp/test/stream.lsp \
  188. lisp/test/widgets.lsp
  189. MAINTAINERCLEANFILES = ChangeLog INSTALL
  190. .PHONY: ChangeLog INSTALL
  191. INSTALL:
  192. $(INSTALL_CMD)
  193. ChangeLog:
  194. $(CHANGELOG_CMD)
  195. dist-hook: ChangeLog INSTALL