CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2009
    Posts
    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

  2. #2
    Join Date
    Feb 2002
    Posts
    4,640

    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

  3. #3
    Join Date
    Jan 2009
    Posts
    19

    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
  •  





Click Here to Expand Forum to Full Width

Featured