|
-
January 5th, 2009, 09:27 PM
#1
Problem in Makefile
Hi Guys,
I have a couple of problems in understanding make file.
1. What is the difference when I say
OBJECTS = allocate.o auxiliary.o crossover.o
OBJECTS := allocate.o auxiliary.o crossover.o
2. When I write
all: main
why does makefile execute the other targets though all: does not have any command. What does the dependence main mean for all:
Looking forward for your reply.
Cracker Wizard
-
January 6th, 2009, 05:38 PM
#2
Re: Problem in Makefile
1. Don't know offhand
2. What is 'main's dependencies? 'all: main' means that the 'all' target depends on the 'main' target.
Viggy
-
January 6th, 2009, 09:14 PM
#3
Re: Problem in Makefile
check out the online version of the make man page:
http://netbsd.gw.com/cgi-bin/man-cgi...NetBSD-current
search "variable assignments"
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|