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

Contents of /chewbacca/event/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Sep 23 14:57:49 2008 UTC (16 years, 3 months ago) by mocchiut
Branch: MAIN
Changes since 1.5: +6 -3 lines
Agh broken compilation (seg fault) fixed

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

  ViewVC Help
Powered by ViewVC 1.1.23