Results 1 to 3 of 3
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 ...
- 01-10-2005 #1Just Joined!
- Join Date
- Jan 2005
- Posts
- 12
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?
- 01-11-2005 #2
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.
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
- 01-11-2005 #3Linux User
- Join Date
- Oct 2004
- Location
- /dev/random
- Posts
- 404
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.htmlThe Unforgiven
Registered Linux User #358564


Reply With Quote