Merge remote-tracking branch 'origin/master' into for-steve
[sxemacs] / src / ent / Makefile.am
1 ## SXEmacs - Ent Makefile.am
2
3 ## Copyright (C) 2010 Steve Youngs
4
5 ## This file is part of SXEmacs.
6
7 ## SXEmacs is free software: you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation, either version 3 of the License, or
10 ## (at your option) any later version.
11
12 ## SXEmacs is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ## GNU General Public License for more details.
16
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20 ## Process this file with automake to produce Makefile.in
21
22 # Help the Developers and yourself. Just use the C locale and settings
23 # for the compilation. They can still be overriden by make LANG=<whatever>
24 # but that is general a not very good idea
25 LANG=C
26 LC_ALL=C
27
28 builddir = @builddir@
29 srcdir = @srcdir@
30 top_builddir = @top_builddir@
31 top_build_prefix = $(top_builddir)/
32 top_srcdir = @top_srcdir@
33 abs_builddir = @abs_builddir@
34 abs_top_builddir = @abs_top_builddir@
35 abs_top_srcdir = @abs_top_srcdir@
36
37 AM_CFLAGS = -Demacs $(OPENSSL_CFLAGS) -DUSE_SXEMACS_CONFIG_H -DXTSTRINGDEFINES
38 AM_CPPFLAGS = -I$(srcdir) -I$(builddir) -I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_builddir) $(c_switch_general) $(LTDLINCL)
39
40 headerdir = $(includedir)/$(instvarsepdir)
41 archlibdir = ${libdir}/${instvardir}/${configuration}
42
43
44 ETAGS = $(top_builddir)/lib-src/etags
45 TAGS_DEPENDENCIES = $(ETAGS)
46
47 all_sources=
48
49 libent_a_headers = \
50         ent.h ent-int.h ent-float.h ent-indef.h ent-inf.h \
51         ent-ecm.h ent-gaussian.h ent-gmp.h ent-mpc.h \
52         ent-mpfr.h ent-pseumpc.h ent-quatern.h \
53         ent-strflt.h \
54         ent-nullary-op.h ent-unary-op.h ent-binary-op.h \
55         ent-unary-rel.h ent-binary-rel.h ent-lift.h \
56         ent-optable.h
57 libent_a_sources = \
58         ent.c ent-int.c ent-float.c ent-indef.c floatfns.c \
59         ent-nullary-op.c ent-unary-op.c ent-binary-op.c \
60         ent-unary-rel.c ent-binary-rel.c ent-lift.c
61 libent_a_SOURCES = $(libent_a_headers) $(libent_a_sources)
62 EXTRA_libent_a_SOURCES = \
63         ent-ecm.c  ent-gaussian.c \
64         ent-gmp.c ent-mpc.c ent-mpfr.c ent-pseumpc.c \
65         ent-quatern.c
66 libent_a_CPPFLAGS = $(AM_CPPFLAGS) $(ENT_CPPFLAGS)
67 libent_a_LIBADD = $(libent_objs)
68 libent_a_DEPENDENCIES = $(libent_a_LIBADD)
69 libent_a_ldflags = $(ENT_LIBS)
70 all_sources += $(libent_a_sources) $(libent_objs:.o=.c)
71
72 header_HEADERS = $(acgen_headers) $(libent_a_headers)
73
74
75 noinst_LIBRARIES=libent.a
76
77 #
78 # Help the SXEmacs developers get nice post-processed source files
79
80 ## Create preprocessor output (debugging purposes only)
81 .c.i:
82         $(COMPILE) -E -o $@ $<
83
84 ## Create assembler output (debugging purposes only)
85 .c.s:
86         $(COMPILE) -S -c $(cflags) $<