MakeFile Archaeology: Difference between revisions

From HELIOS Digital DAQ
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
** This file includes the file /global/devel/gretTop/9-22/dgsDrivers/configure/CONFIG_APP but all other lines are commented out.
** This file includes the file /global/devel/gretTop/9-22/dgsDrivers/configure/CONFIG_APP but all other lines are commented out.
*** File /global/devel/gretTop/9-22/dgsDrivers/configure/CONFIG_APP itself then pulls in /global/devel/gretTop/9-22/dgsDrivers/configure/RELEASE but the other files are '''''not included''''' because the "-include" directive means "do not include".  Guess that's a backwards way to comment out the line.
*** File /global/devel/gretTop/9-22/dgsDrivers/configure/CONFIG_APP itself then pulls in /global/devel/gretTop/9-22/dgsDrivers/configure/RELEASE but the other files are '''''not included''''' because the "-include" directive means "do not include".  Guess that's a backwards way to comment out the line.
    Thus at this point in the make what has realled happened is that we've pulled in /global/devel/gretTop/9-22/dgsDrivers/configure/RELEASE but nothing else has occurred.
=== File /global/devel/gretTop/9-22/dgsDrivers/configure/RELEASE ===
*  defines a variable TEMPLATE_TOP that is not used later within this file,  and is dependent upon the definition of the variable EPICS_BASE that occurs later in this same file.
*  defines a variable GRETVME that parses out to /global/devel/gretTop/9-22/gretVME.
*  defines a variable DATASERVER that parses out to /global/devel/gretTop/9-22/gretClust.
*  defines a variable SNCSEQ to /global/develbuild/supTop/31410/sncseq-2.0.12.
**  Obscure comment about needing SNCSEQ defined "if using the sequencer", but at this point we don't know what a "sequencer" is.
*  defines a variable ASYN to /global/develbuild/synApps/asyn4-17.
**  No comment available but we guess that this is intended for later use to bring in the ASYN driver C++ stuff later.
*  defines the variable EPICS_BASE to the value /global/develbuild/base/base-3.14.12.1.
**  This is probably something that will be dependent upon which processor is in use as different processors may have different versions of EPICS.
*  and then a couple more commented-out lines.
    So at this point we have
    Variable TOP is set to /global/devel/gretTop/9-22/dgsDrivers.
    Variable GRETVME is set to /global/devel/gretTop/9-22/gretVME.
    Variable DATASERVER is set to /global/devel/gretTop/9-22/gretClust.
    Variable SNCSEQ is set to /global/develbuild/supTop/31410/sncseq-2.0.12.
    Variable ASYN is set to /global/develbuild/synApps/asyn4-17.
    Variable EPICS_BASE is set to /global/develbuild/base/base-3.14.12.1.
    Variable TEMPLATE_TOP may be set to /global/develbuild/base/base-3.14.12.1/templates/makeBaseApp/top.

Revision as of 21:48, May 21, 2018

Digging up the make file and all that it refers to

We start with the makefile itself, found at /global/devel/gretTop/9-22/dgsDrivers. The makefile presumes that it is being run from the top of the development tree, setting internal variable TOP to ".".

  • The makefile then includes the contents of the file /global/devel/gretTop/9-22/dgsDrivers/configure/CONFIG.
    • This file includes the file /global/devel/gretTop/9-22/dgsDrivers/configure/CONFIG_APP but all other lines are commented out.
      • File /global/devel/gretTop/9-22/dgsDrivers/configure/CONFIG_APP itself then pulls in /global/devel/gretTop/9-22/dgsDrivers/configure/RELEASE but the other files are not included because the "-include" directive means "do not include". Guess that's a backwards way to comment out the line.
   Thus at this point in the make what has realled happened is that we've pulled in /global/devel/gretTop/9-22/dgsDrivers/configure/RELEASE but nothing else has occurred.

File /global/devel/gretTop/9-22/dgsDrivers/configure/RELEASE

  • defines a variable TEMPLATE_TOP that is not used later within this file, and is dependent upon the definition of the variable EPICS_BASE that occurs later in this same file.
  • defines a variable GRETVME that parses out to /global/devel/gretTop/9-22/gretVME.
  • defines a variable DATASERVER that parses out to /global/devel/gretTop/9-22/gretClust.
  • defines a variable SNCSEQ to /global/develbuild/supTop/31410/sncseq-2.0.12.
    • Obscure comment about needing SNCSEQ defined "if using the sequencer", but at this point we don't know what a "sequencer" is.
  • defines a variable ASYN to /global/develbuild/synApps/asyn4-17.
    • No comment available but we guess that this is intended for later use to bring in the ASYN driver C++ stuff later.
  • defines the variable EPICS_BASE to the value /global/develbuild/base/base-3.14.12.1.
    • This is probably something that will be dependent upon which processor is in use as different processors may have different versions of EPICS.
  • and then a couple more commented-out lines.


   So at this point we have 
   Variable TOP is set to /global/devel/gretTop/9-22/dgsDrivers.
   Variable GRETVME is set to /global/devel/gretTop/9-22/gretVME.
   Variable DATASERVER is set to /global/devel/gretTop/9-22/gretClust.
   Variable SNCSEQ is set to /global/develbuild/supTop/31410/sncseq-2.0.12.
   Variable ASYN is set to /global/develbuild/synApps/asyn4-17.
   Variable EPICS_BASE is set to /global/develbuild/base/base-3.14.12.1.
   Variable TEMPLATE_TOP may be set to /global/develbuild/base/base-3.14.12.1/templates/makeBaseApp/top.