]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use $(OBJEXT) instead of plain .o
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 11 Nov 2002 21:11:53 +0000 (21:11 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 11 Nov 2002 21:11:53 +0000 (21:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@6752 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/Make.rules

index 2c2533f0f20e05d55ce7e314ff98017cc1ea63c6..13abec560dc0d6e485da00d89b529076f586e402 100644 (file)
@@ -17,10 +17,10 @@ else
   MT = ==
 endif
 
-%.g.o : %.cc
+%.g.$(OBJEXT) : %.cc
        @echo =====debug======$(MT)== $<
        @$(CXX) $(CXXFLAGS.g) $(CXXFLAGS) -c $< -o $@
-%.o : %.cc
+%.$(OBJEXT) : %.cc
        @echo =====optimized==$(MT)== $<
        @$(CXX) $(CXXFLAGS.o) $(CXXFLAGS) -c $< -o $@
 
@@ -33,6 +33,6 @@ all-cc-files = $(shell echo *.cc)
 Makefile.depend: $(all-cc-files)
        @echo =====Dependencies== Makefile.depend
        @$(CXX) $(flags) $^ -M > $@
-       @$(PERL) -pi~ -e 's/(^[^.]+)\.o:/\1.o \1.g.o:/;' $@
+       @$(PERL) -pi~ -e 's/(^[^.]+)\.$(OBJEXT):/\1.$(OBJEXT) \1.g.$(OBJEXT):/;' $@
 
 include Makefile.depend

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.