X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STAT%2FMakefile;h=f5765fb8653b9640c265e98ef45113c93f98bcbd;hb=2a1514aadecbf70678b2864b2d2c21bb219a1cd7;hp=cdcd38098fbe247b8a64e8223dd0d39586c551fe;hpb=4b23a517c8c785e062a3d9ce98217ab6d7096e1c;p=u%2Fmrichter%2FAliRoot.git diff --git a/STAT/Makefile b/STAT/Makefile index cdcd38098fb..f5765fb8653 100644 --- a/STAT/Makefile +++ b/STAT/Makefile @@ -17,14 +17,14 @@ OutPutOpt = -o CXX = g++ LD = g++ -CXXFLAGS = -O -g -pg -fPIC -LDFLAGS = -O -g -pg -fPIC +CXXFLAGS = -O -g -pg -fPIC -Wall -Weffc++ +LDFLAGS = -O -g -pg -fPIC -Wall -Weffc++ SOFLAGS = -shared -g -pg -fPIC ROOTCXX = $(shell root-config --cflags) ROOTLIBS = $(shell root-config --libs) -lMinuit -MCCXX = +MCCXX = -I$(ALICE_ROOT)/STEER MCLIBS = CXXFLAGS += $(ROOTCXX) $(MCCXX) $(LOCALCXX) @@ -32,7 +32,7 @@ CXXFLAGS += $(ROOTCXX) $(MCCXX) $(LOCALCXX) # define module specific variables FILE_LIST = $(shell ls -1 ./*.$(SrcSuf)) FILES = $(basename $(FILE_LIST)) -DICTIONARIES = kDStatDict +DICTIONARIES = StatDict OBJECTS = $(addsuffix .$(ObjSuf),$(FILES)) OBJECTS += ./$(DICTIONARIES).$(ObjSuf) @@ -43,18 +43,18 @@ HEADERS = $(notdir $(HDRS)) # define libs on which the main lib depends ! (this are defined in config/Makefile.flags) LIBSDEPEND = $(ROOTLIBS) $(MCLIBS) # define libs build by module -LIBS = libKDStat.so +LIBS = libSTAT.so # rule for building executables $(EXECS): $(OBJECTS) @echo -e "\E[31mBuild executable: \E[1;31m$@\E[0m" @$(LD) $(LIBSDEPEND) $^ -o $@ - + # rule for building libraries %.$(DllSuf): $(OBJECTS) @echo -e "\E[31mBuild library: \E[1;31m$@\E[0m" @$(LD) $(SOFLAGS) $(LIBSDEPEND) $^ -o $@ - + # rule for building objects %.$(ObjSuf): %.$(SrcSuf) @echo -e "\E[31mCompile : \E[1;31m$^\E[0m" @@ -64,7 +64,7 @@ $(EXECS): $(OBJECTS) %Dict.$(SrcSuf): %LinkDef.h @echo -e "\E[31mGenerate dictionary : \E[1;31m$@\E[0m" @rootcint -f $@ -c $(CXXFLAGS) $(HEADERS) $^ - + all: $(OBJECTS) $(LIBS) $(EXECS) headers: @@ -72,7 +72,7 @@ headers: if [ ! -d include ]; then mkdir include; fi; \ cp -f $(HEADERS) include; \ fi - + clean: @rm -fv $(DICTIONARIES) @rm -fv $(OBJECTS) @@ -80,6 +80,4 @@ clean: @if [ "$(LIBS)" != "" ]; then rm -fv ./$(LIBS); fi @if [ "$(EXECS)" != "" ]; then rm -fv ./$(EXECS); fi - - - + $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)