/[PAMELA software]/PamelaDigitizer/Makefile
ViewVC logotype

Contents of /PamelaDigitizer/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Sep 28 10:46:23 2007 UTC (17 years, 2 months ago) by orsi
Branch: MAIN
Changes since 1.1: +1 -3 lines
TOF TDC added; TRK improved; bug fixes

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 -lmathlib -lpacklib -lkernlib -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib
12
13 HEAS =$(SRCS:.cpp=.h)
14 OBJS =$(SRCS:.cpp=.o)
15 DEPS =$(SRCS:.cpp=.d)
16 CLAS =$(DICS:.cpp= )
17 CLASH=$(DICS:.cpp=.h)
18 JUNK =$(addsuffix ~,${SRCS}) $(addsuffix ~,${HEAS})
19 DICO =$(addsuffix Dict.o, ${CLAS})
20 DICH =$(addsuffix Dict.h, ${CLAS})
21
22 all: Pamelagp2Digits
23
24
25 Pamelagp2Digits: CRC.o calcrc.o Pamelagp2Digits.o Digitizer.o ${OBJS} ${DICO}
26 $(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS} ${PAM_LIB}/libGLTables.so ${PAM_LIB}/libsgp4.so ${PAM_YODA}/lib/libyoda.so
27
28 Digitizer: Digitizer.o ${OBJS} ${DICO}
29 $(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS}
30
31 depend: ${DEPS}
32
33 %.d: %.cpp
34 @echo Creating dependencies for $<
35 @$(CXX) -MM $(CXXFLAGS) $< -o $@
36
37
38
39 .SUFFIXES: .cxx
40 .cxx.o:
41 $(CXX) $(CXXFLAGS) -c $< `root-config --cflags` -I${PAM_YODA}/include/yoda/ -I${PAM_INC}/
42
43
44 .PHONY: clean
45
46 clean:
47 @echo Removing object files .....
48 @rm -f ${OBJS} ${DICO} *.o
49 @echo Removing dependencies files .....
50 @rm -f ${DEPS}
51 @echo Removing dictionary files .....
52 @rm -f ${JUNK} ${DICH}
53 @echo Removing temporary files .....
54 @rm -f ${JUNK}

  ViewVC Help
Powered by ViewVC 1.1.23