# Compilers settings ROOTCFLAGS =`root-config --cflags` ROOTLDFLAGS =`root-config --ldflags` ROOTLIBS =`root-config --libs` -lHbook CERNLIBS =`cernlib_noshift kernlib,packlib,genlib` F77LIBS =-lg2c -lnsl SYSLIBS =-lm -ldl -rdynamic LD =g++ CXXFLAGS=-g -O -Wall -fPIC ${ROOTCFLAGS} #CXXFLAGS= -g -Wall -O ${ROOTCFLAGS} # flags needed on the pamelatov's: LDFLAGS = -g -lmathlib -lpacklib -lkernlib -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib #LDFLAGS = -g -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib HEAS =$(SRCS:.cpp=.h) OBJS =$(SRCS:.cpp=.o) DEPS =$(SRCS:.cpp=.d) CLAS =$(DICS:.cpp= ) CLASH=$(DICS:.cpp=.h) JUNK =$(addsuffix ~,${SRCS}) $(addsuffix ~,${HEAS}) DICO =$(addsuffix Dict.o, ${CLAS}) DICH =$(addsuffix Dict.h, ${CLAS}) all: Pamelagp2Digits Pamelagp2Digits: CRC.o calcrc.o Pamelagp2Digits.o Digitizer.o ${OBJS} ${DICO} $(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS} ${PAM_LIB}/libGLTables.so ${PAM_LIB}/libsgp4.so ${PAM_YODA}/lib/libyoda.so Digitizer: Digitizer.o ${OBJS} ${DICO} $(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS} depend: ${DEPS} %.d: %.cpp @echo Creating dependencies for $< @$(CXX) -MM $(CXXFLAGS) $< -o $@ .SUFFIXES: .cxx .cxx.o: $(CXX) $(CXXFLAGS) -c $< `root-config --cflags` -I${PAM_YODA}/include/yoda/ -I${PAM_INC}/ .PHONY: clean clean: @echo Removing object files ..... @rm -f ${OBJS} ${DICO} *.o @echo Removing dependencies files ..... @rm -f ${DEPS} @echo Removing dictionary files ..... @rm -f ${JUNK} ${DICH} @echo Removing temporary files ..... @rm -f ${JUNK}