Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Makefiles? Please help

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


    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,033 ✭✭✭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
Advertisement