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.

113 lines
2.3 KiB

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. #### End of system configuration section. ####
  25. SHELL = /bin/sh
  26. # Needed by $(LIBTOOL).
  27. top_builddir = ..
  28. VPATH = $(srcdir)
  29. FILES_CC := $(notdir $(wildcard $(srcdir)/*.cc))
  30. FILES_CC := $(filter-out %.i.cc, $(FILES_CC))
  31. FILES_I_CC := $(patsubst %.cc,%.i.cc,$(FILES_CC))
  32. FILES_S := $(patsubst %.cc,%.s,$(FILES_CC))
  33. FILES_O := $(patsubst %.cc,%.o,$(FILES_CC))
  34. OBJECTS = $(FILES_O)
  35. LIBS = ../src/libcln.la -lm
  36. LIBDEPS = ../src/libcln.la
  37. PROGRAMS = timebench1 timebench2a timebench2ap timebench2b
  38. MODULES_timebench1 = timebench1
  39. MODULES_timebench2a = timebench2a
  40. MODULES_timebench2ap = timebench2ap
  41. MODULES_timebench2b = timebench2b
  42. all : timebench2a timebench2ap timebench2b
  43. %.s : %.c
  44. $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -S $< -o $@
  45. %.s : %.cc
  46. $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -S $< -o $@
  47. ifdef notyet
  48. %.o : %.c
  49. $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
  50. %.o : %.cc
  51. $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
  52. else
  53. $(FILES_O) : %.o : %.s
  54. $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
  55. endif
  56. %.i : %.c
  57. $(CPP) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) $< > $@
  58. %.i.cc : %.cc
  59. $(CXXCPP) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) $< > $@
  60. timebench1 : $(patsubst %,%.o,$(MODULES_timebench1))
  61. timebench2a : $(patsubst %,%.o,$(MODULES_timebench2a))
  62. timebench2ap : $(patsubst %,%.o,$(MODULES_timebench2ap))
  63. timebench2b : $(patsubst %,%.o,$(MODULES_timebench2b))
  64. $(PROGRAMS) : % : $(LIBDEPS)
  65. $(LIBTOOL_LINK) $(CXX) $(CXXFLAGS) $(TARGET_ARCH) $(patsubst %,%.o,$(MODULES_$(*F))) $(LDFLAGS) $(LIBS) -o $@
  66. install : all
  67. installdirs :
  68. uninstall :
  69. check : all
  70. mostlyclean : clean
  71. clean : force
  72. $(RM) *.s *.o *.a $(PROGRAMS) a.out core
  73. $(RM) -r .libs _libs
  74. distclean : clean
  75. $(RM) config.status config.log config.cache Makefile
  76. maintainer-clean : distclean
  77. force :