1 |
# PamelaDigitizer |
# PamelaDigitizer |
2 |
# SOFTWARE VERSION |
# SOFTWARE VERSION |
3 |
VER= v3r00 |
VER= v3r03 |
4 |
# An almost general purpouse Makefile for PAMELA repository |
# An almost general purpouse Makefile for PAMELA repository |
5 |
# Let's start with some useful definition to make the echo colored |
# Let's start with some useful definition to make the echo colored |
6 |
RED='\E[1;31;40m' |
RED='\E[1;31;40m' |
42 |
|
|
43 |
# Compilers settings |
# Compilers settings |
44 |
ROOTCFLAGS =`root-config --cflags` |
ROOTCFLAGS =`root-config --cflags` |
45 |
ROOTLDFLAGS =`root-config --ldflags` |
ROOTLDFLAGS =`root-config --ldflags` |
46 |
ROOTLIBS =`root-config --libs` -lHbook |
ROOTLIBS =`root-config --libs` -lHbook |
47 |
CERNLIBS =`cernlib_noshift kernlib,packlib,genlib` |
#CERNLIBS =`cernlib_noshift kernlib,packlib,genlib` |
48 |
|
CERNLIBS = |
49 |
F77LIBS =-lg2c -lnsl |
F77LIBS =-lg2c -lnsl |
50 |
SYSLIBS =-lm -ldl -rdynamic |
SYSLIBS =-lm -ldl -rdynamic |
51 |
LD =g++ |
LD =g++ |
52 |
CXXFLAGS= -O3 -Wall -fPIC ${ROOTCFLAGS} ${PAM_BIT} |
CXXFLAGS= -O3 -Wall -fPIC ${ROOTCFLAGS} ${PAM_BIT} |
53 |
#CXXFLAGS= -g -Wall -O ${ROOTCFLAGS} ${PAM_BIT} |
#CXXFLAGS= -g -Wall -O ${ROOTCFLAGS} ${PAM_BIT} |
54 |
# flags needed on the pamelatov's: |
# flags needed on the pamelatov's: |
55 |
#LDFLAGS = $(PAM_BIT) |
|
56 |
LDFLAGS = -lmathlib -lpacklib -lkernlib -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib $(PAM_BIT) |
#LDFLAGS = $(PAM_BIT) -g -lmathlib -lpacklib -lkernlib -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib |
57 |
|
#LDFLAGS = -g -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib |
58 |
|
LDFLAGS = $(PAM_BIT) $(CERNLIBS) |
59 |
|
#LDFLAGS = -lmathlib -lpacklib -lkernlib -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib $(PAM_BIT) |
60 |
|
|
61 |
#LDFLAGS = -g -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib $(PAM_BIT) |
#LDFLAGS = -g -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib $(PAM_BIT) |
62 |
|
|
63 |
CXXSRCS= Digitizer.cxx DigitizeRunHeader.cxx DigitizeCalo.cxx DigitizeTOF.cxx DigitizeAC.cxx DigitizeS4.cxx DigitizeND.cxx Write.cxx DigitizeTRK.cxx Pamelagp2Digits.cxx DigitVersion.cxx |
CXXSRCS= Digitizer.cxx DigitizeRunHeader.cxx DigitizeCalo.cxx DigitizeTOF.cxx DigitizeAC.cxx DigitizeS4.cxx DigitizeND.cxx Write.cxx DigitizeTRK.cxx Pamelagp2Digits.cxx DigitVersion.cxx |
93 |
@rm -f *.o |
@rm -f *.o |
94 |
|
|
95 |
Digitizer: Digitizer.o ${OBJS} ${DICO} |
Digitizer: Digitizer.o ${OBJS} ${DICO} |
96 |
$(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS} |
$(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS} |
97 |
|
|
98 |
depend: ${DEPS} |
depend: ${DEPS} |
99 |
|
|
135 |
@echo " Removing Pamelagp2Digits ....." |
@echo " Removing Pamelagp2Digits ....." |
136 |
@rm -f ${JUNK} |
@rm -f ${JUNK} |
137 |
@rm -f Pamelagp2Digits; ${RESET} |
@rm -f Pamelagp2Digits; ${RESET} |
138 |
|
@touch DigitVersion.cxx |
139 |
|
|
140 |
install: |
install: |
141 |
# @echo "TEST: copying the executable in the PAM_BIN directory"; |
# @echo "TEST: copying the executable in the PAM_BIN directory"; |