• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revisionf24463e10790f4309a898396dc17026a601604d0 (tree)
Time2014-10-22 10:29:32
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Add: TIPS of Debugger for SmallTools.(Open or Rebuild of Tools or Objects)
modified: Small Tools/Template/Makefile/Makefile
modified: Small Tools/mrcImage/Makefile
modified: Small Tools/mrcImage/mrcImageFourierNeighborCorrelation/Makefile/Makefile
new file: TIPS/Debugger/Makefile/Makefile-lib
modified: TIPS/Template/Makefile/Makefile

Change Summary

Incremental Difference

--- a/Small Tools/Template/Makefile/Makefile
+++ b/Small Tools/Template/Makefile/Makefile
@@ -4,6 +4,11 @@
44
55 #### Root Makefile ####
66 MAKE_ROOT=!!Command!!
7+TOOLS_CLASS=!!Class!!
8+TOOLS_COMMAND=$(MAKE_ROOT)
9+OBJECTS_GROUP=!!Group!!
10+OBJECTS_CLASS=!!Class!!
11+OBJECTS_COMMAND=l$(MAKE_ROOT)
712
813 #### Input extention ####
914 INI=ini
@@ -12,7 +17,9 @@ INI=ini
1217 # Defined at Sub
1318
1419 #### INCLUDE ####
20+# Help-include-file must always be put on top.
1521 -include ${EOS_HOME}/tutorial/TIPS/Help/Makefile/Makefile-lib
22+-include ${EOS_HOME}/tutorial/TIPS/Debugger/Makefile/Makefile-lib
1623 -include Makefile-lib
1724
1825 #### Definition ####
--- a/Small Tools/mrcImage/Makefile
+++ b/Small Tools/mrcImage/Makefile
@@ -6,6 +6,7 @@
66 MAKE_ROOT=makeTemplate
77
88 #### INCLUDE ####
9+# Help-include-file must always be put on top.
910 -include ${EOS_HOME}/tutorial/TIPS/Help/Makefile/Makefile-lib
1011
1112 #### Definition ####
@@ -25,12 +26,16 @@ SOURCE="../../../Template/Makefile/"
2526
2627 CreateInitialMakefileDirectory::
2728 @mkdir $$TARGET;
28- @cd ./$$TARGET; \
29+ @CLASS_NAME="mrcImage"; \
30+ GROUP_NAME="DataManip"; \
31+ cd ./$$TARGET; \
2932 mkdir Makefile; \
3033 cd ./Makefile; \
3134 cp ${SOURCE}Makefile Makefile; \
3235 cp ${SOURCE}Makefile-lib Makefile-lib; \
3336 sed -e s/"!!Command!!"/"$$TARGET"/g Makefile > tmp; \
37+ sed -e s/"!!Class!!"/"$$CLASS_NAME"/g tmp > Makefile; \
38+ sed -e s/"!!Group!!"/"$$GROUP_NAME"/g Makefile > tmp; \
3439 cp tmp Makefile; \
3540 sed -e s/"!!Command!!"/"$$TARGET"/g Makefile-lib > tmp; \
3641 cp tmp Makefile-lib; \
--- a/Small Tools/mrcImage/mrcImageFourierNeighborCorrelation/Makefile/Makefile
+++ b/Small Tools/mrcImage/mrcImageFourierNeighborCorrelation/Makefile/Makefile
@@ -4,6 +4,11 @@
44
55 #### Root Makefile ####
66 MAKE_ROOT=mrcImageFourierNeighborCorrelation
7+TOOLS_CLASS=mrcImage
8+TOOLS_COMMAND=$(MAKE_ROOT)
9+OBJECTS_GROUP=DataManip
10+OBJECTS_CLASS=mrcImage
11+OBJECTS_COMMAND=l$(MAKE_ROOT)
712
813 #### Input extention ####
914 INI=mrc
@@ -15,7 +20,9 @@ FNC=txt
1520 # Defined at Sub
1621
1722 #### INCLUDE ####
23+# Help-include-file must always be put on top.
1824 -include ${EOS_HOME}/tutorial/TIPS/Help/Makefile/Makefile-lib
25+-include ${EOS_HOME}/tutorial/TIPS/Debugger/Makefile/Makefile-lib
1926 -include Makefile-lib
2027
2128 #### Definition ####
@@ -77,6 +84,7 @@ help_mrcImageFourierNeighborCorrelation::
7784 @echo " MASK: for -mask"
7885 @echo " MASKBACK: for -maskBack"
7986 @echo " FNC: Sample of execution."
87+ @echo " Final: Create graph images for output file."
8088 @echo
8189 @echo " (Setting Data):"
8290 @echo " FILE_NAME: filename of input and output"
--- /dev/null
+++ b/TIPS/Debugger/Makefile/Makefile-lib
@@ -0,0 +1,140 @@
1+#
2+# This is Sub Makefile for Debugger.
3+#
4+
5+#### Input extention ####
6+# Defined at Main
7+
8+#### Suffixes rule ####
9+
10+#### INCLUDE ####
11+# Use TIPS File.
12+# -include ${EOS_HOME}/tutorial/TIPS/XXXX/Makefile/Makefile-lib
13+
14+#### Definition ####
15+# Defined at Main
16+TOOLS_PATH="${EOS_HOME}/src/Tools/"
17+OBJECTS_PATH="${EOS_HOME}/src/Objects/"
18+FILE_OPEN="${EOS_HOME}/bin/_Open"
19+
20+#### Rules of the list created ####
21+
22+
23+##### Commands #####
24+OpenTools::
25+ dirc="$(TOOLS_PATH)$(TOOLS_CLASS)/$(TOOLS_COMMAND)/src/"; \
26+ file="$$dirc""$(TOOLS_COMMAND).c"; \
27+ if [ -f $$file ] ; then \
28+ $(FILE_OPEN) $$file; \
29+ else \
30+ echo "Not Found: $$file"; \
31+ cd $$dirc; \
32+ ls; \
33+ fi;
34+
35+OpenToolsInit::
36+ dirc="$(TOOLS_PATH)$(TOOLS_CLASS)/$(TOOLS_COMMAND)/src/"; \
37+ file="$$dirc""init.c"; \
38+ if [ -f $$file ] ; then \
39+ $(FILE_OPEN) $$file; \
40+ else \
41+ echo "Not Found: $$file"; \
42+ cd $$dirc; \
43+ ls; \
44+ fi;
45+
46+OpenToolsArgCheck::
47+ dirc="$(TOOLS_PATH)$(TOOLS_CLASS)/$(TOOLS_COMMAND)/src/"; \
48+ file="$$dirc""argCheck.c"; \
49+ if [ -f $$file ] ; then \
50+ $(FILE_OPEN) $$file; \
51+ else \
52+ echo "Not Found: $$file"; \
53+ cd $$dirc; \
54+ ls; \
55+ fi;
56+
57+OpenToolsHeader::
58+ dirc="$(TOOLS_PATH)$(TOOLS_CLASS)/$(TOOLS_COMMAND)/inc/"; \
59+ file="$$dirc""$(TOOLS_COMMAND).h"; \
60+ if [ -f $$file ] ; then \
61+ $(FILE_OPEN) $$file; \
62+ else \
63+ echo "Not Found: $$file"; \
64+ cd $$dirc; \
65+ ls; \
66+ fi;
67+
68+RebuildTools::
69+ dirc="$(TOOLS_PATH)$(TOOLS_CLASS)/$(TOOLS_COMMAND)/"; \
70+ cd $$dirc; \
71+ if [ -d $$dirc ] ; then \
72+ make check; \
73+ make depend; \
74+ make clean; \
75+ make; \
76+ make install; \
77+ fi
78+
79+
80+OpenObjects::
81+ dirc="$(OBJECTS_PATH)$(OBJECTS_GROUP)/$(OBJECTS_CLASS)/src/"; \
82+ file="$$dirc""$(OBJECTS_COMMAND).c"; \
83+ if [ -f $$file ] ; then \
84+ $(FILE_OPEN) $$file; \
85+ else \
86+ echo "Not Found: $$file"; \
87+ cd $$dirc; \
88+ ls; \
89+ fi;
90+
91+OpenObjectsHeader::
92+ dirc="$(OBJECTS_PATH)$(OBJECTS_GROUP)/$(OBJECTS_CLASS)/src/"; \
93+ file="$$dirc""$(OBJECTS_COMMAND).h"; \
94+ if [ -f $$file ] ; then \
95+ $(FILE_OPEN) $$file; \
96+ else \
97+ echo "Not Found: $$file"; \
98+ cd $$dirc; \
99+ ls; \
100+ fi;
101+
102+RebuildObjects::
103+ dirc="$(OBJECTS_PATH)$(OBJECTS_GROUP)/$(OBJECTS_CLASS)/"; \
104+ cd $$dirc; \
105+ if [ -d $$dirc ] ; then \
106+ make check; \
107+ make depend; \
108+ make clean; \
109+ make; \
110+ make install; \
111+ fi
112+
113+help_Debugger::
114+ @echo
115+ @echo "Debugger"
116+ @echo "This is Sub Makefile to Debug."
117+ @echo
118+ @echo " (Command):"
119+ @echo " (Note) OpenXXXX is required to set \"FILE_OPEN\" as Application Path in this lib."
120+ @echo " OpenTools: Open Tools source file."
121+ @echo " OpenToolsInit: Open Tools init file."
122+ @echo " OpenToolsArgCheck: Open Tools argCheck file."
123+ @echo " OpenToolsHeader: Open Tools header file."
124+ @echo " OpenObjects: Open Objects source file."
125+ @echo " OpenObjectsHeader: Open Objects header file."
126+ @echo
127+ @echo " RebuildTools: Rebuild for the Tools file."
128+ @echo " RebuildObjects: Rebuild for the Objects file."
129+ @echo
130+ @echo " (Setting Data):"
131+ @echo " FILE_OPEN: Application Path to open file. (Essential for OpenXXXX)"
132+ @echo " TOOLS_CLASS: Tools class name (e.g. mrcImage)"
133+ @echo " TOOLS_COMMAND: Tools command name (e.g. mrcInfo)"
134+ @echo " TOOLS_GROUP: Objects group name (e.g. DataManip)"
135+ @echo " TOOLS_CLASS: Objects class name (e.g. mrcImage)"
136+ @echo " TOOLS_COMMAND: Objects command name (e.g. lmrcInfo)"
137+ @echo
138+
139+##### Commands(Input to Output) #####
140+
--- a/TIPS/Template/Makefile/Makefile
+++ b/TIPS/Template/Makefile/Makefile
@@ -12,6 +12,7 @@ INI=ini
1212 # Defined at Sub
1313
1414 #### INCLUDE ####
15+# Help-include-file must always be put on top.
1516 -include ${EOS_HOME}/tutorial/TIPS/Help/Makefile/Makefile-lib
1617 -include Makefile-lib
1718
Show on old repository browser