LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-04-2006, 02:31 AM   #1
fpb
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
makefile commands & options


I've a Makefile for 2.6. Part of it goes like this:

######
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

modules:
$(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINC=$(PWD)/../include modules
######

What is the difference between the ?= in KERNEL ?= and the := in PWD := ?
Why can't we just use a simple = instead?
Also, what are the M & LDDINC in the make command for? They're not used anywhere else in the Makefile as far as I can see.

The /../include part is particularly confusing. When I run the Makefile, my pwd is /home/username. There are no further directories under the pwd tree in this case, & especially not the include directory nor file, but make runs just fine.

Can somebody please explain?

1 last thing. It is kinda hard to search the Internet for information on command options & parameters like $*, $^, ?=, :=, M, LDDINC as most of those are just punctuation marks to search engines & hence ignored.
Does anybody have a good site to recommend for such info?

Thanks again.

Last edited by fpb; 01-04-2006 at 02:40 AM.
 
Old 01-04-2006, 04:45 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Quote:
1 last thing. It is kinda hard to search the Internet for information on command options & parameters like $*, $^, ?=, :=, M, LDDINC as most of those are just punctuation marks to search engines & hence ignored.
Does anybody have a good site to recommend for such info?
the "man page" can explain these commands........
Code:
man bash
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
makefile, shell commands error sateeshgalla Programming 4 11-14-2005 10:57 PM
[bsdmake/pmake] Makefile Fun & Games darklogik_org Programming 2 02-13-2005 01:34 PM
Makefile & Executable elite_duke Linux - Newbie 4 01-26-2005 10:05 AM
Makefile & Executable elite_duke Programming 5 01-25-2005 08:04 PM
Console commands && GUI DaFrEQ Programming 10 05-29-2003 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration