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

Annotation of /chewbacca/event/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Tue Sep 23 15:22:21 2008 UTC (16 years, 2 months ago) by mocchiut
Branch: MAIN
Changes since 1.6: +1 -2 lines
???

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

  ViewVC Help
Powered by ViewVC 1.1.23