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.

112 lines
2.3 KiB

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