From 88a87d1094e5cc7943afbc7150692ffc6035daee Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 11 Nov 2002 21:29:50 +0000 Subject: [PATCH] Also use EXEEXT for executables. git-svn-id: https://svn.dealii.org/trunk@6753 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/common/Make.global_options.in | 1 + deal.II/configure | 2 +- deal.II/configure.in | 2 +- deal.II/contrib/hsl/Makefile | 6 +++--- deal.II/doc/development/Makefile | 2 ++ deal.II/doc/development/Makefile.large | 18 +++++++++--------- deal.II/doc/development/Makefile.small | 21 +++++++++++---------- deal.II/doc/development/makefiles.1.html | 16 ++++++++++++++++ deal.II/doc/news/2002/c-3-4.html | 3 ++- deal.II/examples/step-1/Makefile | 6 +++--- deal.II/examples/step-10/Makefile | 6 +++--- deal.II/examples/step-11/Makefile | 6 +++--- deal.II/examples/step-12/Makefile | 6 +++--- deal.II/examples/step-13/Makefile | 6 +++--- deal.II/examples/step-14/Makefile | 6 +++--- deal.II/examples/step-15/Makefile | 6 +++--- deal.II/examples/step-2/Makefile | 6 +++--- deal.II/examples/step-3/Makefile | 6 +++--- deal.II/examples/step-4/Makefile | 6 +++--- deal.II/examples/step-5/Makefile | 6 +++--- deal.II/examples/step-6/Makefile | 6 +++--- deal.II/examples/step-7/Makefile | 6 +++--- deal.II/examples/step-8/Makefile | 6 +++--- deal.II/examples/step-9/Makefile | 6 +++--- 24 files changed, 91 insertions(+), 70 deletions(-) diff --git a/deal.II/common/Make.global_options.in b/deal.II/common/Make.global_options.in index fdb66dd0b4..31759139f7 100644 --- a/deal.II/common/Make.global_options.in +++ b/deal.II/common/Make.global_options.in @@ -65,6 +65,7 @@ vpath %.so $(libdir) lib-suffix = @lib_suffix@ OBJEXT = @OBJEXT@ +EXEEXT = @EXEEXT@ lib-base.o = $(LIBDIR)/libbase$(lib-suffix) lib-base.g = $(LIBDIR)/libbase.g$(lib-suffix) diff --git a/deal.II/configure b/deal.II/configure index 5541a2646d..c0543bfe89 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -1,5 +1,5 @@ #! /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. # diff --git a/deal.II/configure.in b/deal.II/configure.in index a0599356bc..2c6c17a86e 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -122,7 +122,7 @@ AC_SUBST(LIBS) AC_SUBST(LDFLAGS) AC_SUBST(LDFLAGSPIC) AC_SUBST(OBJEXT) - +AC_SUBST(EXEEXT) diff --git a/deal.II/contrib/hsl/Makefile b/deal.II/contrib/hsl/Makefile index cbb5f30eee..7491884cb4 100644 --- a/deal.II/contrib/hsl/Makefile +++ b/deal.II/contrib/hsl/Makefile @@ -27,9 +27,9 @@ $(LIBDIR)/contrib/hsl/%.$(OBJEXT) : # 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 @@ -48,7 +48,7 @@ $(LIBDIR)/libhsl.so: $(forward-declarations) $(o-files) # 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 diff --git a/deal.II/doc/development/Makefile b/deal.II/doc/development/Makefile index 80639e119c..52ee31b44a 100644 --- a/deal.II/doc/development/Makefile +++ b/deal.II/doc/development/Makefile @@ -17,6 +17,8 @@ makefiles.html: Makefile makefiles.1.html $D/common/Make.global_options makefile @echo '
  • F77=$(F77)' >> $@ @echo '
  • F77-VERSION=$(F77-VERSION)' >> $@ @echo '
  • SHLIBLD=$(SHLIBLD)' >> $@ + @echo '
  • OBJEXT=$(OBJEXT)' >> $@ + @echo '
  • EXEEXT=$(EXEEXT)' >> $@ @echo '
  • PERL=$(PERL)' >> $@ @echo '
  • DEAL_II_MAJOR=$(DEAL_II_MAJOR)' >> $@ @echo '
  • DEAL_II_MINOR=$(DEAL_II_MINOR)' >> $@ diff --git a/deal.II/doc/development/Makefile.large b/deal.II/doc/development/Makefile.large index 65ef45dd1e..537bd5b7f5 100644 --- a/deal.II/doc/development/Makefile.large +++ b/deal.II/doc/development/Makefile.large @@ -46,8 +46,8 @@ include $D/common/Make.global_options # 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 \ @@ -93,25 +93,25 @@ flags += -Ddeal_II_dimension=$(deal_II_dimension) # 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)== $( +
    OBJEXT
    +

    + Extension of object files. On unix, this is usually simply + o, on Windows systems it is obj. +

    +
    + + +
    EXEEXT
    +

    + Extension of executables. On unix, this is usually the + empty strign, on Windows systems it is .exe. +

    +
    + +
    PERL

    Executable name of the `perl' program diff --git a/deal.II/doc/news/2002/c-3-4.html b/deal.II/doc/news/2002/c-3-4.html index f762e5f5ba..08517d935a 100644 --- a/deal.II/doc/news/2002/c-3-4.html +++ b/deal.II/doc/news/2002/c-3-4.html @@ -37,7 +37,8 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK 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 .o suffix, while on Windows it is - .obj. + .obj. Likewise for executables, which have no + suffix on Unix, but .exe on Windows.
    (WB 2002/11/11)

    diff --git a/deal.II/examples/step-1/Makefile b/deal.II/examples/step-1/Makefile index 386c18418b..186ce42a92 100644 --- a/deal.II/examples/step-1/Makefile +++ b/deal.II/examples/step-1/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-10/Makefile b/deal.II/examples/step-10/Makefile index c8ebda9056..05208fec72 100644 --- a/deal.II/examples/step-10/Makefile +++ b/deal.II/examples/step-10/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-11/Makefile b/deal.II/examples/step-11/Makefile index 386c18418b..186ce42a92 100644 --- a/deal.II/examples/step-11/Makefile +++ b/deal.II/examples/step-11/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-12/Makefile b/deal.II/examples/step-12/Makefile index 386c18418b..186ce42a92 100644 --- a/deal.II/examples/step-12/Makefile +++ b/deal.II/examples/step-12/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-13/Makefile b/deal.II/examples/step-13/Makefile index 386c18418b..186ce42a92 100644 --- a/deal.II/examples/step-13/Makefile +++ b/deal.II/examples/step-13/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-14/Makefile b/deal.II/examples/step-14/Makefile index 386c18418b..186ce42a92 100644 --- a/deal.II/examples/step-14/Makefile +++ b/deal.II/examples/step-14/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-15/Makefile b/deal.II/examples/step-15/Makefile index 00084ba3eb..27864f141e 100644 --- a/deal.II/examples/step-15/Makefile +++ b/deal.II/examples/step-15/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-2/Makefile b/deal.II/examples/step-2/Makefile index 60aee3cd64..f5fc038d5b 100644 --- a/deal.II/examples/step-2/Makefile +++ b/deal.II/examples/step-2/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-3/Makefile b/deal.II/examples/step-3/Makefile index 386c18418b..186ce42a92 100644 --- a/deal.II/examples/step-3/Makefile +++ b/deal.II/examples/step-3/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-4/Makefile b/deal.II/examples/step-4/Makefile index e8fb7b2029..cbff3c14ff 100644 --- a/deal.II/examples/step-4/Makefile +++ b/deal.II/examples/step-4/Makefile @@ -87,7 +87,7 @@ endif # 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 @@ -98,7 +98,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -107,7 +107,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-5/Makefile b/deal.II/examples/step-5/Makefile index 386c18418b..186ce42a92 100644 --- a/deal.II/examples/step-5/Makefile +++ b/deal.II/examples/step-5/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-6/Makefile b/deal.II/examples/step-6/Makefile index 386c18418b..186ce42a92 100644 --- a/deal.II/examples/step-6/Makefile +++ b/deal.II/examples/step-6/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-7/Makefile b/deal.II/examples/step-7/Makefile index 25c6224c59..23ca13fdd0 100644 --- a/deal.II/examples/step-7/Makefile +++ b/deal.II/examples/step-7/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-8/Makefile b/deal.II/examples/step-8/Makefile index 386c18418b..186ce42a92 100644 --- a/deal.II/examples/step-8/Makefile +++ b/deal.II/examples/step-8/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ diff --git a/deal.II/examples/step-9/Makefile b/deal.II/examples/step-9/Makefile index 386c18418b..186ce42a92 100644 --- a/deal.II/examples/step-9/Makefile +++ b/deal.II/examples/step-9/Makefile @@ -85,7 +85,7 @@ endif # 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 @@ -96,7 +96,7 @@ $(target) : $(libraries) # following rule: run: $(target) @echo ============================ Running $< - @./$(target) + @./$(target)$(EXEEXT) # As a last rule to the `make' program, we define what to do when @@ -105,7 +105,7 @@ run: $(target) # 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++ -- 2.39.5