Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    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 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
    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:
    The Unforgiven
    Registered Linux User #358564

  4. $spacer_open

Posting Permissions

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