Giavaras Alexandros a écrit :
Join the club(ha ha) Im a beginner with deal.II myself.There should be a 
makefile along with the tutorial type make to compile it or make run to compile 
it and run the executable as well.

Thank you very much to Giavaras and Firat !

unfortunately, when I try to use the following Makefile :

target   = step-1

debug-mode = on

D = /usr/local/deal.II

clean-up-files = *gmv *gnuplot *gpl *eps *pov


include $D/common/Make.global_options



libs.g   = $(lib-deal2-2d.g) \
      $(lib-lac.g)      \
          $(lib-base.g)
libs.o   = $(lib-deal2-2d.o) \
      $(lib-lac.o)      \
          $(lib-base.o)


ifeq ($(debug-mode),on)
 libraries = $(target).g.$(OBJEXT) $(libs.g)
else
 libraries = $(target).$(OBJEXT) $(libs.o)
endif



$(target)$(EXEEXT) : $(libraries)
   @echo ============================ Linking $@
   @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)


run: $(target)$(EXEEXT)
   @echo ============================ Running $<
   @./$(target)$(EXEEXT)



clean:
   -rm -f *.$(OBJEXT) *~ Makefile.dep $(target) $(clean-up-files)


./%.g.$(OBJEXT) :
   @echo ==============debug========= $(<F)
   @$(CXX) $(CXXFLAGS.g) -c $< -o $@
./%.$(OBJEXT) :
   @echo ==============optimized===== $(<F)
   @$(CXX) $(CXXFLAGS.o) -c $< -o $@


.PHONY: run clean


Makefile.dep: $(target).cc Makefile \
             $(shell echo $(include-path-base)/base/*.h    \
                          $(include-path-lac)/lac/*.h      \
                          $(include-path-deal2)/*/*.h)
   @echo ============================ Remaking $@
   @$D/common/scripts/make_dependencies  $(INCLUDE) -B. $(target).cc \
       > Makefile.dep


# include Makefile.dep


I just get

[...@hal DealII]$ make
==============debug=========
g++: no input file
make: *** [step-1.g.o] Erreur 1


Hmmm....What's wrong ?

Best,

JM

--
Jean-Marc Sac-Epée, Ingénieur de Recherches en Calcul Scientifique,
Laboratoire de Mathématiques, UMR 7122, Université de Metz,
Tél 03 87 54 72 69  Fax 03 87 31 52 73
http://www.math.univ-metz.fr/~jmse   mail: [email protected]



_______________________________________________
Dealii mailing list
[email protected]
http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to