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  2012  <20132014  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  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Makefile definition for .hpp include files
From: Andrew Johnson <[email protected]>
To: <[email protected]>
Cc: [email protected]
Date: Thu, 19 Sep 2013 10:25:19 -0500
Hi Patrick,

On 09/18/2013 07:06 PM, [email protected] wrote:
I was wondering, does the INC Makefile definition only work for files with
extension .h?

It doesn't look like it, but I think you will need to tell GNUMake how to find the other files. The relevant rules in configure/RULES_BUILD don't explicitly mention the .h extension:

$(INSTALL_INCLUDE)/% : $(COMMON_DIR)/%
	$(ECHO) "Installing generated generic include file $@"
	@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)

$(INSTALL_INCLUDE)/% : %
	$(ECHO) "Installing generic include file $@"
	@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)

$(INSTALL_INCLUDE)/os/$(OS_CLASS)/% : %
	$(ECHO) "Installing os dependent include file $@"
	@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)

However there is one other relevant line in that file:

vpath %.h $(USR_VPATH) $(ALL_SRC_DIRS)

That vpath tells GNUmake which directories to search for source files with the .h extension (after which it will use the middle rule above to install them). I suspect that all you will need to do to install .hpp files is to add this to any Makefile that adds such filenames to INC:

vpath %.hpp $(USR_VPATH) $(ALL_SRC_DIRS)

In 3.14.12.x there is a vpath entry for .H files which we have removed from the 3.15 branch (it caused problems on some types of file-systems) but I think we should add a .hpp entry, since a growing number of projects are now using this extension for C++-only headers.

HTH,

- Andrew
--
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock

References:
Makefile definition for .hpp include files pthomas

Navigate by Date:
Prev: Re: threading in asyn device support Ralph Lange
Next: Re: threading in asyn device support Vikram Bhagat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Makefile definition for .hpp include files pthomas
Next: threading in asyn device support Vikram Bhagat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·