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

Annotation of /chewbacca/PamOffLineSW/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Fri Apr 10 15:01:45 2009 UTC (15 years, 7 months ago) by pam-fi
Branch: MAIN
Changes since 1.5: +3 -1 lines
Fixed a bug which triggered dependencies computation when making distclean (Nicola)

1 mocchiut 1.1 #*****************************************************************************
2     #
3 pam-fi 1.6 # FILE NAME: $Id: Makefile,v 1.5 2008-11-04 09:44:29 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 pam-fi 1.6 ifneq ($(MAKECMDGOALS),distclean)
19 mocchiut 1.1 include $(BASEDIR)/PamOffLineSW/Make.def
20 pam-fi 1.6 endif
21 mocchiut 1.1 #------------------------------------------------------------------------------
22    
23    
24     #CFLAGS += -I $(PAMOFF_DIR) -I $(TECH_DIR_INC) -I $(ROOT_DIR_INC) -I $(BASEDIR) -I $(EVENT_DIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DPIC
25     CFLAGS += -I $(BASEDIR) -I $(EVENT_DIR) -I $(TECH_DIR) -I $(PAMOFF_DIR) -I $(ROOT_DIR_INC) -fPIC -DPIC
26    
27     CXXSRCS = \
28     PamOffLineSW_Main.cpp \
29     StateManager.cpp \
30     R0_Init_State.cpp \
31     R1_FA_State.cpp \
32     R2_FAFE_State.cpp \
33     R3_FAFEDE_State.cpp \
34     R4_HEADER_State.cpp \
35     CRC16.cpp \
36     PacketSemanticAnalyzer.cpp \
37     PacketUser.cpp \
38     Logger.cpp
39    
40    
41     #------------------------------------------------------------------------------
42    
43     TARGETLIB = $(PAMOFF_A)
44    
45     #------------------------------------------------------------------------------
46     EXECUTABLES=chewbacca
47     #EXECUTABLES=PamOffLineSW
48    
49     all: $(EXECUTABLES)
50    
51     $(EXECUTABLES): $(TARGETLIB) $(EXTLIB)
52 mocchiut 1.4 $(CXX) $(PAM_BIT) -o $@ -L ../event -lyoda -lg2c `root-config --libs` -lRMySQL $^
53 mocchiut 1.1
54     $(EXTLIB): $(EXTDIR)
55     for sub_dir in $(EXTDIR) ; do \
56     $(MAKE) -C $$sub_dir libs ; \
57     done
58    
59     libs: $(TARGETLIB)
60    
61     $(TARGETLIB) : ${OBJS}
62     $(AR) -scrv $@ ${OBJS}
63    
64     SUBPACKET_HEADER_FILES = \
65    
66     INCLUDES = -I. -I$(ROOT_DIR)/include
67     DICT_HEADER_FILES = \
68     PamelaRun.h yodaversion.h RunInfoYoda.h \
69     SubPacket.h PacketType.h SubDetector.h \
70     DirectoryStructure.h Algorithm.h AlgorithmInfo.h \
71     EventHeader.h PscuHeader.h EventCounter.h \
72     endrun/PhysEndRunEvent.h \
73     endrun/CaloEndRun.h \
74     endrun/TBEndRun.h \
75     log/LogEvent.h log/LogRecord.h \
76     varDump/VarDumpEvent.h varDump/VarDumpRecord.h \
77     arrDump/ArrDumpEvent.h arrDump/ArrDumpRecord.h \
78     tabDump/TabDumpEvent.h tabDump/TabDumpRecord.h \
79     tmtc/TmtcEvent.h tmtc/TmtcRecord.h \
80     mcmd/McmdEvent.h mcmd/McmdRecord.h \
81     physics/neutronDetector/NeutronEvent.h \
82     physics/neutronDetector/NeutronRecord.h \
83     physics/anticounter/AnticounterEvent.h \
84     physics/calorimeter/CalorimeterEvent.h \
85     physics/S4/S4Event.h \
86     physics/tof/TofEvent.h \
87     physics/tracker/TrackerEvent.h \
88     physics/trigger/TriggerEvent.h \
89     tsbt/TsbTEvent.h tsbt/TsbTRecord.h \
90     tsbb/TsbBEvent.h tsbb/TsbBRecord.h \
91     PscuEvent.h \
92     CalibCalPulse1Event.h \
93     CalibCalPulse2Event.h \
94     CalibTrkBothEvent.h \
95     CalibTrk1Event.h \
96     CalibTrk2Event.h \
97     CalibTofEvent.h \
98     CalibS4Event.h \
99     CalibCalPedEvent.h \
100     Calib1_Ac1Event.h \
101     Calib2_Ac1Event.h \
102     Calib1_Ac2Event.h \
103     Calib2_Ac2Event.h \
104     CalibCalEvent.h \
105     RunHeaderEvent.h \
106     RunTrailerEvent.h \
107     CalibHeaderEvent.h \
108     CalibTrailerEvent.h \
109     InitHeaderEvent.h \
110     InitTrailerEvent.h \
111     EventTrkEvent.h \
112     ForcedFECmdEvent.h \
113     Ac1InitEvent.h \
114     CalInitEvent.h \
115     TrkInitEvent.h \
116     TofInitEvent.h \
117     TrgInitEvent.h \
118     NdInitEvent.h \
119     S4InitEvent.h \
120     Ac2InitEvent.h \
121     CalAlarmEvent.h \
122     Ac1AlarmEvent.h \
123     TrkAlarmEvent.h \
124     TrgAlarmEvent.h \
125     TofAlarmEvent.h \
126     S4AlarmEvent.h \
127     Ac2AlarmEvent.h \
128     CRC.h \
129     Exception.h \
130     LinkDef.h
131    
132     $(ROOTEVENTDICT).cpp: ${DICT_HEADER_FILES}
133     echo $(ROOTCINT) -f $@ -c ${INCLUDES} $^ ;\
134 mocchiut 1.5 LD_LIBRARY_PATH=$(ROOT_LIB):$(LD_LIBRARY_PATH); $(ROOTCINT) -f $@ -c ${INCLUDES} $^
135 mocchiut 1.1
136     clean: clean-subdir
137     rm -f $(TARGETLIB) ${OBJS} $(OBJDIR)/.*.d $(EXECUTABLES)
138    
139     clean-subdir: $(EXTDIR)
140     for sub_dir in $(EXTDIR) ; do \
141     $(MAKE) -C $$sub_dir clean ; \
142     done
143    
144     distclean: distclean-sub distclean-subdir clean
145     rm -f $(ROOTEVENTDICT).{cpp,h}
146    
147     distclean-subdir:
148     for sub_dir in $(EXTDIR) ; do \
149     $(MAKE) -C $$sub_dir distclean-sub ; \
150     done
151    
152     -include $(DEPEND)
153    
154    
155     #------------------------------------------------------------------------------
156     include $(BASEDIR)/PamOffLineSW/Make.def.post
157     #------------------------------------------------------------------------------

  ViewVC Help
Powered by ViewVC 1.1.23