/[PAMELA software]/chewbacca/event/Makefile
ViewVC logotype

Annotation of /chewbacca/event/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations) (download)
Wed Sep 24 08:47:56 2008 UTC (16 years, 2 months ago) by mocchiut
Branch: MAIN
Changes since 1.8: +9 -5 lines
Calorimeter PhysEndRun updated + broken compilation fixed

1 mocchiut 1.1 #*****************************************************************************
2     #
3 mocchiut 1.9 # FILE NAME: $Id: Makefile,v 1.8 2008/09/23 15:43:25 mocchiut Exp $
4 mocchiut 1.1 # VERSION:
5     # AUTHOR: Nergal S.r.l.
6     # DATE:
7     #
8     # DESCRIPTION: base Makefile
9     #
10     # REVISION HISTORY:
11     #
12     # Version Date Author Change Description
13     #
14     #*****************************************************************************/
15    
16    
17     #------------------------------------------------------------------------------
18     include $(BASEDIR)/event/Make.def
19     #------------------------------------------------------------------------------
20    
21     CFLAGS += -I $(EVNT_DIR_INC) -I $(ROOT_DIR_INC) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DPIC
22    
23     ROOTEVENTDICT = EventDict
24    
25     CXXSRCS = NullAlgorithm.cpp \
26     yodaversion.cpp \
27     PamelaRun.cpp \
28     RunInfoYoda.cpp \
29     $(ROOTEVENTDICT).cpp \
30     SubPacket.cpp \
31     PacketType.cpp \
32     SubDetector.cpp \
33     Algorithm.cpp \
34     AlgorithmInfo.cpp \
35     EventHeader.cpp \
36     PscuHeader.cpp \
37     EventCounter.cpp \
38     PscuEvent.cpp \
39     CalibCalPulse1Event.cpp \
40     CalibCalPulse2Event.cpp \
41     CalibTrkBothEvent.cpp \
42     CalibTrk1Event.cpp \
43     CalibTrk2Event.cpp \
44     CalibTofEvent.cpp \
45     CalibS4Event.cpp \
46     CalibCalPedEvent.cpp \
47     Calib1_Ac1Event.cpp \
48     Calib1_Ac2Event.cpp \
49     Calib2_Ac1Event.cpp \
50     Calib2_Ac2Event.cpp \
51     CalibCalEvent.cpp \
52     RunHeaderEvent.cpp \
53     RunTrailerEvent.cpp \
54     CalibHeaderEvent.cpp \
55     CalibTrailerEvent.cpp \
56     InitHeaderEvent.cpp \
57     InitTrailerEvent.cpp \
58     EventTrkEvent.cpp \
59     ForcedFECmdEvent.cpp \
60     Ac1InitEvent.cpp \
61     CalInitEvent.cpp \
62     TrkInitEvent.cpp \
63     TofInitEvent.cpp \
64     TrgInitEvent.cpp \
65     NdInitEvent.cpp \
66     S4InitEvent.cpp \
67     Ac2InitEvent.cpp \
68     CalAlarmEvent.cpp \
69     Ac1AlarmEvent.cpp \
70     TrkAlarmEvent.cpp \
71     TrgAlarmEvent.cpp \
72     TofAlarmEvent.cpp \
73     S4AlarmEvent.cpp \
74     Ac2AlarmEvent.cpp \
75    
76     CSRCS= CRC.c \
77     DirectoryStructure.c
78    
79    
80     #------------------------------------------------------------------------------
81    
82     TARGETLIB = $(EVNT_A)
83    
84     #------------------------------------------------------------------------------
85    
86    
87     all: dynamic static
88    
89    
90     dynamic: libyoda.so.0.0.0
91     ln -sf libyoda.so.0.0.0 libyoda.so.0 ;\
92     ln -sf libyoda.so.0.0.0 libyoda.so
93    
94    
95     static: libyoda.a
96    
97     libyoda.so.0.0.0: $(TARGETLIB) $(EXTLIB)
98     $(CXX) \
99 mocchiut 1.2 $(PAM_BIT) -o $@ \
100 mocchiut 1.1 -shared -nostdlib \
101     -Wl,-soname \
102     -Wl,libyoda.so.0 \
103 mocchiut 1.9 /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crti.o \
104 mocchiut 1.8 /usr/lib/gcc/i386-redhat-linux/3.4.6/crtbeginS.o \
105     /usr/lib/gcc/i386-redhat-linux/3.4.6/crtendS.o \
106 mocchiut 1.9 /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crtn.o \
107     -Wl,--whole-archive \
108     $^ \
109     -Wl,--no-whole-archive
110 mocchiut 1.1
111     libyoda.a: $(TARGETLIB) $(EXTLIB)
112     cd $(OBJDIR) ; \
113     pwd ;\
114     for sub_lib in $(TARGETLIB) $(EXTLIB) ; do \
115     $(AR) -x $$sub_lib ; \
116     done ;\
117 mocchiut 1.6 $(AR) -scrv libyoda.a *.o \
118 mocchiut 1.9 /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crti.o \
119 mocchiut 1.8 /usr/lib/gcc/i386-redhat-linux/3.4.6/crtbeginS.o \
120 mocchiut 1.9 /usr/lib/gcc/i386-redhat-linux/3.4.6/crtendS.o \
121     /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crtn.o
122 mocchiut 1.1
123     $(TARGETLIB) : ${OBJS}
124     $(AR) -scrv $@ $?
125    
126     $(EXTLIB): $(EXTDIR)
127     for sub_dir in $(EXTDIR) ; do \
128     $(MAKE) -C $$sub_dir libs ; \
129     done
130    
131     SUBPACKET_HEADER_FILES = \
132    
133     INCLUDES = -I. -I$(ROOT_DIR)/include
134     DICT_HEADER_FILES = \
135     PamelaRun.h yodaversion.h RunInfoYoda.h \
136     SubPacket.h PacketType.h SubDetector.h \
137     DirectoryStructure.h Algorithm.h AlgorithmInfo.h \
138     EventHeader.h PscuHeader.h EventCounter.h \
139     endrun/PhysEndRunEvent.h \
140     endrun/CaloEndRun.h \
141     endrun/TBEndRun.h \
142     log/LogEvent.h log/LogRecord.h \
143     varDump/VarDumpEvent.h varDump/VarDumpRecord.h \
144     arrDump/ArrDumpEvent.h arrDump/ArrDumpRecord.h \
145     tabDump/TabDumpEvent.h tabDump/TabDumpRecord.h \
146     tmtc/TmtcEvent.h tmtc/TmtcRecord.h \
147     mcmd/McmdEvent.h mcmd/McmdRecord.h \
148     physics/neutronDetector/NeutronEvent.h \
149     physics/neutronDetector/NeutronRecord.h \
150     physics/anticounter/AnticounterEvent.h \
151     physics/calorimeter/CalorimeterEvent.h \
152     physics/S4/S4Event.h \
153     physics/tof/TofEvent.h \
154     physics/tracker/TrackerEvent.h \
155     physics/trigger/TriggerEvent.h \
156     tsbt/TsbTEvent.h tsbt/TsbTRecord.h \
157     tsbb/TsbBEvent.h tsbb/TsbBRecord.h \
158     PscuEvent.h \
159     CalibCalPulse1Event.h \
160     CalibCalPulse2Event.h \
161     CalibTrkBothEvent.h \
162     CalibTrk1Event.h \
163     CalibTrk2Event.h \
164     CalibTofEvent.h \
165     CalibS4Event.h \
166     CalibCalPedEvent.h \
167     Calib1_Ac1Event.h \
168     Calib2_Ac1Event.h \
169     Calib1_Ac2Event.h \
170     Calib2_Ac2Event.h \
171     CalibCalEvent.h \
172     RunHeaderEvent.h \
173     RunTrailerEvent.h \
174     CalibHeaderEvent.h \
175     CalibTrailerEvent.h \
176     InitHeaderEvent.h \
177     InitTrailerEvent.h \
178     EventTrkEvent.h \
179     ForcedFECmdEvent.h \
180     Ac1InitEvent.h \
181     CalInitEvent.h \
182     TrkInitEvent.h \
183     TofInitEvent.h \
184     TrgInitEvent.h \
185     NdInitEvent.h \
186     S4InitEvent.h \
187     Ac2InitEvent.h \
188     CalAlarmEvent.h \
189     Ac1AlarmEvent.h \
190     TrkAlarmEvent.h \
191     TrgAlarmEvent.h \
192     TofAlarmEvent.h \
193     S4AlarmEvent.h \
194     Ac2AlarmEvent.h \
195     CRC.h \
196     Exception.h \
197     LinkDef.h
198    
199     $(ROOTEVENTDICT).cpp: ${DICT_HEADER_FILES}
200     echo $(ROOTCINT) -f $@ -c ${INCLUDES} $^ ;\
201     LD_LIBRARY_PATH=$(ROOT_LIB) $(ROOTCINT) -f $@ -c ${INCLUDES} $^
202    
203     clean: clean-subdir
204     rm -f $(TARGETLIB) ${OBJS} $(OBJDIR)/.*.d libyoda*
205    
206     clean-subdir: $(EXTDIR)
207     for sub_dir in $(EXTDIR) ; do \
208     $(MAKE) -C $$sub_dir clean ; \
209     done
210    
211     distclean: distclean-sub distclean-subdir clean
212     rm -f $(ROOTEVENTDICT).{cpp,h}
213    
214     distclean-subdir:
215     for sub_dir in $(EXTDIR) ; do \
216     $(MAKE) -C $$sub_dir distclean-sub ; \
217     done
218    
219    
220     -include $(DEPEND)
221    
222    
223     #------------------------------------------------------------------------------
224     include $(BASEDIR)/event/Make.def.post
225     #------------------------------------------------------------------------------

  ViewVC Help
Powered by ViewVC 1.1.23