]> www.ginac.de Git - cln.git/blob - tests/Makefile.in
* src/base/cl_low.h: Added several checks if NO_ASM is defined, so
[cln.git] / tests / Makefile.in
1 # Makefile for cln/tests
2
3 #### Start of system configuration section. ####
4
5 # Directories used by "make":
6 srcdir = @srcdir@
7 top_srcdir = @top_srcdir@
8
9 # Programs used by "make":
10 # C compiler
11 CC = @CC@
12 CFLAGS = @CFLAGS@
13 CPP = @CPP@
14 # C++ compiler
15 CXX = @CXX@
16 CXXFLAGS = @CXXFLAGS@
17 CXXCPP = @CXXCPP@
18 INCLUDES = -I../include -I$(top_srcdir)/include -I$(srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/base -I$(top_srcdir)/src/float -I$(top_srcdir)/src/float/lfloat -I$(top_srcdir)/src/integer -I$(top_srcdir)/src/base/random -I$(top_srcdir)/src/base/digitseq -I$(top_srcdir)/src/base/digit -I../src/base -I$(top_srcdir)/src/base
19 override CPPFLAGS += $(INCLUDES)
20 LIBTOOL = @LIBTOOL@
21 LIBTOOL_LINK = $(LIBTOOL) --mode=link
22 MV = mv
23 LN = ln
24 RM = rm -f
25 @SET_MAKE@
26
27 #### End of system configuration section. ####
28
29 SHELL = /bin/sh
30
31 # Needed by $(LIBTOOL).
32 top_builddir = ..
33
34 VPATH = $(srcdir)
35
36 FILES_CC := $(notdir $(wildcard $(srcdir)/*.cc))
37 FILES_CC := $(filter-out %.i.cc, $(FILES_CC))
38
39 FILES_I_CC := $(patsubst %.cc,%.i.cc,$(FILES_CC))
40
41 FILES_S := $(patsubst %.cc,%.s,$(FILES_CC))
42
43 FILES_O := $(patsubst %.cc,%.o,$(FILES_CC))
44
45 OBJECTS = $(FILES_O)
46
47 LIBS = ../src/libcln.la -lm
48 LIBDEPS = ../src/libcln.la
49
50 PROGRAMS = exam tests timemul timesquare timediv timesqrt timegcd timefact timeprint timeLFsqrt timeRAtoLF timeLFRAmul timeRALFdiv timepi timeexp1 timeeuler timecatalan timezeta3 timeLFln timeLFexp timeLFsin timeLFcos timeLFsinh timeLFcosh timeLFatan timeLFatanh timerecip2adic timediv2adic timeMIpow2recip timeMIpow2div timeMImisc5 timeUPMImul timesqrtmodp main
51 MODULES_exam = exam exam_I exam_RA exam_SF exam_FF exam_DF exam_LF exam_I_gcd exam_I_sqrtp
52 MODULES_tests = tests \
53                 test_I \
54                 test_I_abs test_I_compare test_I_plus test_I_minus test_I_plus1 test_I_minus1 test_I_mul test_I_div \
55                 test_I_gcd test_I_xgcd \
56                 test_I_ash test_I_evenp test_I_oddp test_I_lognot test_I_logand test_I_logandc1 test_I_logandc2 test_I_logior test_I_logorc1 test_I_logorc2 test_I_logxor test_I_lognand test_I_lognor test_I_logeqv test_I_boole test_I_logbitp test_I_logtest test_I_ldb test_I_ldbtest test_I_mkf test_I_dpb test_I_dpf test_I_logcount test_I_ilength test_I_ord2 test_I_power2p \
57                 test_I_isqrt test_I_sqrtp \
58                 test_I_GV \
59                 test_MI \
60                 test_MI_canonhom test_MI_plus test_MI_minus test_MI_mul test_MI_recip test_MI_div test_MI_expt \
61                 test_nt \
62                 test_nt_jacobi
63 MODULES_timemul = timemul
64 MODULES_timesquare = timesquare
65 MODULES_timediv = timediv
66 MODULES_timesqrt = timesqrt
67 MODULES_timegcd = timegcd
68 MODULES_timefact = timefact
69 MODULES_timeprint = timeprint
70 MODULES_timeLFsqrt = timeLFsqrt
71 MODULES_timeRAtoLF = timeRAtoLF
72 MODULES_timeLFRAmul = timeLFRAmul
73 MODULES_timeRALFdiv = timeRALFdiv
74 MODULES_timepi = timepi
75 MODULES_timeexp1 = timeexp1
76 MODULES_timeeuler = timeeuler
77 MODULES_timecatalan = timecatalan
78 MODULES_timezeta3 = timezeta3
79 MODULES_timeLFln = timeLFln
80 MODULES_timeLFexp = timeLFexp
81 MODULES_timeLFsin = timeLFsin
82 MODULES_timeLFcos = timeLFcos
83 MODULES_timeLFsinh = timeLFsinh
84 MODULES_timeLFcosh = timeLFcosh
85 MODULES_timeLFatan = timeLFatan
86 MODULES_timeLFatanh = timeLFatanh
87 MODULES_timerecip2adic = timerecip2adic
88 MODULES_timediv2adic = timediv2adic
89 MODULES_timeMIpow2recip = timeMIpow2recip
90 MODULES_timeMIpow2div = timeMIpow2div
91 MODULES_timeMImisc5 = timeMImisc5
92 MODULES_timeUPMImul = timeUPMImul
93 MODULES_timesqrtmodp = timesqrtmodp
94 MODULES_main = main
95
96 all : exam tests
97
98 %.s : %.c
99         $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -S $< -o $@
100
101 %.s : %.cc
102         $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -S $< -o $@
103
104 ifdef notyet
105
106 %.o : %.c
107         $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
108
109 %.o : %.cc
110         $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
111
112 else
113
114 $(FILES_O) : %.o : %.s
115         $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
116
117 endif
118
119 %.i : %.c
120         $(CPP) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) $< > $@
121
122 %.i.cc : %.cc
123         $(CXXCPP) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) $< > $@
124
125 ../src/libcln.a :
126         cd ../src ; $(MAKE) libcln.a
127
128 exam : $(patsubst %,%.o,$(MODULES_exam))
129 tests : $(patsubst %,%.o,$(MODULES_tests))
130 timemul : $(patsubst %,%.o,$(MODULES_timemul))
131 timesquare : $(patsubst %,%.o,$(MODULES_timesquare))
132 timediv : $(patsubst %,%.o,$(MODULES_timediv))
133 timesqrt : $(patsubst %,%.o,$(MODULES_timesqrt))
134 timegcd : $(patsubst %,%.o,$(MODULES_timegcd))
135 timefact : $(patsubst %,%.o,$(MODULES_timefact))
136 timeprint : $(patsubst %,%.o,$(MODULES_timeprint))
137 timeLFsqrt : $(patsubst %,%.o,$(MODULES_timeLFsqrt))
138 timeRAtoLF : $(patsubst %,%.o,$(MODULES_timeRAtoLF))
139 timeLFRAmul : $(patsubst %,%.o,$(MODULES_timeLFRAmul))
140 timeRALFdiv : $(patsubst %,%.o,$(MODULES_timeRALFdiv))
141 timepi : $(patsubst %,%.o,$(MODULES_timepi))
142 timeexp1 : $(patsubst %,%.o,$(MODULES_timeexp1))
143 timeeuler : $(patsubst %,%.o,$(MODULES_timeeuler))
144 timecatalan : $(patsubst %,%.o,$(MODULES_timecatalan))
145 timezeta3 : $(patsubst %,%.o,$(MODULES_timezeta3))
146 timeLFln : $(patsubst %,%.o,$(MODULES_timeLFln))
147 timeLFexp : $(patsubst %,%.o,$(MODULES_timeLFexp))
148 timeLFsin : $(patsubst %,%.o,$(MODULES_timeLFsin))
149 timeLFcos : $(patsubst %,%.o,$(MODULES_timeLFcos))
150 timeLFsinh : $(patsubst %,%.o,$(MODULES_timeLFsinh))
151 timeLFcosh : $(patsubst %,%.o,$(MODULES_timeLFcosh))
152 timeLFatan : $(patsubst %,%.o,$(MODULES_timeLFatan))
153 timeLFatanh : $(patsubst %,%.o,$(MODULES_timeLFatanh))
154 timerecip2adic : $(patsubst %,%.o,$(MODULES_timerecip2adic))
155 timediv2adic : $(patsubst %,%.o,$(MODULES_timediv2adic))
156 timeMIpow2recip : $(patsubst %,%.o,$(MODULES_timeMIpow2recip))
157 timeMIpow2div : $(patsubst %,%.o,$(MODULES_timeMIpow2div))
158 timeMImisc5 : $(patsubst %,%.o,$(MODULES_timeMImisc5))
159 timeUPMImul : $(patsubst %,%.o,$(MODULES_timeUPMImul))
160 timesqrtmodp : $(patsubst %,%.o,$(MODULES_timesqrtmodp))
161 main : $(patsubst %,%.o,$(MODULES_main))
162 $(PROGRAMS) : % : $(LIBDEPS)
163         $(LIBTOOL_LINK) $(CXX) $(CXXFLAGS) $(TARGET_ARCH) $(patsubst %,%.o,$(MODULES_$(*F))) $(LDFLAGS) $(LIBS) -o $@
164
165
166 install : all
167
168 installdirs :
169
170 uninstall :
171
172 check : all
173         ./exam
174         ./tests
175
176 mostlyclean : clean
177
178 clean : force
179         $(RM) *.s *.o *.a exam tests main a.out core
180         $(RM) -r .libs _libs
181
182 distclean : clean
183         $(RM) config.status config.log config.cache Makefile
184
185 maintainer-clean : distclean
186
187 force :