]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STAT/Makefile
Resolving all symbols in the library
[u/mrichter/AliRoot.git] / STAT / Makefile
index cdcd38098fbe247b8a64e8223dd0d39586c551fe..f5765fb8653b9640c265e98ef45113c93f98bcbd 100644 (file)
@@ -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)