Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Makefiles? Please help

  • 23-04-2008 10:33AM
    #1
    Registered Users, Registered Users 2 Posts: 7,396 ✭✭✭


    Could someone please direct me in the right direction on how to make makefiles in linux?


    EG if i had a program that contained this
    #include <linux/init.h>
    #include <linux/module.h>
    

    How do i direct that to the kernels header files

    Thanks in advance


Comments

  • Registered Users, Registered Users 2, Paid Member Posts: 2,032 ✭✭✭lynchie


    There is tons of sample makefiles out there.. Download a simple opensource project and that will have a makefile in it.

    But to include additional include directories when building a file in linux just make sure you have -I/usr/include as a parameter for gcc or whatever compiler you are using.


Advertisement