Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Makefiles? Please help

Options
  • 23-04-2008 10:33am
    #1
    Registered Users Posts: 7,155 ✭✭✭


    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 Posts: 1,996 ✭✭✭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