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.

114 lines
2.4 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
  1. # Makefile for cln/benchmarks
  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${top_srcdir}/src -I${srcdir}
  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},timebench1 timebench2a timebench2ap timebench2b)
  39. MODULES_timebench1 = timebench1
  40. MODULES_timebench2a = timebench2a
  41. MODULES_timebench2ap = timebench2ap
  42. MODULES_timebench2b = timebench2b
  43. all : $(addsuffix ${EXEEXT}, timebench2a timebench2ap timebench2b)
  44. %.s : %.c
  45. ${CC} ${CFLAGS} ${CPPFLAGS} ${TARGET_ARCH} -S $< -o $@
  46. %.s : %.cc
  47. ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${TARGET_ARCH} -S $< -o $@
  48. ifdef notyet
  49. %.o : %.c
  50. ${CC} ${CFLAGS} ${CPPFLAGS} ${TARGET_ARCH} -c $< -o $@
  51. %.o : %.cc
  52. ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${TARGET_ARCH} -c $< -o $@
  53. else
  54. ${FILES_O} : %.o : %.s
  55. ${CC} ${CFLAGS} ${CPPFLAGS} ${TARGET_ARCH} -c $< -o $@
  56. endif
  57. %.i : %.c
  58. ${CPP} ${CFLAGS} ${CPPFLAGS} ${TARGET_ARCH} $< > $@
  59. %.i.cc : %.cc
  60. ${CXXCPP} ${CXXFLAGS} ${CPPFLAGS} ${TARGET_ARCH} $< > $@
  61. timebench1${EXEEXT} : $(patsubst %,%.o,${MODULES_timebench1})
  62. timebench2a${EXEEXT} : $(patsubst %,%.o,${MODULES_timebench2a})
  63. timebench2ap${EXEEXT} : $(patsubst %,%.o,${MODULES_timebench2ap})
  64. timebench2b${EXEEXT} : $(patsubst %,%.o,${MODULES_timebench2b})
  65. ${PROGRAMS} : %${EXEEXT} : ${LIBDEPS}
  66. ${LIBTOOL_LINK} ${CXX} ${CXXFLAGS} ${TARGET_ARCH} $(patsubst %,%.o,$(MODULES_$(*F))) ${LDFLAGS} ${LIBS} -o $@
  67. install : all
  68. installdirs :
  69. uninstall :
  70. check : all
  71. mostlyclean : clean
  72. clean : force
  73. ${RM} *.s *.o *.a ${PROGRAMS} a.out core
  74. ${RM} -r .libs _libs
  75. distclean : clean
  76. ${RM} config.status config.log config.cache Makefile
  77. maintainer-clean : distclean
  78. force :