Makefile.am revision 31de2854
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
22SUBDIRS = man
23bin_PROGRAMS = xedit
24noinst_LIBRARIES = liblisp.a libre.a libmp.a
25noinst_PROGRAMS = lisp/lsp lisp/re/tests
26
27#
28#    libmp.a
29#
30
31libmp_a_CFLAGS = $(CWARNFLAGS)
32libmp_a_SOURCES = \
33	lisp/mp/mp.c	\
34	lisp/mp/mp.h	\
35	lisp/mp/mpi.c	\
36	lisp/mp/mpr.c
37
38#
39#    liblisp.a
40#
41
42liblisp_a_CFLAGS = $(CWARNFLAGS) -I$(top_srcdir)/lisp/re -I$(top_srcdir)/lisp/mp -DLISP -DLISPDIR=\"$(LISPDIR)\" $(PKGDEPS_CFLAGS)
43liblisp_a_SOURCES = \
44	lisp/bytecode.c \
45	lisp/bytecode.h \
46	lisp/core.c \
47	lisp/core.h \
48	lisp/debugger.c \
49	lisp/debugger.h \
50	lisp/format.c \
51	lisp/format.h \
52	lisp/hash.c \
53	lisp/hash.h \
54	lisp/helper.c \
55	lisp/helper.h \
56	lisp/internal.h \
57	lisp/io.c \
58	lisp/io.h \
59	lisp/lisp.c \
60	lisp/lisp.h \
61	lisp/math.c \
62	lisp/math.h \
63	lisp/package.c \
64	lisp/package.h \
65	lisp/pathname.c \
66	lisp/pathname.h \
67	lisp/private.h \
68	lisp/read.c \
69	lisp/read.h \
70	lisp/regex.c \
71	lisp/regex.h \
72	lisp/require.c \
73	lisp/require.h \
74	lisp/stream.c \
75	lisp/stream.h \
76	lisp/string.c \
77	lisp/string.h \
78	lisp/struct.c \
79	lisp/struct.h \
80	lisp/time.c \
81	lisp/time.h \
82	lisp/write.c \
83	lisp/write.h \
84	lisp/xedit.c \
85	lisp/xedit.h
86
87if NEED_UNSETENV
88liblisp_a_SOURCES += lisp/getenv.c
89liblisp_a_SOURCES += lisp/setenv.c
90endif
91
92#
93#     libre.a
94#
95
96libre_a_CFLAGS = $(CWARNFLAGS)
97libre_a_SOURCES = \
98	lisp/re/re.c \
99	lisp/re/rec.c \
100	lisp/re/re.h \
101	lisp/re/reo.c \
102	lisp/re/rep.h
103
104#
105#     xedit
106#   
107xedit_DEPENDENCIES = liblisp.a libmp.a libre.a
108xedit_CFLAGS = $(CWARNFLAGS) $(PKGDEPS_CFLAGS) -I$(top_srcdir)/lisp/re -D_BSD_SOURCE -DXEDIT
109xedit_LDADD = -L. -lre -llisp -lmp $(PKGDEPS_LIBS) -lm
110
111xedit_SOURCES =	\
112        commands.c \
113	hash.c \
114        hook.c \
115        ispell.c \
116        lisp.c \
117        options.c \
118	tags.c \
119        util.c \
120	util.h \
121        xedit.c \
122	xedit.h
123
124if NEED_REALPATH
125xedit_SOURCES += realpath.c
126endif
127
128if NEED_STRCASECMP
129xedit_SOURCES += strcasecmp.c
130endif
131
132# lisp/lsp
133lisp_lsp_DEPENDENCIES = liblisp.a libre.a libmp.a
134lisp_lsp_CFLAGS = $(CWARNFLAGS) -I$(top_srcdir)/lisp/re -I$(top_srcdir)/lisp/mp -DLISP -DLISPDIR=\"@LISPDIR@\" -D_BSD_SOURCE
135lisp_lsp_LDADD = -L. -llisp -lre -lmp -lm
136lisp_lsp_SOURCES = \
137	hash.c \
138	lisp/lsp.c
139
140if NEED_REALPATH
141lisp_lsp_SOURCES += realpath.c
142endif
143
144if NEED_STRCASECMP
145lisp_lsp_SOURCES += strcasecmp.c
146endif
147
148# re/tests
149lisp_re_tests_DEPENDENCIES = libre.a
150lisp_re_tests_CFLAGS = $(CWARNFLAGS) -I$(top_srcdir)/lisp/re -D_BSD_SOURCE
151lisp_re_tests_LDADD = -L. -lre
152lisp_re_tests_SOURCES = lisp/re/tests.c
153
154
155# App default files
156
157DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults
158
159appdefaultdir = @appdefaultdir@
160appdefault_DATA = \
161        app-defaults/Xedit-color \
162	app-defaults/Xedit
163
164lispdir = $(LISPDIR)
165dist_lisp_DATA = ${srcdir}/lisp/modules/lisp.lsp \
166	${srcdir}/lisp/modules/xedit.lsp \
167	${srcdir}/lisp/modules/syntax.lsp \
168	${srcdir}/lisp/modules/indent.lsp
169
170progmodesdir = $(LISPDIR)/progmodes
171dist_progmodes_DATA = \
172	${srcdir}/lisp/modules/progmodes/auto.lsp \
173	${srcdir}/lisp/modules/progmodes/c.lsp \
174	${srcdir}/lisp/modules/progmodes/html.lsp \
175	${srcdir}/lisp/modules/progmodes/imake.lsp \
176	${srcdir}/lisp/modules/progmodes/lisp.lsp \
177	${srcdir}/lisp/modules/progmodes/make.lsp \
178	${srcdir}/lisp/modules/progmodes/man.lsp \
179	${srcdir}/lisp/modules/progmodes/patch.lsp \
180	${srcdir}/lisp/modules/progmodes/perl.lsp \
181	${srcdir}/lisp/modules/progmodes/python.lsp \
182	${srcdir}/lisp/modules/progmodes/rpm.lsp \
183	${srcdir}/lisp/modules/progmodes/sgml.lsp \
184	${srcdir}/lisp/modules/progmodes/sh.lsp \
185	${srcdir}/lisp/modules/progmodes/xconf.lsp \
186	${srcdir}/lisp/modules/progmodes/xlog.lsp \
187	${srcdir}/lisp/modules/progmodes/xrdb.lsp
188
189
190EXTRA_DIST = \
191	app-defaults/Xedit-color \
192	app-defaults/Xedit \
193	app-defaults/Xedit-sample \
194	lisp/README \
195	lisp/TODO \
196	lisp/compile.c \
197	lisp/mathimp.c \
198	lisp/modules/psql.c \
199	lisp/modules/x11.c \
200	lisp/modules/xaw.c \
201	lisp/modules/xt.c \
202	lisp/re/README \
203	lisp/re/tests.txt \
204	lisp/test/hello.lsp \
205	lisp/test/list.lsp \
206	lisp/test/math.lsp \
207	lisp/test/psql-1.lsp \
208	lisp/test/psql-2.lsp \
209	lisp/test/psql-3.lsp \
210	lisp/test/regex.lsp \
211	lisp/test/stream.lsp \
212	lisp/test/widgets.lsp
213
214MAINTAINERCLEANFILES = ChangeLog INSTALL
215
216.PHONY: ChangeLog INSTALL
217
218INSTALL:
219	$(INSTALL_CMD)
220
221ChangeLog:
222	$(CHANGELOG_CMD)
223
224dist-hook: ChangeLog INSTALL
225