PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/examples/Makefile

https://bitbucket.org/muegamma/rome3
Makefile | 340 lines | 256 code | 81 blank | 3 comment | 1 complexity | 02a057d2403e3d2c9d201f1e74f9a44e MD5 | raw file
  1. -include ../Makefile.arch
  2. RESTRICT_TEST = yes
  3. MEMORY_TEST = no
  4. # parallel job option
  5. #JOBSFLAG = -j2
  6. ifeq ($(MEMORY_TEST), yes)
  7. VALGRIND ?= valgrind --suppressions=${ROOTSYS}/etc/valgrind-root.supp --tool=memcheck --leak-check=yes
  8. else
  9. VALGRIND =
  10. endif
  11. ifeq ($(RESTRICT_TEST), yes)
  12. OPT = -Wall -W -Werror -Wno-format-security
  13. endif
  14. export DOOPT =$(OPT)
  15. export FLOPT =$(OPT)
  16. export FOOPT =$(OPT)
  17. export HGOPT =$(OPT)
  18. export HGUIOPT =$(OPT)
  19. export HWOPT =$(OPT)
  20. export MCROPT =$(OPT)
  21. export MROPT =$(OPT)
  22. export MIDOPT =$(OPT)
  23. export NFOPT =$(OPT)
  24. export PMOPT =$(OPT)
  25. export RDAQOPT =$(OPT)
  26. export RDBOPT =$(OPT)
  27. export RUNHOPT =$(OPT)
  28. export SBOPT =$(OPT)
  29. export SBSOPT =$(OPT)
  30. export SBSHOPT =$(OPT)
  31. export SDAQOPT =$(OPT)
  32. export SMDOPT =$(OPT)
  33. export TBOPT =$(OPT)
  34. export THOPT =$(OPT)
  35. export THHOPT =$(OPT)
  36. export TMOPT =$(OPT)
  37. export TTOPT =$(OPT)
  38. export TWROPT =$(OPT)
  39. export TWR2OPT =$(OPT)
  40. export TWR3OPT =$(OPT)
  41. export TCUTGOPT =$(OPT)
  42. export BFOPT =$(OPT)
  43. export MSGOPT =$(OPT)
  44. export DOCOPT =$(OPT)
  45. export REFOPT =$(OPT)
  46. ROMEProjects = multirun/mranalyzer.exe \
  47. dbexample/rdbframework.exe \
  48. taskhierarchy/thexample.exe \
  49. netfolder/nfexample.exe \
  50. stepbystep/sbsanalyzer.exe \
  51. tree_write_read/twrsample.exe \
  52. tree_write_read2/twr2sample.exe \
  53. tree_write_read3/twr3sample.exe \
  54. stepbystephisto/sbshanalyzer.exe \
  55. histoGUI/hguiexample.exe \
  56. stepbystepdbdaq/sdaqanalyzer.exe \
  57. stepbystepmydaq/smdanalyzer.exe \
  58. runheader/runhanalyzer.exe \
  59. rootDAQ/rdaqanalyzer.exe \
  60. displayobjects/doexample.exe \
  61. taskhierarchyandhistos/thhexample.exe \
  62. taskhierarchydependence/thexample.exe \
  63. macros/mcranalyzer.exe \
  64. cutg/tcutgexample.exe \
  65. basefolder/bfsample.exe \
  66. message/msganalyzer.exe \
  67. document/docanalyzer.exe \
  68. reference/refanalyzer.exe
  69. ARGUSProjects = argus/file/flmonitor.exe \
  70. argus/timer/ttmonitor.exe \
  71. argus/processMessage/pmmonitor.exe \
  72. argus/menu/tmmonitor.exe \
  73. argus/thread/ttmonitor.exe \
  74. argus/tabs/tbmonitor.exe \
  75. argus/helloWorld/hwmonitor.exe \
  76. argus/histogram/romeproject/hgframework.exe \
  77. argus/histogram/hgmonitor.exe
  78. ifdef MIDASSYS
  79. ROMEProjects += midas/midanalyzer.exe
  80. ARGUSProjects += argus/folders/romeproject/foframework.exe \
  81. argus/folders/fomonitor.exe
  82. endif
  83. all: rome argus dbwrapper
  84. rome: $(ROMEProjects)
  85. argus: $(ARGUSProjects)
  86. dbwrapper :
  87. make -C romedbwrapper
  88. multirun/mranalyzer.exe :
  89. $(ROMESYS)/bin/romebuilder.exe -i multirun/multirun.xml -o multirun -nl -pch;
  90. make $(JOBSFLAG) -C multirun/
  91. dbexample/rdbframework.exe :
  92. $(ROMESYS)/bin/romebuilder.exe -i dbexample/RDBframework.xml -o dbexample -nl -pch -mysql -sqlite3;
  93. make $(JOBSFLAG) -C dbexample/
  94. taskhierarchy/thexample.exe :
  95. $(ROMESYS)/bin/romebuilder.exe -i taskhierarchy/taskhierarchy.xml -o taskhierarchy -nl -pch;
  96. make $(JOBSFLAG) -C taskhierarchy/
  97. taskhierarchydependence/thexample.exe :
  98. $(ROMESYS)/bin/romebuilder.exe -i taskhierarchydependence/taskhierarchy.xml -o taskhierarchydependence -nl -pch;
  99. make $(JOBSFLAG) -C taskhierarchydependence/
  100. netfolder/nfexample.exe :
  101. $(ROMESYS)/bin/romebuilder.exe -i netfolder/netfolder.xml -o netfolder -nl -pch;
  102. make $(JOBSFLAG) -C netfolder/
  103. stepbystep/sbsanalyzer.exe :
  104. $(ROMESYS)/bin/romebuilder.exe -i stepbystep/stepbystep.xml -o stepbystep -nl -pch;
  105. make $(JOBSFLAG) -C stepbystep/
  106. tree_write_read/twrsample.exe :
  107. $(ROMESYS)/bin/romebuilder.exe -i tree_write_read/tree_write_read.xml -o tree_write_read -nl -pch;
  108. make $(JOBSFLAG) -C tree_write_read/
  109. tree_write_read2/twr2sample.exe :
  110. $(ROMESYS)/bin/romebuilder.exe -i tree_write_read2/tree_write_read2.xml -o tree_write_read2 -nl -pch;
  111. make $(JOBSFLAG) -C tree_write_read2/
  112. tree_write_read3/twr3sample.exe :
  113. $(ROMESYS)/bin/romebuilder.exe -i tree_write_read3/tree_write_read3.xml -o tree_write_read3 -nl -pch;
  114. make $(JOBSFLAG) -C tree_write_read3/
  115. stepbystephisto/sbshanalyzer.exe :
  116. $(ROMESYS)/bin/romebuilder.exe -i stepbystephisto/stepbystephisto.xml -o stepbystephisto -nl -pch;
  117. make $(JOBSFLAG) -C stepbystephisto/
  118. histoGUI/hguiexample.exe :
  119. $(ROMESYS)/bin/romebuilder.exe -i histoGUI/histoGUI.xml -o histoGUI -nl -pch;
  120. make $(JOBSFLAG) -C histoGUI/
  121. stepbystepdbdaq/sdaqanalyzer.exe :
  122. $(ROMESYS)/bin/romebuilder.exe -i stepbystepdbdaq/stepbystepdbdaq.xml -o stepbystepdbdaq -nl -pch;
  123. make $(JOBSFLAG) -C stepbystepdbdaq/
  124. stepbystepmydaq/smdanalyzer.exe :
  125. $(ROMESYS)/bin/romebuilder.exe -i stepbystepmydaq/stepbystepmydaq.xml -o stepbystepmydaq -nl -pch;
  126. make $(JOBSFLAG) -C stepbystepmydaq/
  127. runheader/runhanalyzer.exe :
  128. $(ROMESYS)/bin/romebuilder.exe -i runheader/runheader.xml -o runheader -nl -pch;
  129. make $(JOBSFLAG) -C runheader/
  130. rootDAQ/rdaqanalyzer.exe :
  131. $(ROMESYS)/bin/romebuilder.exe -i rootDAQ/rootDAQ.xml -o rootDAQ -nl -pch;
  132. make $(JOBSFLAG) -C rootDAQ/
  133. midas/midanalyzer.exe:
  134. $(ROMESYS)/bin/romebuilder.exe -i midas/midas.xml -o midas -nl -pch -midas;
  135. make $(JOBSFLAG) -C midas/
  136. taskhierarchyandhistos/thhexample.exe:
  137. $(ROMESYS)/bin/romebuilder.exe -i taskhierarchyandhistos/taskhierarchyandhistos.xml -o taskhierarchyandhistos -nl -pch;
  138. make $(JOBSFLAG) -C taskhierarchyandhistos/
  139. displayobjects/doexample.exe:
  140. $(ROMESYS)/bin/romebuilder.exe -i displayobjects/displayObjects.xml -o displayobjects -nl -pch;
  141. make $(JOBSFLAG) -C displayobjects/
  142. macros/mcranalyzer.exe:
  143. $(ROMESYS)/bin/romebuilder.exe -i macros/macros.xml -o macros -nl -pch;
  144. make $(JOBSFLAG) -C macros/
  145. cutg/tcutgexample.exe:
  146. $(ROMESYS)/bin/romebuilder.exe -i cutg/cutg.xml -o cutg -nl -pch;
  147. make $(JOBSFLAG) -C cutg/
  148. basefolder/bfsample.exe:
  149. $(ROMESYS)/bin/romebuilder.exe -i basefolder/basefolder.xml -o basefolder -nl -pch;
  150. make $(JOBSFLAG) -C basefolder/
  151. message/msganalyzer.exe:
  152. $(ROMESYS)/bin/romebuilder.exe -i message/message.xml -o message -nl -pch;
  153. make $(JOBSFLAG) -C message/
  154. document/docanalyzer.exe:
  155. $(ROMESYS)/bin/romebuilder.exe -i document/document.xml -o document -nl -pch;
  156. make $(JOBSFLAG) -C document/
  157. reference/refanalyzer.exe:
  158. $(ROMESYS)/bin/romebuilder.exe -i reference/reference.xml -o reference -nl -pch;
  159. make $(JOBSFLAG) -C reference/
  160. argus/file/flmonitor.exe :
  161. $(ROMESYS)/bin/romebuilder.exe -i argus/file/file.xml -o argus/file -nl -pch
  162. make $(JOBSFLAG) -C argus/file/
  163. argus/timer/ttmonitor.exe :
  164. $(ROMESYS)/bin/romebuilder.exe -i argus/timer/timer.xml -o argus/timer -nl -pch
  165. make $(JOBSFLAG) -C argus/timer/
  166. argus/processMessage/pmmonitor.exe :
  167. $(ROMESYS)/bin/romebuilder.exe -i argus/processMessage/processMessage.xml -o argus/processMessage -nl -pch
  168. make $(JOBSFLAG) -C argus/processMessage/
  169. argus/menu/tmmonitor.exe :
  170. $(ROMESYS)/bin/romebuilder.exe -i argus/menu/menu.xml -o argus/menu -nl -pch
  171. make $(JOBSFLAG) -C argus/menu/
  172. argus/thread/ttmonitor.exe :
  173. $(ROMESYS)/bin/romebuilder.exe -i argus/thread/thread.xml -o argus/thread -nl -pch
  174. make $(JOBSFLAG) -C argus/thread/
  175. argus/tabs/tbmonitor.exe :
  176. $(ROMESYS)/bin/romebuilder.exe -i argus/tabs/tabs.xml -o argus/tabs -nl -pch
  177. make $(JOBSFLAG) -C argus/tabs/
  178. argus/helloWorld/hwmonitor.exe :
  179. $(ROMESYS)/bin/romebuilder.exe -i argus/helloWorld/HelloWorld.xml -o argus/helloWorld -nl -pch
  180. make $(JOBSFLAG) -C argus/helloWorld/
  181. argus/histogram/romeproject/hgframework.exe :
  182. $(ROMESYS)/bin/romebuilder.exe -i argus/histogram/romeproject/histogram.xml -o argus/histogram/romeproject -nl -pch
  183. make $(JOBSFLAG) -C argus/histogram/romeproject/
  184. argus/histogram/hgmonitor.exe : argus/histogram/romeproject/hgframework.exe
  185. $(ROMESYS)/bin/romebuilder.exe -i argus/histogram/histogram.xml -o argus/histogram -nl -pch
  186. make $(JOBSFLAG) -C argus/histogram/
  187. argus/folders/romeproject/foframework.exe :
  188. $(ROMESYS)/bin/romebuilder.exe -i argus/folders/romeproject/FOframework.xml -o argus/folders/romeproject -nl -pch -midas
  189. make $(JOBSFLAG) -C argus/folders/romeproject/
  190. argus/folders/fomonitor.exe : argus/folders/romeproject/foframework.exe
  191. $(ROMESYS)/bin/romebuilder.exe -i argus/folders/folders.xml -o argus/folders -nl -pch -midas
  192. make $(JOBSFLAG) -C argus/folders/
  193. check : remove $(ROMEProjects) $(ARGUSProjects) dbwrapper
  194. cd romedbwrapper; $(VALGRIND) ./test_c; $(VALGRIND) ./test_f
  195. cd multirun; $(VALGRIND) ./mranalyzer.exe -i romeConfig.xml -q -nc
  196. cd dbexample; \
  197. cp sqlDataBase/RDBDataBase.sqlite3 .; \
  198. $(VALGRIND) ./rdbframework.exe -i sqlite3Config.xml -q -r 1 -nc; \
  199. mv -f RDBDataBase.sqlite3 sqlDataBase/; \
  200. cd taskhierarchy; $(VALGRIND) ./thexample.exe -i romeConfig.xml -q -e 0-9999 -r 1 -nc
  201. cd netfolder; $(VALGRIND) ./nfexample.exe -i singleProcessConfig.xml -q -e 0-19 -nc
  202. cd stepbystep; $(VALGRIND) ./sbsanalyzer.exe -i romeConfig.xml -q -nc
  203. cd tree_write_read; $(VALGRIND) ./twrsample.exe -i writeTreeConfig.xml -q -nc
  204. cd tree_write_read; $(VALGRIND) ./twrsample.exe -i writeTreeWithFileName.xml -q -nc
  205. cd tree_write_read; $(VALGRIND) ./twrsample.exe -i readTreeConfig.xml -q -nc
  206. cd tree_write_read; $(VALGRIND) ./twrsample.exe -i readTreeWithFileName.xml -q -nc
  207. cd tree_write_read2; $(VALGRIND) ./twr2sample.exe -i writeTreeConfig.xml -q -e 0-9 -nc
  208. cd tree_write_read2; $(VALGRIND) ./twr2sample.exe -i readTreeConfig.xml -q -nc
  209. cd tree_write_read3; $(VALGRIND) ./twr3sample.exe -i writeTreeConfig.xml -q -e 0-9 -nc
  210. cd tree_write_read3; $(VALGRIND) ./twr3sample.exe -i readTreeConfig.xml -q -nc
  211. cd stepbystephisto; $(VALGRIND) ./sbshanalyzer.exe -i romeConfig.xml -q -e 0-99 -nc
  212. cd histoGUI; $(VALGRIND) ./hguiexample.exe -i romeConfig.xml -q -e 0-9 -nc
  213. cd histoGUI; $(VALGRIND) ./hguiexample.exe -i histoReadConfig.xml -q -e 0-9 -nc
  214. cd stepbystepdbdaq; $(VALGRIND) ./sdaqanalyzer.exe -i xmlConfig.xml -q -nc
  215. cd stepbystepmydaq; $(VALGRIND) ./smdanalyzer.exe -i romeConfig.xml -q -nc -e 0-99
  216. cd runheader; $(VALGRIND) ./runhanalyzer.exe -i writeConfig.xml -q -b -nc && \
  217. $(VALGRIND) ./runhanalyzer.exe -i readConfig.xml -q -nc
  218. cd rootDAQ; root -b -q treeCreationMakro.C+; $(VALGRIND) ./rdaqanalyzer.exe -i romeConfig.xml -q -nc
  219. cd midas; $(VALGRIND) ./midanalyzer.exe -i romeConfig.xml -q -m offline -nc -e 0-99
  220. cd taskhierarchyandhistos; $(VALGRIND) ./thhexample.exe -i romeConfig.xml -q -e 0-99 -r 1 -nc
  221. cd taskhierarchydependence; $(VALGRIND) ./thexample.exe -i romeConfig.xml -q -e 0-99 -r 1 -nc
  222. cd taskhierarchydependence; $(VALGRIND) ./thexample.exe -i romeConfig2nd.xml -q -r 1 -ng
  223. # cd displayobjects; ./doexample.exe -i romeConfig.xml -q -e 0-99 -r 1 -nc
  224. cd macros; $(VALGRIND) ./mcranalyzer.exe -i romeConfig.xml -q -nc
  225. cd cutg; $(VALGRIND) ./tcutgexample.exe -i romeConfig.xml -q -e 0-9 -nc
  226. cd basefolder; $(VALGRIND) ./bfsample.exe -i romeConfig.xml -q -nc
  227. cd message; $(VALGRIND) ./msganalyzer.exe -i romeConfig.xml -q -nc
  228. cd reference; $(VALGRIND) ./refanalyzer.exe -i writeConfig.xml -q -nc
  229. cd reference; $(VALGRIND) ./refanalyzer.exe -i readConfig.xml -q -nc
  230. cd argus/file; $(VALGRIND) ./flmonitor.exe -i romeConfig.xml -q -e 0-99 -nc
  231. cd argus/timer; $(VALGRIND) ./ttmonitor.exe -i romeConfig.xml -q -nc & \
  232. sleep 10; killall -9 ttmonitor.exe
  233. cd argus/processMessage; $(VALGRIND) ./pmmonitor.exe -i romeConfig.xml -q -nc & \
  234. sleep 10; killall -9 pmmonitor.exe
  235. cd argus/menu; $(VALGRIND) ./tmmonitor.exe -i romeConfig.xml -q -nc & \
  236. sleep 10; killall -9 tmmonitor.exe
  237. cd argus/thread; $(VALGRIND) ./ttmonitor.exe -i romeConfig.xml -q -nc & \
  238. sleep 10; killall -9 ttmonitor.exe
  239. cd argus/tabs; $(VALGRIND) ./tbmonitor.exe -i romeConfig.xml -q -nc & \
  240. sleep 10; killall -9 tbmonitor.exe
  241. cd argus/helloWorld; $(VALGRIND) ./hwmonitor.exe -i romeConfig.xml -q -nc & \
  242. sleep 10; killall -9 hwmonitor.exe
  243. cd argus/histogram/romeproject; $(VALGRIND) ./hgframework.exe -i romeConfig.xml -b & \
  244. cd ..; $(VALGRIND) ./hgmonitor.exe -i argusConfig.xml -q -p 3 -nc & sleep 10; killall -9 hgmonitor.exe; \
  245. killall -9 hgframework.exe
  246. cd argus/folders/romeproject; $(VALGRIND) ./foframework.exe -i romeConfig.xml -b -r 1 & \
  247. cd ..; $(VALGRIND) ./fomonitor.exe -i argusConfig.xml -q -p 3 -nc & sleep 10; killall -9 fomonitor.exe; \
  248. killall -9 foframework.exe
  249. clean :
  250. find $(ROMESYS)/examples -name "*.o" | xargs $(RM)
  251. find $(ROMESYS)/examples -name "*.so" | xargs $(RM)
  252. find $(ROMESYS)/examples -name "*.gch" | xargs $(RM)
  253. find $(ROMESYS)/examples -name "*Dict*.cpp" | xargs $(RM)
  254. find $(ROMESYS)/examples -name "*Dict*.h" | xargs $(RM)
  255. $(MAKE) -C romedbwrapper clean
  256. depclean :
  257. find $(ROMESYS)/examples -name "*.d" -exec $(RM) {} \;
  258. remove :
  259. $(RM) $(ROMEProjects) $(ARGUSProjects) romedbwrapper/test_c romedbwrapper/test_f