/[cln]/benchmarks/Makefile.in
ViewVC logotype

Contents of /benchmarks/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations)
Wed Apr 25 15:00:37 2001 UTC (12 years, 1 month ago) by kreckel
Branch: MAIN
CVS Tags: cln_1-1-1, cln_1-1-3, cln_1-1-2, cln_1-1-5, cln_1-1-4, cln_1-1-7, cln_1-1-6, cln_1-1-8, cln_1-1-9
Changes since 1.4: +1 -1 lines
        * src/base/cl_low.h: Added several checks if NO_ASM is defined, so
          this definition becomes actually useful.  This is needed for
          compilation on Arm until somebody fixes the assembler files for Arm.
        * src/base/digitseq/cl_asm.h: Likewise.
        * src/base/digitseq/cl_asm_.cc: Likewise.
        * */Makefile.in: Added `override' in front of `CPPFLAGS +=' so
           one can say `make CPPFLAGS=-DFOOBAR'.

1 # Makefile for cln/benchmarks
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$(top_srcdir)/src -I$(srcdir)
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 = timebench1 timebench2a timebench2ap timebench2b
51 MODULES_timebench1 = timebench1
52 MODULES_timebench2a = timebench2a
53 MODULES_timebench2ap = timebench2ap
54 MODULES_timebench2b = timebench2b
55
56 all : timebench2a timebench2ap timebench2b
57
58 %.s : %.c
59 $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -S $< -o $@
60
61 %.s : %.cc
62 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -S $< -o $@
63
64 ifdef notyet
65
66 %.o : %.c
67 $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
68
69 %.o : %.cc
70 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
71
72 else
73
74 $(FILES_O) : %.o : %.s
75 $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
76
77 endif
78
79 %.i : %.c
80 $(CPP) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) $< > $@
81
82 %.i.cc : %.cc
83 $(CXXCPP) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) $< > $@
84
85 timebench1 : $(patsubst %,%.o,$(MODULES_timebench1))
86 timebench2a : $(patsubst %,%.o,$(MODULES_timebench2a))
87 timebench2ap : $(patsubst %,%.o,$(MODULES_timebench2ap))
88 timebench2b : $(patsubst %,%.o,$(MODULES_timebench2b))
89 $(PROGRAMS) : % : $(LIBDEPS)
90 $(LIBTOOL_LINK) $(CXX) $(CXXFLAGS) $(TARGET_ARCH) $(patsubst %,%.o,$(MODULES_$(*F))) $(LDFLAGS) $(LIBS) -o $@
91
92
93 install : all
94
95 installdirs :
96
97 uninstall :
98
99 check : all
100
101 mostlyclean : clean
102
103 clean : force
104 $(RM) *.s *.o *.a $(PROGRAMS) a.out core
105 $(RM) -r .libs _libs
106
107 distclean : clean
108 $(RM) config.status config.log config.cache Makefile
109
110 maintainer-clean : distclean
111
112 force :

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.15