]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Also use EXEEXT for executables.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 11 Nov 2002 21:29:50 +0000 (21:29 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 11 Nov 2002 21:29:50 +0000 (21:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@6753 0785d39b-7218-0410-832d-ea1e28bc413d

24 files changed:
deal.II/common/Make.global_options.in
deal.II/configure
deal.II/configure.in
deal.II/contrib/hsl/Makefile
deal.II/doc/development/Makefile
deal.II/doc/development/Makefile.large
deal.II/doc/development/Makefile.small
deal.II/doc/development/makefiles.1.html
deal.II/doc/news/2002/c-3-4.html
deal.II/examples/step-1/Makefile
deal.II/examples/step-10/Makefile
deal.II/examples/step-11/Makefile
deal.II/examples/step-12/Makefile
deal.II/examples/step-13/Makefile
deal.II/examples/step-14/Makefile
deal.II/examples/step-15/Makefile
deal.II/examples/step-2/Makefile
deal.II/examples/step-3/Makefile
deal.II/examples/step-4/Makefile
deal.II/examples/step-5/Makefile
deal.II/examples/step-6/Makefile
deal.II/examples/step-7/Makefile
deal.II/examples/step-8/Makefile
deal.II/examples/step-9/Makefile

index fdb66dd0b4cdb61c7374113735e4ea4d73a42041..31759139f794ac308efa9e56ae9bcace400c1626 100644 (file)
@@ -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)
index 5541a2646df44e4daab959efc0df199132f4b5d2..c0543bfe8913b3478ce8511ba279c06af9d9ebeb 100755 (executable)
@@ -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.
 #
index a0599356bce2202dace22e6ca8eac9a2f9466f3c..2c6c17a86ea6bdf93b102e8cd5fbd0ef57f78668 100644 (file)
@@ -122,7 +122,7 @@ AC_SUBST(LIBS)
 AC_SUBST(LDFLAGS)
 AC_SUBST(LDFLAGSPIC)
 AC_SUBST(OBJEXT)
-
+AC_SUBST(EXEEXT)
 
 
 
index cbb5f30eee03f15f52d127efc20021e4e8ebe040..7491884cb4ebdcd37600e5d6cdcbc1b7cc0bb41e 100644 (file)
@@ -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
index 80639e119cd9170c8b9ab7b980c8c13675d9f446..52ee31b44ae658f11c41f105b6cc33d611c32e0a 100644 (file)
@@ -17,6 +17,8 @@ makefiles.html: Makefile makefiles.1.html $D/common/Make.global_options makefile
        @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>' >> $@
index 65ef45dd1e1004055a6932b10824c688bc08fddb..537bd5b7f58e31c801eecbca81ce9557b24ec8e4 100644 (file)
@@ -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)== $(<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
@@ -120,7 +120,7 @@ clean: clean-lib clean-data
        -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)
index 9467961ec018216f44dbc426691b212710664cff..d980ce151d5d5f4fb4ceaa639bb3a236fc25b8f3 100644 (file)
@@ -69,12 +69,13 @@ libs.o   = $(lib-deal2-2d.o) \
 # 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
 
 
@@ -82,7 +83,7 @@ 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)
 
@@ -93,9 +94,9 @@ $(target) : $(libraries)
 # 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
@@ -104,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 *.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++
@@ -112,10 +113,10 @@ clean:
 # 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 $@
 
index 25eb92a2caa2b0cdf0bce9d562a6f7bc92b66051..d34fd92f7d4662be0dbffa5a48d6edc18ce2d201 100644 (file)
       </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
index f762e5f5ba3ed4c23b799ba7dc703a791404fa60..08517d935ac288ff703dd84fa881b83ad04d9fd8 100644 (file)
@@ -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 <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>
index 386c18418bf715356368cd1fa59c4d74cdfb1225..186ce42a925aeea5a94358ce0953748bf7e90679 100644 (file)
@@ -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++
index c8ebda905620dfa9bc38e8b997ca3819e7c2072e..05208fec72d84bae8715a5f966b2393243ae9f96 100644 (file)
@@ -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++
index 386c18418bf715356368cd1fa59c4d74cdfb1225..186ce42a925aeea5a94358ce0953748bf7e90679 100644 (file)
@@ -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++
index 386c18418bf715356368cd1fa59c4d74cdfb1225..186ce42a925aeea5a94358ce0953748bf7e90679 100644 (file)
@@ -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++
index 386c18418bf715356368cd1fa59c4d74cdfb1225..186ce42a925aeea5a94358ce0953748bf7e90679 100644 (file)
@@ -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++
index 386c18418bf715356368cd1fa59c4d74cdfb1225..186ce42a925aeea5a94358ce0953748bf7e90679 100644 (file)
@@ -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++
index 00084ba3eb90932f0dad73dc12dfaf01d57ac268..27864f141e44ca6e98f5bedb26691bbad9527c96 100644 (file)
@@ -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++
index 60aee3cd64bd6207e7a5b72dc9411c0555f394a1..f5fc038d5b2b3f629dcc0e071def955fb564b0c9 100644 (file)
@@ -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++
index 386c18418bf715356368cd1fa59c4d74cdfb1225..186ce42a925aeea5a94358ce0953748bf7e90679 100644 (file)
@@ -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++
index e8fb7b20294f4d2aa507bab206f5e13e7e4f660f..cbff3c14ff6696e5cbed6d75e83ed1b67d267c4a 100644 (file)
@@ -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++
index 386c18418bf715356368cd1fa59c4d74cdfb1225..186ce42a925aeea5a94358ce0953748bf7e90679 100644 (file)
@@ -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++
index 386c18418bf715356368cd1fa59c4d74cdfb1225..186ce42a925aeea5a94358ce0953748bf7e90679 100644 (file)
@@ -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++
index 25c6224c599e2b97103f5693a574729dc388f545..23ca13fdd0ca168762b0f65eff39fede930e3c29 100644 (file)
@@ -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++
index 386c18418bf715356368cd1fa59c4d74cdfb1225..186ce42a925aeea5a94358ce0953748bf7e90679 100644 (file)
@@ -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++
index 386c18418bf715356368cd1fa59c4d74cdfb1225..186ce42a925aeea5a94358ce0953748bf7e90679 100644 (file)
@@ -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++

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.