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

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


    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 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