Re: makefile concept
we are writing a device driver for plx9054 device in linux.we are stuck as we are not aware about the makefile concept.
How to write makefile for pci access ,whether to include already given makefile in source or to create ur own dependencies and rules and write a makefile on ur own ?
Should there be a simple file or makefile in sub-directories?
Makefiles can be as complex and with as many targets as you want to make them. Their job is to simplify installation/compilation and other things dealing with managing the source tree. My suggestion is that you google.com/linux for a makefile howto and learn a little about them. The concept isn't that difficult to grasp. 8)
Read the info page of make, it is quite detailed.
It gives decent examples of various ways in which the rules, targets can be written in the makefile.
Here is the online version: http://www.gnu.org/software/make/man...mono/make.html