BSP Makefile variables

Aaron J. Grier aaron at frye.com
Mon Oct 1 22:22:44 UTC 2001


On Mon, Oct 01, 2001 at 04:34:41PM -0400, Hennenfent, Nick {AVL~Roswell} wrote:
>  
> I am trying to figure out the mechanism that causes include files from
> my BSP to get copied to the install directory.
>  
> Is it the H_FILES variable in libbsp/mybsp/include/Makefile.am???
>  
> Or is it the EXTRA_DIST variable???

$(PROJECT_INCLUDE)/myheader.h: myheader.h
        $(INSTALL_DATA) $< $@

[...]

TMPINSTALL_FILES += $(PROJECT_INCLUDE)/myheader.h

[...]

all-local: $(TMPINSTALL_FILES) $(ARCH) $(OBJS) $(PGM)

I'm sure there's better ways, but this works for me with 4.5.0.

-- 
  Aaron J. Grier  |   Frye Electronics, Tigard, OR   |  aaron at frye.com
     "In a few thousand years people will be scratching their heads
       wondering how on earth the first computer was invented and
          bootstrapped without a prior computer to do it with."
                    --  Chris Malcolm, on comp.arch



More information about the users mailing list