Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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?

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    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

  3. #3
    Linux 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.html
    The Unforgiven
    Registered Linux User #358564

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •