Re: [ROOT] guidemo makefile

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Mar 04 2003 - 20:44:23 MET


Hi Christian,

  yes I am afraid so. guidemo was never ported to MacOSX. Just make sure 
the options are exactly the same. 

Cheers, Fons.


On Tue, Mar 04, 2003 at 08:34:17PM +0100, cstrato wrote:
> Dear Fons
> 
> Well, this means I have to rewrite the Makefile, since the Makefile from 
> guidemo
> is completely different.
> 
> Best regards
> Christian
> 
> 
> Fons Rademakers wrote:
> 
> >Hi Christian,
> >
> >  please have a look at the file $ROOTSYS/test/RootShower/Makefile which
> >shows the needed options for MacOS X.
> >
> >Cheers, Fons.
> >
> >
> >On Mon, 2003-03-03 at 23:23, cstrato wrote:
> >  
> >
> >>Dear MacRooters
> >>
> >>I have just downloaded from root guidemo.tar.gz, and tried to
> >>change the Makefile for MacOS X.
> >>Sorrowly, I have troubles getting it to work (see attached file)
> >>
> >>Do you know how to change the Makefile for MacOS X?
> >>
> >>Thank you in advance
> >>
> >>Best regards
> >>Christian
> >>_._._._._._._._._._._._._._._._
> >>C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a
> >>V.i.e.n.n.a       A.u.s.t.r.i.a
> >>_._._._._._._._._._._._._._._._
> >>
> >>______________________________________________________________________
> >>
> >># Linux
> >>#CXX      = g++
> >>#CPPFLAGS = -I$(ROOTSYS)/include
> >>#CXXFLAGS = -O -Wall -fPIC
> >>#LDFLAGS  = -g
> >>#SOFLAGS  = -shared -Wl,-soname,
> >>
> >># MacOSX
> >>CXX      = c++
> >>CPPFLAGS = -I$(ROOTSYS)/include
> >>CXXFLAGS      = -O -pipe -Wall
> >>LD            = c++
> >>LDFLAGS       = -O -Xlinker -bind_at_load -flat_namespace
> >># The SOFLAGS will be used to create the .dylib; the .so will
> >># be created separately
> >>DllSuf        = dylib
> >>SOFLAGS       = -dynamiclib -flat_namespace -undefined suppress
> >>
> >>LINKDEF  = LinkDef.h
> >>NAME     = guidemo
> >>
> >>SOURCE := $(filter-out $(NAME)Cint.cc, $(wildcard *.cc))
> >>OBJECTS := $(patsubst %.cc,%.o,$(SOURCE))
> >>
> >>CLASSINCLUDES = histaction.h canvsave.h
> >>
> >>all: $(NAME)
> >>
> >>include $(SOURCE:.cc=.d)
> >>
> >>$(NAME):  $(OBJECTS) $(NAME)Cint.o
> >>	$(CXX) $(SOFLAGS)lib$(NAME).so $(LDFLAGS) $(OBJECTS) $(NAME)Cint.o \
> >>	-o lib$(NAME).so
> >>	@echo Library lib$(NAME).so is created
> >>
> >>$(NAME)Cint.o: $(CLASSINCLUDES) $(LINKDEF)
> >>	@rm -f $(NAME)Cint.cc
> >>	@echo Generating dictionary
> >>	rootcint $(NAME)Cint.cc -c $(CLASSINCLUDES) $(LINKDEF)
> >>	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(NAME)Cint.cc -c
> >>
> >>(%.o): %.cc %.d
> >>	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $%
> >>
> >>%.d: %.cc
> >>	@$(SHELL) -ec '$(CXX) -M $(CPPFLAGS) \
> >>	$< |sed '\''s/$*.o/& $@/g'\'' > $@'
> >>	@echo Makefile $*.d created
> >>
> >>clean:
> >>	rm -f $(OBJECTS) $(NAME)Cint.* lib$(NAME).so *.d core
> >>
> >>    
> >>
> 

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET