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: [makefile] adding a library to an EPICS application
From: Pavel Maslov <[email protected]>
To: Martin Konrad <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Thu, 20 Dec 2012 13:37:19 +0400
Thanks everyone!
And particularly, MArk and Andrew! Your insights have helped a lot!

Let me ask you one more question. Perhaps, Andrew will give a rightaway answer. What makefile command (in $(TOP)/xxxApp/Db/Makefile) can I use to copy an arbitrary file (in my case $(TOP)/xxxApp/Db/TDS.proto) to $(TOP)/db.

DB_INSTALLS += TDS.proto doesn't work. 
Any other thoughts?


On Thu, Dec 20, 2012 at 12:45 PM, Martin Konrad <[email protected]> wrote:
Hi,
> In general I recommend making use of the EPICS build system if you
> can because we take care of things like creating dependency files and
> handling multiple architecture builds from the same source tree; most
> other build systems need you to do extra work for that kind of
> thing.
Of course Andrew is right. Someone has to spend some time to write the
EPICS specific rules. But in case of CMake most of this work has been
done already (see the links in my first mail).

Building for multiple architectures comes for free with CMake as it
supports out-of-source builds (actually they are default).
Cross-building is possible as well. It's supported with many different
tool chains. Of course you can add your own tool chain as well.

Creating dependency files should be an easy exercise but I think you
don't need them with CMake (it takes care of things like that
automatically). With Make it's difficult to write build rules that work
for parallel builds (e.g. make -j 4) with CMake it's difficult to write
rules that do not.

So I would still recommend using CMake for apps/libs that build on top
of EPICS base.

Regards,

Martin

--
Dipl. Phys. Martin Konrad
Technische Universität Darmstadt
Institut für Kernphysik
Schlossgartenstr. 9
64289 Darmstadt
Tel.: +49-6151-16-5121
Fax: +49-6151-16-4321



--
Best regards,


Pavel Maslov, MS
Controls Engineer at Pulsed power Lab
Efremov Institute for Electro-Physical Apparatus
St. Petersburg, Russia

Mobile: +7 (951) 672 22 19
Landline: +7 (812) 461 01 01

Replies:
Re: [makefile] adding a library to an EPICS application Ralph Lange
References:
[makefile] adding a library to an EPICS application Pavel Maslov
RE: [makefile] adding a library to an EPICS application Mark Rivers
Re: [makefile] adding a library to an EPICS application Andrew Johnson
Re: [makefile] adding a library to an EPICS application Martin Konrad

Navigate by Date:
Prev: Re: [makefile] adding a library to an EPICS application Martin Konrad
Next: Re: [makefile] adding a library to an EPICS application Ralph Lange
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: [makefile] adding a library to an EPICS application Martin Konrad
Next: Re: [makefile] adding a library to an EPICS application Ralph Lange
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 ·