lib-suffix = @lib_suffix@
OBJEXT = @OBJEXT@
+EXEEXT = @EXEEXT@
lib-base.o = $(LIBDIR)/libbase$(lib-suffix)
lib-base.g = $(LIBDIR)/libbase.g$(lib-suffix)
#! /bin/sh
-# From configure.in Revision: 1.125 .
+# From configure.in Revision: 1.126 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.54.
#
AC_SUBST(LDFLAGS)
AC_SUBST(LDFLAGSPIC)
AC_SUBST(OBJEXT)
-
+AC_SUBST(EXEEXT)
# rules
ifeq ($(enable-shared),yes)
- lib: $(LIBDIR)/libhsl.so $(LIBDIR)/bin/detached_ma27
+ lib: $(LIBDIR)/libhsl.so $(LIBDIR)/bin/detached_ma27$(EXEEXT)
else
- lib: $(LIBDIR)/libhsl.a $(LIBDIR)/bin/detached_ma27
+ lib: $(LIBDIR)/libhsl.a $(LIBDIR)/bin/detached_ma27$(EXEEXT)
endif
# rule to make the program that runs an MA27 solver detached from the
# main program, and communicates through a pipe. since this program
# has actually nothing much to do, compile it in debug mode
-$(LIBDIR)/bin/detached_ma27: source/detached_ma27.cc include/hsl/hsl.h \
+$(LIBDIR)/bin/detached_ma27$(EXEEXT): source/detached_ma27.cc include/hsl/hsl.h \
$(lib-contrib-hsl)
@echo =====hsl=========================$(MT)== Making $(@F)
@$(CXX) $(CXXFLAGS.g) $< -o $@ $(lib-contrib-hsl) $(lib-base.o) $(F77LIBS) -lpthread
@echo '<li><code>F77=$(F77)</code>' >> $@
@echo '<li><code>F77-VERSION=$(F77-VERSION)</code>' >> $@
@echo '<li><code>SHLIBLD=$(SHLIBLD)</code>' >> $@
+ @echo '<li><code>OBJEXT=$(OBJEXT)</code>' >> $@
+ @echo '<li><code>EXEEXT=$(EXEEXT)</code>' >> $@
@echo '<li><code>PERL=$(PERL)</code>' >> $@
@echo '<li><code>DEAL_II_MAJOR=$(DEAL_II_MAJOR)</code>' >> $@
@echo '<li><code>DEAL_II_MINOR=$(DEAL_II_MINOR)</code>' >> $@
# in `source/'. Object files are placed into `lib/[123]d', using the
# same base name as the `.cc' file.
cc-files = $(shell echo source/*.cc)
-o-files = $(cc-files:source/%.cc=lib/$(deal_II_dimension)d/%.o)
-go-files = $(cc-files:source/%.cc=lib/$(deal_II_dimension)d/%.g.o)
+o-files = $(cc-files:source/%.cc=lib/$(deal_II_dimension)d/%.$(OBJEXT))
+go-files = $(cc-files:source/%.cc=lib/$(deal_II_dimension)d/%.g.$(OBJEXT))
h-files = $(wildcard include/*.h)
lib-h-files = $(shell echo $(include-path-base)/base/*.h \
$(include-path-lac)/lac/*.h \
# The following two rules define how to compile C++ files into object
# files:
-lib/$(deal_II_dimension)d/%.g.o :
+lib/$(deal_II_dimension)d/%.g.$(OBJEXT) :
@echo =====waves=======$(deal_II_dimension)d====debug=====$(MT)== $(<F)
@$(CXX) $(flags) -c $< -o $@
-lib/$(deal_II_dimension)d/%.o :
+lib/$(deal_II_dimension)d/%.$(OBJEXT) :
@echo =====waves=======$(deal_II_dimension)d====optimized=$(MT)== $(<F)
@$(CXX) $(flags) -c $< -o $@
# Next define how to link the executable
-$(target) : $(libraries) Makefile
+$(target)$(EXEEXT) : $(libraries) Makefile
@echo =====waves=======$(deal_II_dimension)d==============$(MT)== Linking $(@F)
- @$(CXX) -o $(target) $(libraries) $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@ $(libraries) $(LIBS) $(LDFLAGS)
# Rule how to run the program
-run: $(target)
- ./$(target) $(run-parameters)
+run: $(target)$(EXEEXT)
+ ./$(target)$(EXEEXT) $(run-parameters)
# Rule how to clean up. This is split into several different rules to
-rm -f *~ */*~ */*/*~ lib/Makefile.dep
clean-lib:
- -rm -f lib/?d/*.o lib/?d/*.g.o lib/$(target) lib/TAGS
+ -rm -f lib/?d/*.$(OBJEXT) lib/?d/*.g.$(OBJEXT) $(target)$(EXEEXT) lib/TAGS
clean-data:
-rm -f $(clean-up-files)
# optimized mode to select the set of libraries to link with. Included
# in the list of libraries is the name of the object file which we
# will produce from the single C++ file. Note that by default we use
-# the extension .go for object files compiled in debug mode and .o for
-# object files in optimized mode.
+# the extension .g.o for object files compiled in debug mode and .o for
+# object files in optimized mode (or whatever the extension is on your
+# system, if .o is not appropriate)
ifeq ($(debug-mode),on)
- libraries = $(target).g.o $(libs.g)
+ libraries = $(target).g.$(OBJEXT) $(libs.g)
else
- libraries = $(target).o $(libs.o)
+ libraries = $(target).$(OBJEXT) $(libs.o)
endif
# file produced from the single C++ file into the executable. Since
# this is the first rule in the Makefile, it is the one `make' selects
# if you call it without arguments.
-$(target) : $(libraries)
+$(target)$(EXEEXT) : $(libraries)
@echo ============================ Linking $@
@$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
# useful if you want to call the executable with arguments which do
# not change frequently. You may then want to add them to the
# following rule:
-run: $(target)
+run: $(target)$(EXEEXT)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.o *.go *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# compiler are usually not of much interest, we suppress the actual
# command line using the `at' sign in the first column of the rules
# and write the string indicating what we do instead.
-./%.g.o :
+./%.g.$(OBJEXT) :
@echo ==============debug========= $(<F)
@$(CXX) $(CXXFLAGS.g) -c $< -o $@
-./%.o :
+./%.$(OBJEXT) :
@echo ==============optimized===== $(<F)
@$(CXX) $(CXXFLAGS.o) -c $< -o $@
</dd>
+ <dt> <code>OBJEXT</code> </dt>
+ <dd> <p>
+ Extension of object files. On unix, this is usually simply
+ <code>o</code>, on Windows systems it is <code>obj</code>.
+ </p>
+ </dd>
+
+
+ <dt> <code>EXEEXT</code> </dt>
+ <dd> <p>
+ Extension of executables. On unix, this is usually the
+ empty strign, on Windows systems it is <code>.exe</code>.
+ </p>
+ </dd>
+
+
<dt> <code>PERL</code> </dt>
<dd> <p>
Executable name of the `perl' program
New: Object files are now named according to the local defaults
on the system we are running on. On Unix systems, this is
usually a <code>.o</code> suffix, while on Windows it is
- <code>.obj</code>.
+ <code>.obj</code>. Likewise for executables, which have no
+ suffix on Unix, but <code>.exe</code> on Windows.
<br>
(WB 2002/11/11)
</p>
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
+ @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS)
# To make running the application somewhat independent of the actual
# following rule:
run: $(target)
@echo ============================ Running $<
- @./$(target)
+ @./$(target)$(EXEEXT)
# As a last rule to the `make' program, we define what to do when
# backup files, and data files. Since the latter are not usually quite
# diverse, you needed to declare them at the top of this file.
clean:
- -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)
+ -rm -f *.$(OBJEXT) *~ Makefile.dep $(target)$(EXEEXT) $(clean-up-files)
# Since we have not yet stated how to make an object file from a C++