#-------------------------------------------------------------- # Makefile v 1.0 # # Data to disc software for GOOFIE Raw data # #-------------------------------------------------------------- VERBOSE = 1 OS = Linux DEBUG_GOOFIE = 0 # packets ROOT_INC = $(shell root-config --cflags) ROOT_LIB = $(shell root-config --libs) # add all includes and libraries here INCLUDE = -I./ ${ROOT_INC} LIBRARY = ${ROOT_LIB} C++ = g++ # Compile options # # -DDEBUG_ONLINE - compile with debug information # DEBUG_OPTS = -O2 -g -fPIC -Wno-long-long -pedantic -funsigned-char \ -Wall -DR__THREAD -DCOMPIL -DRCUDEBUG -D_REENTRANT \ -D_THREAD_SAFE -D_MULTI_THREADED # -DDEBUG_ONLINE C_FLAGS = $(DEBUG_OPTS) ObjSuf = o SrcSuf = cxx DllSuf = so OutPutOpt = -o DICT_CLASS = AliGoofiePackDict CLASS_DATATODISC = $(OS)/AliGoofieRawEvent.$(ObjSuf) $(OS)/AliGoofieGasResult.$(ObjSuf) \ $(OS)/AliGoofiePack.$(ObjSuf) $(OS)/AliGoofieProcessROOTFiles.$(ObjSuf) \ $(OS)/${DICT_CLASS}.$(ObjSuf) LIB_DATATODISC = $(OS)/libAliGoofieRawData.$(DllSuf) all: $(OS) $(CLASS_DATATODISC) $(LIB_DATATODISC) $(OS): @echo creating platform directory... @mkdir $(OS) $(OS)/%.$(ObjSuf): %.$(SrcSuf) @echo compiling my $* $(C++) -c $(C_FLAGS) $(INCLUDE) $*.$(SrcSuf) $(OutPutOpt) $(OS)/$*.$(ObjSuf) @echo "$@ done" #create library for reading Goofie root files $(DICT_CLASS).$(SrcSuf): @echo "Generate GOOFIE Dictionary ..." @rootcint -f $(DICT_CLASS).$(SrcSuf) -c AliGoofiePack.h AliGoofieGasResult.h AliGoofieRawEvent.h AliGoofiePackLinkDef.h $(LIB_DATATODISC): $(CLASS_DATATODISC) $(C++) -shared $(C_FLAGS) $^ $(OutPutOpt) $@ @echo "$@ done" clean: rm -rf Linux rm -f $(DICT_CLASS)* rm -f *~