| 1 |
silvio |
1.1 |
# Compilers settings |
| 2 |
|
|
ROOTCFLAGS =`root-config --cflags` |
| 3 |
|
|
ROOTLDFLAGS =`root-config --ldflags` |
| 4 |
|
|
ROOTLIBS =`root-config --libs` -lHbook |
| 5 |
|
|
CERNLIBS =`cernlib_noshift kernlib,packlib,genlib` |
| 6 |
|
|
F77LIBS =-lg2c -lnsl |
| 7 |
|
|
SYSLIBS =-lm -ldl -rdynamic |
| 8 |
|
|
LD =g++ |
| 9 |
|
|
CXXFLAGS=-g -O -Wall -fPIC ${ROOTCFLAGS} |
| 10 |
|
|
#CXXFLAGS= -g -Wall -O ${ROOTCFLAGS} |
| 11 |
|
|
LDFLAGS = -g |
| 12 |
|
|
# flags needed on the pamelatov's: |
| 13 |
|
|
#LDFLAGS = -g -lmathlib -lpacklib -lkernlib -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib |
| 14 |
|
|
|
| 15 |
|
|
HEAS =$(SRCS:.cpp=.h) |
| 16 |
|
|
OBJS =$(SRCS:.cpp=.o) |
| 17 |
|
|
DEPS =$(SRCS:.cpp=.d) |
| 18 |
|
|
CLAS =$(DICS:.cpp= ) |
| 19 |
|
|
CLASH=$(DICS:.cpp=.h) |
| 20 |
|
|
JUNK =$(addsuffix ~,${SRCS}) $(addsuffix ~,${HEAS}) |
| 21 |
|
|
DICO =$(addsuffix Dict.o, ${CLAS}) |
| 22 |
|
|
DICH =$(addsuffix Dict.h, ${CLAS}) |
| 23 |
|
|
|
| 24 |
|
|
all: Pamelagp2Digits |
| 25 |
|
|
|
| 26 |
|
|
|
| 27 |
|
|
Pamelagp2Digits: CRC.o calcrc.o Pamelagp2Digits.o Digitizer.o ${OBJS} ${DICO} |
| 28 |
|
|
$(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS} ${PAM_LIB}/libGLTables.so ${PAM_LIB}/libsgp4.so ${PAM_YODA}/lib/libyoda.so |
| 29 |
|
|
|
| 30 |
|
|
Digitizer: Digitizer.o ${OBJS} ${DICO} |
| 31 |
|
|
$(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS} |
| 32 |
|
|
|
| 33 |
|
|
depend: ${DEPS} |
| 34 |
|
|
|
| 35 |
|
|
%.d: %.cpp |
| 36 |
|
|
@echo Creating dependencies for $< |
| 37 |
|
|
@$(CXX) -MM $(CXXFLAGS) $< -o $@ |
| 38 |
|
|
|
| 39 |
|
|
|
| 40 |
|
|
|
| 41 |
|
|
.SUFFIXES: .cxx |
| 42 |
|
|
.cxx.o: |
| 43 |
|
|
$(CXX) $(CXXFLAGS) -c $< `root-config --cflags` -I${PAM_YODA}/include/yoda/ -I${PAM_INC}/ |
| 44 |
|
|
|
| 45 |
|
|
|
| 46 |
|
|
.PHONY: clean |
| 47 |
|
|
|
| 48 |
|
|
clean: |
| 49 |
|
|
@echo Removing object files ..... |
| 50 |
|
|
@rm -f ${OBJS} ${DICO} *.o |
| 51 |
|
|
@echo Removing dependencies files ..... |
| 52 |
|
|
@rm -f ${DEPS} |
| 53 |
|
|
@echo Removing dictionary files ..... |
| 54 |
|
|
@rm -f ${JUNK} ${DICH} |
| 55 |
|
|
@echo Removing temporary files ..... |
| 56 |
|
|
@rm -f ${JUNK} |