You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

189 lines
6.6 KiB

25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
  1. # Makefile for cln/tests
  2. #### Start of system configuration section. ####
  3. # Directories used by "make":
  4. srcdir = @srcdir@
  5. top_srcdir = @top_srcdir@
  6. # Programs used by "make":
  7. # C compiler
  8. CC = @CC@
  9. CFLAGS = @CFLAGS@
  10. CPP = @CPP@
  11. CPPFLAGS = @CPPFLAGS@
  12. # C++ compiler
  13. CXX = @CXX@
  14. CXXFLAGS = @CXXFLAGS@
  15. CXXCPP = @CXXCPP@
  16. 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
  17. override CPPFLAGS += ${INCLUDES}
  18. LIBTOOL = @LIBTOOL@
  19. LIBTOOL_LINK = ${LIBTOOL} --mode=link
  20. MV = mv
  21. LN = ln
  22. RM = rm -f
  23. @SET_MAKE@
  24. EXEEXT = @EXEEXT@
  25. #### End of system configuration section. ####
  26. SHELL = /bin/sh
  27. # Needed by ${LIBTOOL}.
  28. top_builddir = ..
  29. VPATH = {(srcdir}
  30. FILES_CC := $(notdir $(wildcard ${srcdir}/*.cc))
  31. FILES_CC := $(filter-out %.i.cc, ${FILES_CC})
  32. FILES_I_CC := $(patsubst %.cc,%.i.cc,${FILES_CC})
  33. FILES_S := $(patsubst %.cc,%.s,${FILES_CC})
  34. FILES_O := $(patsubst %.cc,%.o,${FILES_CC})
  35. OBJECTS = ${FILES_O}
  36. LIBS = ../src/libcln.la -lm
  37. LIBDEPS = ../src/libcln.la
  38. PROGRAMS = $(addsuffix ${EXEEXT},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)
  39. MODULES_exam = exam exam_I exam_RA exam_SF exam_FF exam_DF exam_LF exam_I_gcd exam_I_sqrtp
  40. MODULES_tests = tests \
  41. test_I \
  42. test_I_abs test_I_compare test_I_plus test_I_minus test_I_plus1 test_I_minus1 test_I_mul test_I_div \
  43. test_I_gcd test_I_xgcd \
  44. 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 \
  45. test_I_isqrt test_I_sqrtp \
  46. test_I_io test_I_GV \
  47. test_MI \
  48. test_MI_canonhom test_MI_plus test_MI_minus test_MI_mul test_MI_recip test_MI_div test_MI_expt \
  49. test_nt \
  50. test_nt_jacobi
  51. MODULES_timemul = timemul
  52. MODULES_timesquare = timesquare
  53. MODULES_timediv = timediv
  54. MODULES_timesqrt = timesqrt
  55. MODULES_timegcd = timegcd
  56. MODULES_timefact = timefact
  57. MODULES_timeprint = timeprint
  58. MODULES_timeLFsqrt = timeLFsqrt
  59. MODULES_timeRAtoLF = timeRAtoLF
  60. MODULES_timeLFRAmul = timeLFRAmul
  61. MODULES_timeRALFdiv = timeRALFdiv
  62. MODULES_timepi = timepi
  63. MODULES_timeexp1 = timeexp1
  64. MODULES_timeeuler = timeeuler
  65. MODULES_timecatalan = timecatalan
  66. MODULES_timezeta3 = timezeta3
  67. MODULES_timeLFln = timeLFln
  68. MODULES_timeLFexp = timeLFexp
  69. MODULES_timeLFsin = timeLFsin
  70. MODULES_timeLFcos = timeLFcos
  71. MODULES_timeLFsinh = timeLFsinh
  72. MODULES_timeLFcosh = timeLFcosh
  73. MODULES_timeLFatan = timeLFatan
  74. MODULES_timeLFatanh = timeLFatanh
  75. MODULES_timerecip2adic = timerecip2adic
  76. MODULES_timediv2adic = timediv2adic
  77. MODULES_timeMIpow2recip = timeMIpow2recip
  78. MODULES_timeMIpow2div = timeMIpow2div
  79. MODULES_timeMImisc5 = timeMImisc5
  80. MODULES_timeUPMImul = timeUPMImul
  81. MODULES_timesqrtmodp = timesqrtmodp
  82. MODULES_main = main
  83. all : exam${EXEEXT} tests${EXEEXT}
  84. %.s : %.c
  85. ${CC} ${CFLAGS} ${CPPFLAGS} ${TARGET_ARCH} -S $< -o $@
  86. %.s : %.cc
  87. ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${TARGET_ARCH} -S $< -o $@
  88. ifdef notyet
  89. %.o : %.c
  90. ${CC} ${CFLAGS} ${CPPFLAGS} ${TARGET_ARCH} -c $< -o $@
  91. %.o : %.cc
  92. ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${TARGET_ARCH} -c $< -o $@
  93. else
  94. ${FILES_O} : %.o : %.s
  95. ${CC} ${CFLAGS} ${CPPFLAGS} ${TARGET_ARCH} -c $< -o $@
  96. endif
  97. %.i : %.c
  98. ${CPP} ${CFLAGS} ${CPPFLAGS} ${TARGET_ARCH} $< > $@
  99. %.i.cc : %.cc
  100. ${CXXCPP} ${CXXFLAGS} ${CPPFLAGS} ${TARGET_ARCH} $< > $@
  101. ../src/libcln.a :
  102. cd ../src ; ${MAKE} libcln.a
  103. exam${EXEEXT} : $(patsubst %,%.o,$(MODULES_exam))
  104. tests${EXEEXT} : $(patsubst %,%.o,$(MODULES_tests))
  105. timemul${EXEEXT} : $(patsubst %,%.o,$(MODULES_timemul))
  106. timesquare${EXEEXT} : $(patsubst %,%.o,$(MODULES_timesquare))
  107. timediv${EXEEXT} : $(patsubst %,%.o,$(MODULES_timediv))
  108. timesqrt${EXEEXT} : $(patsubst %,%.o,$(MODULES_timesqrt))
  109. timegcd${EXEEXT} : $(patsubst %,%.o,$(MODULES_timegcd))
  110. timefact${EXEEXT} : $(patsubst %,%.o,$(MODULES_timefact))
  111. timeprint${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeprint))
  112. timeLFsqrt${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeLFsqrt))
  113. timeRAtoLF${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeRAtoLF))
  114. timeLFRAmul${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeLFRAmul))
  115. timeRALFdiv${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeRALFdiv))
  116. timepi${EXEEXT} : $(patsubst %,%.o,$(MODULES_timepi))
  117. timeexp1${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeexp1))
  118. timeeuler${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeeuler))
  119. timecatalan${EXEEXT} : $(patsubst %,%.o,$(MODULES_timecatalan))
  120. timezeta3${EXEEXT} : $(patsubst %,%.o,$(MODULES_timezeta3))
  121. timeLFln${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeLFln))
  122. timeLFexp${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeLFexp))
  123. timeLFsin${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeLFsin))
  124. timeLFcos${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeLFcos))
  125. timeLFsinh${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeLFsinh))
  126. timeLFcosh${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeLFcosh))
  127. timeLFatan${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeLFatan))
  128. timeLFatanh${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeLFatanh))
  129. timerecip2adic${EXEEXT} : $(patsubst %,%.o,$(MODULES_timerecip2adic))
  130. timediv2adic${EXEEXT} : $(patsubst %,%.o,$(MODULES_timediv2adic))
  131. timeMIpow2recip${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeMIpow2recip))
  132. timeMIpow2div${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeMIpow2div))
  133. timeMImisc5${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeMImisc5))
  134. timeUPMImul${EXEEXT} : $(patsubst %,%.o,$(MODULES_timeUPMImul))
  135. timesqrtmodp${EXEEXT} : $(patsubst %,%.o,$(MODULES_timesqrtmodp))
  136. main${EXEEXT} : $(patsubst %,%.o,$(MODULES_main))
  137. ${PROGRAMS} : %${EXEEXT} : ${LIBDEPS}
  138. ${LIBTOOL_LINK} ${CXX} ${CXXFLAGS} ${TARGET_ARCH} $(patsubst %,%.o,$(MODULES_$(*F))) ${LDFLAGS} ${LIBS} -o $@
  139. install : all
  140. installdirs :
  141. uninstall :
  142. check : all
  143. ./exam${EXEEXT}
  144. ./tests${EXEEXT}
  145. mostlyclean : clean
  146. clean : force
  147. ${RM} *.s *.o *.a exam tests${EXEEXT} main a.out core
  148. ${RM} -r .libs _libs
  149. distclean : clean
  150. ${RM} config.status config.log config.cache Makefile
  151. maintainer-clean : distclean
  152. force :