2 # libtool convenience library for libmpa
4 noinst_LTLIBRARIES += libmpa.la
6 libmpa_la_SOURCES = libs/libmpa/ptr_array.h libs/libmpa/ptr_array.c
7 libmpa_la_CPPFLAGS = -I$(top_srcdir)/libs/libmpa
9 EXTRA_DIST += libs/libmpa/LICENSE libs/libmpa/tester.c
12 # libtool convenience library for libtommath
14 noinst_LTLIBRARIES += libtommath.la
16 headers = libs/libtommath/tommath.h \
17 libs/libtommath/tommath_class.h \
18 libs/libtommath/tommath_superclass.h
20 libtommath_la_SOURCES = libs/libtommath/mpi.c $(headers)
22 libtommath_la_CFLAGS = $(TOMMATH_CFLAGS)
23 libtommath_la_CPPFLAGS = $(TOMMATH_CFLAGS) -I$(top_srcdir)/libs/libtommath
26 noinst_PROGRAMS += libs/libtommath/test
28 libs_libtommath_test_SOURCES = libs/libtommath/tests/test.c
29 libs_libtommath_test_CFLAGS = $(TOMMATH_CFLAGS)
30 libs_libtommath_test_CPPFLAGS = $(TOMMATH_CFLAGS) -I$(top_srcdir)/libs/libtommath
31 libs_libtommath_test_LDADD = libtommath.la
33 EXTRA_DIST += libs/libtommath/tests/timing.c
36 # libtool convenience library for optparse
39 noinst_LTLIBRARIES += liboptparse.la
41 liboptparse_la_SOURCES = libs/optparse/optparse.c libs/optparse/optparse.h
42 liboptparse_la_CPPFLAGS = -I$(top_srcdir)/libs/optparse
43 liboptparse_la_CFLAGS = $(WARN_CFLAGS)
45 EXTRA_DIST += $(top_srcdir)/libs/optparse/fudd.c \
46 $(top_srcdir)/libs/optparse/notpython.c \
47 $(top_srcdir)/libs/optparse/optparse.tex \
48 $(top_srcdir)/libs/optparse/Makefile.bak
51 # libtool convenience library for libgdtoa
53 noinst_LTLIBRARIES += libgdtoa.la
55 libgdtoa_la_SOURCES = \
56 libs/libgdtoa/dmisc.c \
57 libs/libgdtoa/dtoa.c \
58 libs/libgdtoa/g_Qfmt.c \
59 libs/libgdtoa/g__fmt.c \
60 libs/libgdtoa/g_ddfmt.c \
61 libs/libgdtoa/g_dfmt.c \
62 libs/libgdtoa/g_ffmt.c \
63 libs/libgdtoa/g_xLfmt.c \
64 libs/libgdtoa/g_xfmt.c \
65 libs/libgdtoa/gdtoa.c \
66 libs/libgdtoa/gethex.c \
67 libs/libgdtoa/gmisc.c \
68 libs/libgdtoa/hd_init.c \
69 libs/libgdtoa/hexnan.c \
70 libs/libgdtoa/misc.c \
71 libs/libgdtoa/smisc.c \
72 libs/libgdtoa/strtoIQ.c \
73 libs/libgdtoa/strtoId.c \
74 libs/libgdtoa/strtoIdd.c \
75 libs/libgdtoa/strtoIf.c \
76 libs/libgdtoa/strtoIg.c \
77 libs/libgdtoa/strtoIx.c \
78 libs/libgdtoa/strtoIxL.c \
79 libs/libgdtoa/strtod.c \
80 libs/libgdtoa/strtodI.c \
81 libs/libgdtoa/strtodg.c \
82 libs/libgdtoa/strtof.c \
83 libs/libgdtoa/strtopQ.c \
84 libs/libgdtoa/strtopd.c \
85 libs/libgdtoa/strtopdd.c \
86 libs/libgdtoa/strtopf.c \
87 libs/libgdtoa/strtopx.c \
88 libs/libgdtoa/strtopxL.c \
89 libs/libgdtoa/strtorQ.c \
90 libs/libgdtoa/strtord.c \
91 libs/libgdtoa/strtordd.c \
92 libs/libgdtoa/strtorf.c \
93 libs/libgdtoa/strtorx.c \
94 libs/libgdtoa/strtorxL.c \
97 libs/libgdtoa/gdtoa.h \
98 libs/libgdtoa/gdtoaimp.h
101 gd_builddir = $(top_builddir)/libs/libgdtoa
102 gd_srcdir = $(top_srcdir)/libs/libgdtoa
104 gd_arith_header = $(gd_builddir)/arith.h
105 gd_qnan_header = $(gd_builddir)/gd_qnan.h
107 BUILT_SOURCES += $(gd_arith_header) $(gd_qnan_header)
108 CLEANFILES += $(gd_arith_header) $(gd_qnan_header)
110 $(gd_arith_header): $(gd_srcdir)/arithchk.c
111 $(CC) $(GDTOA_CFLAGS) -I$(top_srcdir)/libs/libgdtoa $(gd_srcdir)/arithchk.c -o $(gd_builddir)/genhdr \
112 || $(CC) -I$(top_srcdir)/libs/libgdtoa -DNO_LONG_LONG $(GDTOA_CFLAGS) $(gd_srcdir)/arithchk.c -o $(top_builddir)/genhdr
113 $(gd_builddir)/genhdr > $(gd_arith_header)
114 rm -f $(gd_builddir)/genhdr $(gd_builddir)/arithchk.o
116 $(gd_qnan_header): $(gd_arith_header) $(gd_srcdir)/qnan.c
117 $(CC) $(GDTOA_CFLAGS) -I$(top_srcdir)/libs/libgdtoa -I$(top_builddir)/libs/libgdtoa $(gd_srcdir)/qnan.c \
118 -o $(gd_builddir)/genhdr
119 $(gd_builddir)/genhdr > $(gd_qnan_header)
120 rm -f $(gd_builddir)/genhdr $(gd_builddir)/qnan.o
122 libgdtoa_la_CFLAGS = $(GDTOA_CFLAGS)
123 libgdtoa_la_CPPFLAGS = -I$(top_srcdir)/libs/libgdtoa -I$(top_builddir)/libs/libgdtoa
125 EXTRA_DIST += libs/libgdtoa/test libs/libgdtoa/arithchk.c libs/libgdtoa/qnan.c