From 57eff4b2a02aaf2f5d99fdfb6a261befcdf9525f Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Wed, 6 Sep 2006 20:12:09 +0000 Subject: [PATCH] * More ${EXEEXT} patches by Sheplyakov Alexei. --- benchmarks/Makefile.in | 11 ++++++----- examples/Makefile.in | 21 +++++++++++---------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/benchmarks/Makefile.in b/benchmarks/Makefile.in index 416f168..d50e71d 100644 --- a/benchmarks/Makefile.in +++ b/benchmarks/Makefile.in @@ -24,6 +24,7 @@ MV = mv LN = ln RM = rm -f @SET_MAKE@ +EXEEXT = @EXEEXT@ #### End of system configuration section. #### @@ -83,11 +84,11 @@ endif %.i.cc : %.cc ${CXXCPP} ${CXXFLAGS} ${CPPFLAGS} ${TARGET_ARCH} $< > $@ -timebench1 : $(patsubst %,%.o,${MODULES_timebench1}) -timebench2a : $(patsubst %,%.o,${MODULES_timebench2a}) -timebench2ap : $(patsubst %,%.o,${MODULES_timebench2ap}) -timebench2b : $(patsubst %,%.o,${MODULES_timebench2b}) -${PROGRAMS} : % : ${LIBDEPS} +timebench1${EXEEXT} : $(patsubst %,%.o,${MODULES_timebench1}) +timebench2a${EXEEXT} : $(patsubst %,%.o,${MODULES_timebench2a}) +timebench2ap${EXEEXT} : $(patsubst %,%.o,${MODULES_timebench2ap}) +timebench2b${EXEEXT} : $(patsubst %,%.o,${MODULES_timebench2b}) +${PROGRAMS} : %${EXEEXT} : ${LIBDEPS} ${LIBTOOL_LINK} ${CXX} ${CXXFLAGS} ${TARGET_ARCH} $(patsubst %,%.o,$(MODULES_$(*F))) ${LDFLAGS} ${LIBS} -o $@ diff --git a/examples/Makefile.in b/examples/Makefile.in index e6d0eb6..4e9517f 100644 --- a/examples/Makefile.in +++ b/examples/Makefile.in @@ -27,6 +27,7 @@ MV = mv LN = ln RM = rm -f @SET_MAKE@ +EXEEXT = @EXEEXT@ #### End of system configuration section. #### @@ -61,7 +62,7 @@ MODULES_nextprime = nextprime MODULES_perfnum = perfnum MODULES_pi = pi -all : contfrac e fibonacci legendre lucaslehmer nextprime perfnum pi +all : $(addsuffix ${EXEEXT}, contfrac e fibonacci legendre lucaslehmer nextprime perfnum pi) %.s : %.c ${CC} ${CFLAGS} ${CPPFLAGS} ${TARGET_ARCH} -S $< -o $@ @@ -81,15 +82,15 @@ all : contfrac e fibonacci legendre lucaslehmer nextprime perfnum pi %.i.cc : %.cc ${CXXCPP} ${CXXFLAGS} ${CPPFLAGS} ${TARGET_ARCH} $< > $@ -contfrac : $(patsubst %,%.o,${MODULES_contfrac}) -e : $(patsubst %,%.o,${MODULES_e}) -fibonacci : $(patsubst %,%.o,${MODULES_fibonacci}) -legendre : $(patsubst %,%.o,${MODULES_legendre}) -lucaslehmer : $(patsubst %,%.o,${MODULES_lucaslehmer}) -nextprime : $(patsubst %,%.o,${MODULES_nextprime}) -perfnum : $(patsubst %,%.o,${MODULES_perfnum}) -pi : $(patsubst %,%.o,${MODULES_pi}) -${PROGRAMS} : % : ${LIBDEPS} +contfrac${EXEEXT} : $(patsubst %,%.o,${MODULES_contfrac}) +e${EXEEXT} : $(patsubst %,%.o,${MODULES_e}) +fibonacci${EXEEXT} : $(patsubst %,%.o,${MODULES_fibonacci}) +legendre${EXEEXT} : $(patsubst %,%.o,${MODULES_legendre}) +lucaslehmer${EXEEXT} : $(patsubst %,%.o,${MODULES_lucaslehmer}) +nextprime${EXEEXT} : $(patsubst %,%.o,${MODULES_nextprime}) +perfnum${EXEEXT} : $(patsubst %,%.o,${MODULES_perfnum}) +pi${EXEEXT} : $(patsubst %,%.o,${MODULES_pi}) +${PROGRAMS} : %${EXEEXT} : ${LIBDEPS} ${LIBTOOL_LINK} ${CXX} ${CXXFLAGS} ${TARGET_ARCH} $(patsubst %,%.o,$(MODULES_$(*F))) ${LDFLAGS} ${LIBS} -o $@