On 7 January 2018 at 13:01, Nicklas Karlsson <nicklas.karlsso...@gmail.com> 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. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1916 ------------------------------------------------------------------------------ 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 Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users