azulay7
azulay7

Reputation: 305

Makefile - include library

I'm trying to write a module that uses the function nanosleep().

when my make file runs it changes the build libary by doing: make -C /lib/modules/2.6.18-128.4.1.el5/build M=/workspace/lcd-winstar-0.0.1 modules

nanosleep is declare in /usr/include so my makefile cant find it. what lines should I add to my makefile to include this location as well?????

thanks

Upvotes: 1

Views: 2649

Answers (1)

stnr
stnr

Reputation: 455

-I dir
Add the directory dir to the list of directories to be searched for header files. Directories named by -I are searched before the standard system include directories. If the directory dir is a standard system include directory, the option is ignored to ensure that the default search order for system directories and the special treatment of system headers are not defeated .

&&

-Ldir Add directory dir to the list of directories to be searched for -l

Upvotes: 3

Related Questions