>>> "CRP" == Chestnut, Ronald P <[email protected]> writes:
CRP> I have a few sequence programs (.st) which include extensive .h
CRP> files. For interesting (but probably not here) reasons the .h files
CRP> carry the really fun code for a few .st files. One of my most common
CRP> errors recently is to modify the .h file, do a make, and forget that
CRP> I had to "touch" the .st files in order to force the remake of the
CRP> sequence programs.
The right thing to do is to create a make dependency relationship between
the .o file and the .h file. This will cause make to update the .o file by
recompiling the .st whenever the .h file changes.
You can do this manually by editing entries into Makefile.Vx like this:
snl_prog.o: some_header.h another_header.h yet_another.h
For .c files, you can do this by using "make depend", which generates a
file called DEPENDS in the O.<arch> directory which is then used by the
makefiles.
I'm not sure you can trick the epics makefiles into including a .st in the
list of files to make dependencies for, and since #includes have to be
escaped in SNL, I doubt the C compiler (used to generate dependency info)
would deal with them correctly.
----
Brian McAllister Controls Programmer/Beam Physicist
[email protected] MIT-Bates Linear Accelerator
(617) 253-9537 Middleton, MA
- References:
- Fun with MAKE Chestnut, Ronald P.
- Navigate by Date:
- Prev:
Fun with MAKE Chestnut, Ronald P.
- Next:
CA problem while using EVENT I/O Cheng Weixing
- Index:
1994
1995
1996
1997
1998
1999
2000
<2001>
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Fun with MAKE Chestnut, Ronald P.
- Next:
RE: Fun with MAKE Jeff Hill
- Index:
1994
1995
1996
1997
1998
1999
2000
<2001>
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|