-
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
-
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
-
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"