[SLUG] Compile the driver source files!

Jonathan Worthington jonathan at jwcs.net
Sun Jul 27 15:40:00 BST 2003


----- Original Message -----
From: "Jamie Adams" <adamsj at sdf-eu.org>
To: "SLUG" <scarborough at mailman.lug.org.uk>
Sent: Sunday, July 27, 2003 1:58 PM
Subject: Re: [SLUG] Compile the driver source files!


> On Wed, 23 Jul 2003, Mark Feather wrote:
>
> > Date: Wed, 23 Jul 2003 00:59:20 +0100
> > From: Mark Feather <akwe-xavante at firenet.uk.net>
> > Reply-To: scarborough at mailman.lug.org.uk
> > To: SLUG <scarborough at mailman.lug.org.uk>
> > Subject: [SLUG] Compile the driver source files!
> >
> > Hi,
> >
> > Please help......
> >
> 0> I am trying to install a driver for a D-Link DFE-530TX PCI Fast
Ethernet
> > Adapter and get as far Step 4 in the process.
> >
> > The first few words of Step 4 read "Compile the driver source files" How
do
> > i do this? i have used the command chmod 777 * before i ran the
./Makefile
> > command.
> >
> > I have tried ./Makefile, i get a series of errors do i have to name a
> > specific file after "./Makefile? if so which one?
>
> Hi Mark,
>
> I dont think you need to run ./Makefile at all. Try running the command
'make'
> or 'make -f Makefile' in the directory containing the makefile.

The Makefile purely tells the make program what to do.  So you just need to
type:-
    make
And it will look at the file named Makefile in the current directory.  If it
isn't called that, you need to use -f like Jamie said.

If you look at the docs though, you'll see it tells you to run:-
    make install
Which "make"s (compiles and links) it, probably "make test"s it (which runs
tests once it's made) and then "make install"s it (installs it in the right
place, hopefully).  Often make install implies make test, and make test
implies make.  So for most things:-
    make install
Is equivalent to:-
    make
    make test
    make install

Hope this helps,

Jonathan





More information about the Scarborough mailing list