On Sunday 07 January 2018 13:51:26 Nicklas Karlsson wrote: > > On 7 January 2018 at 13:01, Nicklas Karlsson > > > > <[email protected]> wrote: > > > Then adding source code to a subfolder into the src/hal/drivers > > > folder they are never found by the build system. I discovered a > > > *.so library file is built for each of the drivers. Do anybody > > > have and idea how to add a new driver to the build system so that > > > it get compiled together with the source? > > > > I believe that a .comp should be found automatically, but for a .c > > file you need to add it to the Makefile > > https://github.com/LinuxCNC/linuxcnc/blob/master/src/Makefile > > > > Just choose another driver that does get compiled (such as > > hal_motenc) and replicate all the same lines in the Makefile for > > your driver. > > Tried this but it does not compile while others do. I searched > differences and there is some magic because my new file is not > compiled while others are. > ISTR theres a section listing the files to be made in most makefiles, so that needs updated to add it after the compile stanza has been added. Make is a weird critter and I learn something every time I read the man pages. > ---------------------------------------------------------------------- >-------- Check out the vibrant tech community on one of the world's > most engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users
Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
