EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: using areaDetector as a support library only
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Fri, 18 May 2012 15:39:18 -0500
Hi Mark,

On 2012-05-18 Mark Rivers wrote:
> I think we should stick with building one application per detector.  But it
> would be nice to be able to isolate the application (which has lots of
> module dependencies) from the library (which has few dependencies).  It
> seems to me that either means 2 separate configure/RELEASE files, or
> commenting out the extra module lines when only building the library and
> not the application.

You could move the application-specific RELEASE entries into a separate file 
that I'll call the APP-RELEASE file, which the RELEASE file includes; then to 
build only the library the user would just have to comment out the line

    include $(TOP)/configure/APP-RELEASE

from the RELEASE file.

If possible I would recommend that Makefiles should look for defined values of 
their dependent modules to control whether to build their different parts into 
the application (see the usage of SNCSEQ in the makeBaseApp example template), 
but that's not always easy to do so the APP-RELEASE file can also define its 
own variable say BUILD_APP=YES to switch on/off building the application part 
completely.  Then a Makefile could use this technique:

    PROD_IOC_YES = <appname>
    PROD_IOC = $(PROD_IOC_$(BUILD_APP))

With that, <appname> will only be built when BUILD_APP is YES.

HTH,

- Andrew
-- 
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte

Replies:
Re: using areaDetector as a support library only Ernest L. Williams Jr.
References:
Re: using areaDetector as a support library only Bruce Hill
RE: using areaDetector as a support library only Mark Rivers

Navigate by Date:
Prev: RE: using areaDetector as a support library only Mark Rivers
Next: Re: using areaDetector as a support library only Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: using areaDetector as a support library only Mark Rivers
Next: Re: using areaDetector as a support library only Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·