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

Contents of /chewbacca/event/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Sep 25 09:03:21 2008 UTC (16 years, 2 months ago) by mocchiut
Branch: MAIN
Changes since 1.9: +3 -11 lines
More Makefiles tuning + new variables in GL_RUN*

1 #*****************************************************************************
2 #
3 # FILE NAME: $Id: Makefile,v 1.9 2008/09/24 08:47:56 mocchiut Exp $
4 # 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 $(PAM_BIT) -o $@ \
100 -shared \
101 -Wl,-soname \
102 -Wl,libyoda.so.0 \
103 -Wl,--whole-archive \
104 $^ \
105 -Wl,--no-whole-archive
106
107 libyoda.a: $(TARGETLIB) $(EXTLIB)
108 cd $(OBJDIR) ; \
109 pwd ;\
110 for sub_lib in $(TARGETLIB) $(EXTLIB) ; do \
111 $(AR) -x $$sub_lib ; \
112 done ;\
113 $(AR) -scrv libyoda.a *.o
114
115 $(TARGETLIB) : ${OBJS}
116 $(AR) -scrv $@ $?
117
118 $(EXTLIB): $(EXTDIR)
119 for sub_dir in $(EXTDIR) ; do \
120 $(MAKE) -C $$sub_dir libs ; \
121 done
122
123 SUBPACKET_HEADER_FILES = \
124
125 INCLUDES = -I. -I$(ROOT_DIR)/include
126 DICT_HEADER_FILES = \
127 PamelaRun.h yodaversion.h RunInfoYoda.h \
128 SubPacket.h PacketType.h SubDetector.h \
129 DirectoryStructure.h Algorithm.h AlgorithmInfo.h \
130 EventHeader.h PscuHeader.h EventCounter.h \
131 endrun/PhysEndRunEvent.h \
132 endrun/CaloEndRun.h \
133 endrun/TBEndRun.h \
134 log/LogEvent.h log/LogRecord.h \
135 varDump/VarDumpEvent.h varDump/VarDumpRecord.h \
136 arrDump/ArrDumpEvent.h arrDump/ArrDumpRecord.h \
137 tabDump/TabDumpEvent.h tabDump/TabDumpRecord.h \
138 tmtc/TmtcEvent.h tmtc/TmtcRecord.h \
139 mcmd/McmdEvent.h mcmd/McmdRecord.h \
140 physics/neutronDetector/NeutronEvent.h \
141 physics/neutronDetector/NeutronRecord.h \
142 physics/anticounter/AnticounterEvent.h \
143 physics/calorimeter/CalorimeterEvent.h \
144 physics/S4/S4Event.h \
145 physics/tof/TofEvent.h \
146 physics/tracker/TrackerEvent.h \
147 physics/trigger/TriggerEvent.h \
148 tsbt/TsbTEvent.h tsbt/TsbTRecord.h \
149 tsbb/TsbBEvent.h tsbb/TsbBRecord.h \
150 PscuEvent.h \
151 CalibCalPulse1Event.h \
152 CalibCalPulse2Event.h \
153 CalibTrkBothEvent.h \
154 CalibTrk1Event.h \
155 CalibTrk2Event.h \
156 CalibTofEvent.h \
157 CalibS4Event.h \
158 CalibCalPedEvent.h \
159 Calib1_Ac1Event.h \
160 Calib2_Ac1Event.h \
161 Calib1_Ac2Event.h \
162 Calib2_Ac2Event.h \
163 CalibCalEvent.h \
164 RunHeaderEvent.h \
165 RunTrailerEvent.h \
166 CalibHeaderEvent.h \
167 CalibTrailerEvent.h \
168 InitHeaderEvent.h \
169 InitTrailerEvent.h \
170 EventTrkEvent.h \
171 ForcedFECmdEvent.h \
172 Ac1InitEvent.h \
173 CalInitEvent.h \
174 TrkInitEvent.h \
175 TofInitEvent.h \
176 TrgInitEvent.h \
177 NdInitEvent.h \
178 S4InitEvent.h \
179 Ac2InitEvent.h \
180 CalAlarmEvent.h \
181 Ac1AlarmEvent.h \
182 TrkAlarmEvent.h \
183 TrgAlarmEvent.h \
184 TofAlarmEvent.h \
185 S4AlarmEvent.h \
186 Ac2AlarmEvent.h \
187 CRC.h \
188 Exception.h \
189 LinkDef.h
190
191 $(ROOTEVENTDICT).cpp: ${DICT_HEADER_FILES}
192 echo $(ROOTCINT) -f $@ -c ${INCLUDES} $^ ;\
193 LD_LIBRARY_PATH=$(ROOT_LIB) $(ROOTCINT) -f $@ -c ${INCLUDES} $^
194
195 clean: clean-subdir
196 rm -f $(TARGETLIB) ${OBJS} $(OBJDIR)/.*.d libyoda*
197
198 clean-subdir: $(EXTDIR)
199 for sub_dir in $(EXTDIR) ; do \
200 $(MAKE) -C $$sub_dir clean ; \
201 done
202
203 distclean: distclean-sub distclean-subdir clean
204 rm -f $(ROOTEVENTDICT).{cpp,h}
205
206 distclean-subdir:
207 for sub_dir in $(EXTDIR) ; do \
208 $(MAKE) -C $$sub_dir distclean-sub ; \
209 done
210
211
212 -include $(DEPEND)
213
214
215 #------------------------------------------------------------------------------
216 include $(BASEDIR)/event/Make.def.post
217 #------------------------------------------------------------------------------

  ViewVC Help
Powered by ViewVC 1.1.23